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
|
id: menuOpener
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Rectangle {
|
||||||
id: menuItems
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 6
|
anchors.topMargin: 6
|
||||||
|
width: menuItems.width + 16
|
||||||
|
height: menuItems.height + 12
|
||||||
|
radius: 10
|
||||||
|
color: Theme.base01
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: menuItems
|
||||||
|
anchors.centerIn: parent
|
||||||
width: 200
|
width: 200
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
|
@ -1395,6 +1402,7 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Volume dropdown
|
// Volume dropdown
|
||||||
BarDropdown {
|
BarDropdown {
|
||||||
|
|
@ -1404,11 +1412,18 @@ in
|
||||||
fullHeight: volDropdownCol.height + 16
|
fullHeight: volDropdownCol.height + 16
|
||||||
autoCloseMs: 3000
|
autoCloseMs: 3000
|
||||||
|
|
||||||
Column {
|
Rectangle {
|
||||||
id: volDropdownCol
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 8
|
anchors.topMargin: 8
|
||||||
|
width: volDropdownCol.width + 20
|
||||||
|
height: volDropdownCol.height + 16
|
||||||
|
radius: 10
|
||||||
|
color: Theme.base01
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: volDropdownCol
|
||||||
|
anchors.centerIn: parent
|
||||||
width: 260
|
width: 260
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
|
|
@ -1430,7 +1445,7 @@ in
|
||||||
width: parent.width - masterVolLabel.width - 8
|
width: parent.width - masterVolLabel.width - 8
|
||||||
height: 20
|
height: 20
|
||||||
radius: 4
|
radius: 4
|
||||||
color: Theme.base01
|
color: Theme.base02
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
@ -1548,7 +1563,7 @@ in
|
||||||
width: parent.width - appVolLabel.width - 8
|
width: parent.width - appVolLabel.width - 8
|
||||||
height: 16
|
height: 16
|
||||||
radius: 3
|
radius: 3
|
||||||
color: Theme.base01
|
color: Theme.base02
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
@ -1589,6 +1604,7 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Network dropdown
|
// Network dropdown
|
||||||
BarDropdown {
|
BarDropdown {
|
||||||
|
|
@ -1597,11 +1613,18 @@ in
|
||||||
fullWidth: netDropdownCol.width + 24
|
fullWidth: netDropdownCol.width + 24
|
||||||
fullHeight: netDropdownCol.height + 16
|
fullHeight: netDropdownCol.height + 16
|
||||||
|
|
||||||
Column {
|
Rectangle {
|
||||||
id: netDropdownCol
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 8
|
anchors.topMargin: 8
|
||||||
|
width: netDropdownCol.width + 20
|
||||||
|
height: netDropdownCol.height + 16
|
||||||
|
radius: 10
|
||||||
|
color: Theme.base01
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: netDropdownCol
|
||||||
|
anchors.centerIn: parent
|
||||||
width: 220
|
width: 220
|
||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
|
|
@ -1732,6 +1755,7 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
${lib.optionalString isMacbook ''
|
${lib.optionalString isMacbook ''
|
||||||
// Battery dropdown
|
// Battery dropdown
|
||||||
|
|
@ -1741,11 +1765,18 @@ in
|
||||||
fullWidth: batteryDropdownCol.width + 24
|
fullWidth: batteryDropdownCol.width + 24
|
||||||
fullHeight: batteryDropdownCol.height + 16
|
fullHeight: batteryDropdownCol.height + 16
|
||||||
|
|
||||||
Column {
|
Rectangle {
|
||||||
id: batteryDropdownCol
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
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
|
width: 200
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
|
|
@ -1851,6 +1882,7 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
''}
|
''}
|
||||||
|
|
||||||
// Calendar popup
|
// Calendar popup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue