mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
MESSENGER-4179 send button wrong color
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user