MESSENGER-4769 color changes part 2

This commit is contained in:
Arnfried Griesert
2023-06-20 11:32:09 +00:00
committed by Frank Rotermund
parent bbbe3f4e5b
commit 6d38c5fe24
15 changed files with 135 additions and 28 deletions
@@ -69,12 +69,16 @@ struct PollEditForm: View {
}
}
Button(VectorL10n.pollEditFormAddOption) {
// bwi: 4769
Button {
withAnimation(.easeInOut(duration: 0.2)) {
viewModel.send(viewAction: .addAnswerOption)
}
} label: {
Text(VectorL10n.pollEditFormAddOption)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
.font(theme.fonts.bodySB)
}
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
.disabled(!viewModel.viewState.addAnswerOptionButtonEnabled)
Spacer()
@@ -89,6 +93,7 @@ struct PollEditForm: View {
}
.padding(.vertical, 24.0)
.padding(.horizontal, 16.0)
.background(Color(ThemeService.shared().theme.backgroundColor)) // bwi: 4769
.activityIndicator(show: viewModel.viewState.showLoadingIndicator)
.alert(item: $viewModel.alertInfo) { info in
Alert(title: Text(info.title),