Skip to content

Commit

Permalink
fix: modify the background of the menuitem
Browse files Browse the repository at this point in the history
Modify the background of the menuitem to be the same as AlphabetCategoryPopup

Issue: linuxdeepin/developer-center#8807
  • Loading branch information
xionglinlin committed Jun 27, 2024
1 parent fb23c29 commit 41787dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qml/windowed/AppListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ FocusScope {
text: menuItem.text
color: parent.palette.windowText
}
background: Rectangle {
property Palette hoveredPalette: DStyle.Style.button.background1
implicitWidth: DStyle.Style.menu.item.width
implicitHeight: DStyle.Style.menu.item.height
visible: menuItem.down || menuItem.highlighted
color: ColorSelector.hoveredPalette
radius: 1 // TODO can't display background when using dtk's InWindowBlur.
}
}
}

Expand Down

0 comments on commit 41787dc

Please sign in to comment.