More tint color changes

This commit is contained in:
Arnfried Griesert
2023-03-06 22:11:23 +01:00
parent 9705d935c9
commit d5d299a357
45 changed files with 187 additions and 43 deletions
@@ -93,9 +93,12 @@ struct PollEditForm: View {
.frame(minHeight: proxy.size.height) // Make the VStack fill the ScrollView's parent
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
Button(VectorL10n.cancel, action: {
Button {
viewModel.send(viewAction: .cancel)
})
} label: {
Text(VectorL10n.cancel)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
}
}
ToolbarItem(placement: .principal) {
Text(BWIL10n.pollEditFormCreatePoll)
@@ -105,9 +108,12 @@ struct PollEditForm: View {
ToolbarItem(placement: .navigationBarTrailing) {
if viewModel.viewState.mode == .editing {
Button(VectorL10n.save, action: {
Button {
viewModel.send(viewAction: .update)
})
} label: {
Text(VectorL10n.save)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
}
.disabled(!viewModel.viewState.confirmationButtonEnabled)
}
}