quickshell: add parent wrapper to all dropdowns
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
179b44d319
commit
dfc4a6b509
1 changed files with 420 additions and 388 deletions
|
|
@ -1330,11 +1330,18 @@ in
|
|||
id: menuOpener
|
||||
}
|
||||
|
||||
Column {
|
||||
id: menuItems
|
||||
Rectangle {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 6
|
||||
width: menuItems.width + 16
|
||||
height: menuItems.height + 12
|
||||
radius: 10
|
||||
color: Theme.base01
|
||||
|
||||
Column {
|
||||
id: menuItems
|
||||
anchors.centerIn: parent
|
||||
width: 200
|
||||
|
||||
Repeater {
|
||||
|
|
@ -1395,6 +1402,7 @@ in
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Volume dropdown
|
||||
BarDropdown {
|
||||
|
|
@ -1404,11 +1412,18 @@ in
|
|||
fullHeight: volDropdownCol.height + 16
|
||||
autoCloseMs: 3000
|
||||
|
||||
Column {
|
||||
id: volDropdownCol
|
||||
Rectangle {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 8
|
||||
width: volDropdownCol.width + 20
|
||||
height: volDropdownCol.height + 16
|
||||
radius: 10
|
||||
color: Theme.base01
|
||||
|
||||
Column {
|
||||
id: volDropdownCol
|
||||
anchors.centerIn: parent
|
||||
width: 260
|
||||
spacing: 8
|
||||
|
||||
|
|
@ -1430,7 +1445,7 @@ in
|
|||
width: parent.width - masterVolLabel.width - 8
|
||||
height: 20
|
||||
radius: 4
|
||||
color: Theme.base01
|
||||
color: Theme.base02
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
Rectangle {
|
||||
|
|
@ -1548,7 +1563,7 @@ in
|
|||
width: parent.width - appVolLabel.width - 8
|
||||
height: 16
|
||||
radius: 3
|
||||
color: Theme.base01
|
||||
color: Theme.base02
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
Rectangle {
|
||||
|
|
@ -1589,6 +1604,7 @@ in
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Network dropdown
|
||||
BarDropdown {
|
||||
|
|
@ -1597,11 +1613,18 @@ in
|
|||
fullWidth: netDropdownCol.width + 24
|
||||
fullHeight: netDropdownCol.height + 16
|
||||
|
||||
Column {
|
||||
id: netDropdownCol
|
||||
Rectangle {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 8
|
||||
width: netDropdownCol.width + 20
|
||||
height: netDropdownCol.height + 16
|
||||
radius: 10
|
||||
color: Theme.base01
|
||||
|
||||
Column {
|
||||
id: netDropdownCol
|
||||
anchors.centerIn: parent
|
||||
width: 220
|
||||
spacing: 4
|
||||
|
||||
|
|
@ -1732,6 +1755,7 @@ in
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
${lib.optionalString isMacbook ''
|
||||
// Battery dropdown
|
||||
|
|
@ -1741,11 +1765,18 @@ in
|
|||
fullWidth: batteryDropdownCol.width + 24
|
||||
fullHeight: batteryDropdownCol.height + 16
|
||||
|
||||
Column {
|
||||
id: batteryDropdownCol
|
||||
Rectangle {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 10
|
||||
anchors.topMargin: 8
|
||||
width: batteryDropdownCol.width + 20
|
||||
height: batteryDropdownCol.height + 16
|
||||
radius: 10
|
||||
color: Theme.base01
|
||||
|
||||
Column {
|
||||
id: batteryDropdownCol
|
||||
anchors.centerIn: parent
|
||||
width: 200
|
||||
spacing: 8
|
||||
|
||||
|
|
@ -1851,6 +1882,7 @@ in
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
''}
|
||||
|
||||
// Calendar popup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue