fix: Highlight color of jump-to-message has too little contrast

Use the colors defined by design:
```
Light theme: Light Desktop / Blue 20% (4360DF 20%)
Dark theme: Dark Desktop / Blue 20% (869EFF 20%)
```

Fixes #8271
This commit is contained in:
Lukáš Tinkl 2023-01-18 10:32:34 +01:00 committed by Lukáš Tinkl
parent 3d2537d4ca
commit 6bd0dca983
4 changed files with 9 additions and 3 deletions

View File

@ -136,8 +136,8 @@ Control {
} }
width: 2 width: 2
visible: root.isPinned || root.hasMention visible: root.isPinned || root.hasMention
color: root.isPinned ? Theme.palette.pinColor1 : root.hasMention ? Theme.palette.mentionColor1 color: root.hasMention ? Theme.palette.mentionColor1 : root.isPinned ? Theme.palette.pinColor1
: "transparent" // not visible really : "transparent" // not visible really
} }
} }
@ -175,7 +175,7 @@ Control {
anchors.fill: parent anchors.fill: parent
opacity: 0 opacity: 0
visible: opacity > 0.001 visible: opacity > 0.001
color: Theme.palette.baseColor2 color: Theme.palette.messageHighlightColor
} }
MouseArea { MouseArea {

View File

@ -65,6 +65,8 @@ ThemePalette {
statusLoadingHighlight: getColor('white', 0.03) statusLoadingHighlight: getColor('white', 0.03)
statusLoadingHighlight2: getColor('white', 0.07) statusLoadingHighlight2: getColor('white', 0.07)
messageHighlightColor: getColor('blue4', 0.2)
userCustomizationColors: [ userCustomizationColors: [
"#AAC6FF", "#AAC6FF",
"#887AF9", "#887AF9",

View File

@ -63,6 +63,8 @@ ThemePalette {
statusLoadingHighlight: getColor('lightPattensBlue', 0.5) statusLoadingHighlight: getColor('lightPattensBlue', 0.5)
statusLoadingHighlight2: indirectColor3 statusLoadingHighlight2: indirectColor3
messageHighlightColor: getColor('blue', 0.2)
userCustomizationColors: [ userCustomizationColors: [
"#2946C4", "#2946C4",
"#887AF9", "#887AF9",

View File

@ -169,6 +169,8 @@ QtObject {
property color statusLoadingHighlight property color statusLoadingHighlight
property color statusLoadingHighlight2 property color statusLoadingHighlight2
property color messageHighlightColor
property var userCustomizationColors: [] property var userCustomizationColors: []
property var identiconRingColors: [] property var identiconRingColors: []