Compare commits

...

2 commits

Author SHA1 Message Date
Benjamin Palko
338e81d3ad set default property on windowpanel for styling 2025-09-17 10:21:59 -04:00
Benjamin Palko
c22a8f796d move process, window cant take it atm 2025-09-17 10:21:42 -04:00
2 changed files with 15 additions and 5 deletions

View file

@ -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
}
}

View file

@ -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