From c22a8f796d81397a927a122ad5dd4afb138e650f Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Wed, 17 Sep 2025 10:21:42 -0400 Subject: [PATCH 1/2] move process, window cant take it atm --- modules/powermenu/PowerMenu.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/powermenu/PowerMenu.qml b/modules/powermenu/PowerMenu.qml index 712d94d..ad87ea3 100644 --- a/modules/powermenu/PowerMenu.qml +++ b/modules/powermenu/PowerMenu.qml @@ -16,10 +16,6 @@ StyledPanelWindow { implicitWidth: rect.width implicitHeight: rect.height - Process { - id: process - } - onFocusedChanged: { Visibility.powermenu = focused; } @@ -29,6 +25,10 @@ StyledPanelWindow { margin: 14 + Process { + id: process + } + StyledListView { id: list From 338e81d3ad1adf0461102f8641dbcc5823f2f16b Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Wed, 17 Sep 2025 10:21:59 -0400 Subject: [PATCH 2/2] set default property on windowpanel for styling --- components/StyledPanelWindow.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/components/StyledPanelWindow.qml b/components/StyledPanelWindow.qml index 45562dd..7a730c6 100644 --- a/components/StyledPanelWindow.qml +++ b/components/StyledPanelWindow.qml @@ -7,10 +7,12 @@ import Quickshell.Wayland PanelWindow { id: window + default property alias content: contentItem.children property alias background: background required property string name property bool canFocus: true property bool focused: false + property int padding: 4 WlrLayershell.namespace: `lux-${name}` WlrLayershell.layer: WlrLayer.Top @@ -54,11 +56,19 @@ PanelWindow { } } border.width: 2 - border.color: Styling.theme.base200 + border.color: Styling.theme.base300 Behavior on border.color { ColorAnimation { duration: Styling.animations.speed.fast } } } + + Item { + id: contentItem + + anchors.centerIn: parent + implicitWidth: parent.width - 2 * window.padding + implicitHeight: parent.height - 2 * window.padding + } }