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
@@ -69,6 +69,7 @@ struct PollEditForm: View {
viewModel.send(viewAction: .addAnswerOption)
}
}
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
.disabled(!viewModel.viewState.addAnswerOptionButtonEnabled)
Spacer()
@@ -45,7 +45,13 @@ private struct PollEditFormTypeButton: View {
selectedType = type
} label: {
HStack(alignment: .top, spacing: 8.0) {
Image(uiImage: selectionImage)
// bwi: 4179
if type == selectedType {
Image(uiImage: Asset.Images.pollTypeCheckboxSelected.image)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
} else {
Image(uiImage: Asset.Images.pollTypeCheckboxDefault.image)
}
VStack(alignment: .leading, spacing: 2) {
Text(title)