quickshell: wrap tray context menu in shared Card segment
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
700d3f7de1
commit
6846f38b9a
1 changed files with 3 additions and 2 deletions
|
|
@ -1637,17 +1637,18 @@ in
|
||||||
id: menuOpener
|
id: menuOpener
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Card {
|
||||||
id: menuItems
|
id: menuItems
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: 200
|
width: 200
|
||||||
|
cardSpacing: 0
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: menuOpener.children
|
model: menuOpener.children
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
width: 200
|
width: parent.width
|
||||||
height: modelData.isSeparator ? 9 : 28
|
height: modelData.isSeparator ? 9 : 28
|
||||||
color: !modelData.isSeparator && itemMouse.containsMouse && modelData.enabled
|
color: !modelData.isSeparator && itemMouse.containsMouse && modelData.enabled
|
||||||
? Theme.base02 : Theme.base02t
|
? Theme.base02 : Theme.base02t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue