mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
More tint color changes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user