Commit 28537cf3 authored by Xu Zhao's avatar Xu Zhao Committed by Nicolás Alvarez
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.
parent 2f62e066
Pipeline #159270 passed with stage
in 8 minutes and 19 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