Dedicated theming for unread indicator
Also make default indicator background colors darker to be more readable
This commit is contained in:
parent
cb1a5865cc
commit
c787ff6f41
|
@ -55,11 +55,16 @@ HTileDelegate {
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color:
|
color:
|
||||||
model.mentions === 0 ?
|
model.mentions ?
|
||||||
theme.colors.unreadBackground :
|
indicatorTheme.mentionBackground :
|
||||||
theme.colors.alertBackground
|
indicatorTheme.background
|
||||||
|
|
||||||
radius: theme.radius / 4
|
radius: theme.radius / 4
|
||||||
|
|
||||||
|
readonly property QtObject indicatorTheme:
|
||||||
|
theme.mainPane.listView.room.unreadIndicator
|
||||||
|
|
||||||
|
Behavior on color { HColorAnimation {} }
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on scale { HNumberAnimation {} }
|
Behavior on scale { HNumberAnimation {} }
|
||||||
|
|
|
@ -62,9 +62,6 @@ colors:
|
||||||
color negativeBackground:
|
color negativeBackground:
|
||||||
hsluv(0, saturation * 1.5, intensity * 52, opacity)
|
hsluv(0, saturation * 1.5, intensity * 52, opacity)
|
||||||
|
|
||||||
color unreadBackground:
|
|
||||||
hsluv(188, saturation * 1.5, intensity * 52, 1)
|
|
||||||
|
|
||||||
color alertBackground: negativeBackground
|
color alertBackground: negativeBackground
|
||||||
|
|
||||||
color brightText: hsluv(0, 0, intensity * 100)
|
color brightText: hsluv(0, 0, intensity * 100)
|
||||||
|
@ -306,6 +303,10 @@ mainPane:
|
||||||
int avatarRadius: controls.avatar.radius
|
int avatarRadius: controls.avatar.radius
|
||||||
int collapsedAvatarRadius: controls.avatar.radius
|
int collapsedAvatarRadius: controls.avatar.radius
|
||||||
|
|
||||||
|
unreadIndicator:
|
||||||
|
color background: colors.accentBackground
|
||||||
|
color mentionBackground: colors.alertBackground
|
||||||
|
|
||||||
bottomBar:
|
bottomBar:
|
||||||
color background: colors.strongBackground
|
color background: colors.strongBackground
|
||||||
color settingsButtonBackground: "transparent"
|
color settingsButtonBackground: "transparent"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user