mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update some icons to use the primary accent color instead of tertiary for accessibility reasons.
This commit is contained in:
@@ -53,7 +53,7 @@ struct JoinCallButton: View {
|
||||
.padding(.horizontal, 16.0)
|
||||
.padding(.vertical, 4.0)
|
||||
.foregroundColor(.compound.bgCanvasDefault)
|
||||
.background(Color.compound.iconAccentTertiary)
|
||||
.background(Color.compound.iconAccentPrimary)
|
||||
.clipShape(Capsule())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ struct HomeScreenInviteCell: View {
|
||||
if room.badges.isDotShown {
|
||||
Circle()
|
||||
.scaledFrame(size: 12)
|
||||
.foregroundColor(.compound.iconAccentTertiary) // The badge is always green, no need to check isHighlighted here.
|
||||
.foregroundColor(.compound.iconAccentPrimary) // The badge is always green, no need to check isHighlighted here.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ struct HomeScreenRoomCell: View {
|
||||
.lineLimit(1)
|
||||
.padding(.horizontal, 6)
|
||||
.frame(minWidth: 20, minHeight: 20)
|
||||
.background(.compound.iconAccentTertiary, in: .capsule)
|
||||
.background(.compound.iconAccentPrimary, in: .capsule)
|
||||
.accessibilityLabel(L10n.a11yNotificationsNewMessages)
|
||||
} else {
|
||||
Circle()
|
||||
@@ -161,7 +161,7 @@ struct HomeScreenRoomCell: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.foregroundColor(room.isHighlighted ? .compound.iconAccentTertiary : .compound.iconQuaternary)
|
||||
.foregroundColor(room.isHighlighted ? .compound.iconAccentPrimary : .compound.iconQuaternary)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ struct PollOptionView: View {
|
||||
if isFinalWinningOption {
|
||||
HStack(spacing: 4) {
|
||||
CompoundIcon(asset: Asset.Images.pollWinner)
|
||||
.foregroundColor(.compound.iconAccentTertiary)
|
||||
.foregroundColor(.compound.iconAccentPrimary)
|
||||
.accessibilityLabel(L10n.a11yPollsWinningAnswer)
|
||||
|
||||
Text(L10n.commonPollVotesCount(pollOption.votes))
|
||||
|
||||
Reference in New Issue
Block a user