MESSENGER-4179 send button wrong color

This commit is contained in:
Arnfried Griesert
2023-03-02 14:50:31 +00:00
parent b1c85b9a24
commit c94184f74c
32 changed files with 110 additions and 17 deletions
@@ -55,9 +55,13 @@ struct StaticLocationView: View {
.ignoresSafeArea(.all, edges: [.bottom])
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
Button(VectorL10n.cancel, action: {
Button {
viewModel.send(viewAction: .close)
})
} label: {
Text(VectorL10n.cancel)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
}
}
ToolbarItem(placement: .principal) {
Text(VectorL10n.locationSharingTitle)
@@ -69,6 +73,7 @@ struct StaticLocationView: View {
viewModel.send(viewAction: .share)
} label: {
Image(uiImage: Asset.Images.locationShareIcon.image)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
}
.disabled(!viewModel.viewState.shareButtonEnabled)
.accessibilityIdentifier("shareButton")