Skip to content

Commit

Permalink
fix: Wrong highlight color in dark theme
Browse files Browse the repository at this point in the history
fix the wrong highlight color in dark theme

Issue: linuxdeepin/developer-center#6015
  • Loading branch information
FeiWang1119 committed Dec 19, 2023
1 parent 21fa1fb commit 2b5497d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qml/FlowStyle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,11 @@ QtObject {

property D.Palette text : D.Palette {
normal: D.DTK.makeColor(D.Color.HighlightedText)
normalDark: D.DTK.makeColor(D.Color.HighlightedText)
hovered: D.DTK.makeColor(D.Color.HighlightedText).lightness(+10)
hoveredDark: D.DTK.makeColor(D.Color.HighlightedText).lightness(+10)
pressed: D.DTK.makeColor(D.Color.HighlightedText).opacity(-20)
pressedDark: D.DTK.makeColor(D.Color.HighlightedText).opacity(-20)
}

property D.Palette dropShadow : D.Palette {
Expand Down Expand Up @@ -655,13 +658,17 @@ QtObject {

property D.Palette background: D.Palette {
normal: D.DTK.makeColor(D.Color.Highlight)
normalDark: D.DTK.makeColor(D.Color.Highlight)
hovered: D.DTK.makeColor(D.Color.Highlight).lightness(+10)
hoveredDark: D.DTK.makeColor(D.Color.Highlight).lightness(+10)
}
property D.Palette dropShadow: D.Palette {
normal: D.DTK.makeColor(D.Color.Highlight).lightness(+20)
normalDark: D.DTK.makeColor(D.Color.Highlight).lightness(+20)
}
property D.Palette innerShadow: D.Palette {
normal: D.DTK.makeColor(D.Color.Highlight).lightness(-20)
normalDark: D.DTK.makeColor(D.Color.Highlight).lightness(-20)
}
}

Expand Down

0 comments on commit 2b5497d

Please sign in to comment.