Commit a1153e6a authored by Xu Zhao's avatar Xu Zhao Committed by Nate Graham
Browse files

Change the text color when appmenu is selected or hovered

When the mouse hovers the appmenu item, the text color should be inverted to the background
color. Before this commit, the text was still the same color as the "REST" state, making it
difficult to recognize.


(cherry picked from commit 28537cf3)
parent bddd526c
Pipeline #159271 passed with stage
in 6 minutes and 54 seconds
......@@ -66,5 +66,9 @@ AbstractButton {
contentItem: PC3.Label {
text: controlRoot.Kirigami.MnemonicData.richTextLabel
// Kirigami.Theme.highlightedTextColor returns different colors
// depending on window focus, which does not apply to this applet
// instead, we use palette.highlightedText here, which returns consistent result
color: background.state == MenuDelegate.State.Rest ? palette.windowText : palette.highlightedText
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment