Skip to content

Commit fef6c93

Browse files
pengfeixxdeepin-bot[bot]
authored andcommitted
fix: Fix menu highlight remaining after main menu is closed
Fix menu highlight remaining after main menu is closed Log: Fix menu highlight remaining after main menu is closed pms: BUG-306683
1 parent abd6bf8 commit fef6c93

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

qt6/src/qml/MenuItem.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ T.MenuItem {
1717
padding: DS.Style.control.padding
1818
spacing: DS.Style.control.spacing
1919
opacity: D.ColorSelector.controlState === D.DTK.DisabledState ? 0.4 : 1
20+
highlighted: hovered || (subMenu && subMenu.visible)
2021
icon {
2122
height: DS.Style.menu.item.iconSize.height
2223
width: DS.Style.menu.item.iconSize.height

0 commit comments

Comments
 (0)