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
@@ -63,6 +63,7 @@ struct TimelinePollAnswerOptionButton: View {
HStack(spacing: 6) {
if poll.closed, answerOption.winner {
Image(uiImage: Asset.Images.pollWinnerIcon.image)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
}
if poll.shouldDiscloseResults {
@@ -85,9 +86,9 @@ struct TimelinePollAnswerOptionButton: View {
var borderAccentColor: Color {
guard !poll.closed else {
return (answerOption.winner ? theme.colors.accent : theme.colors.quinaryContent)
return (answerOption.winner ? Color(ThemeService.shared().theme.tintColor) : theme.colors.quinaryContent)
}
return answerOption.selected ? theme.colors.accent : theme.colors.quinaryContent
}