Compare commits
2 commits
ed6cd2c8d5
...
338e81d3ad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
338e81d3ad | ||
|
|
c22a8f796d |
2 changed files with 15 additions and 5 deletions
|
|
@ -7,10 +7,12 @@ import Quickshell.Wayland
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: window
|
id: window
|
||||||
|
|
||||||
|
default property alias content: contentItem.children
|
||||||
property alias background: background
|
property alias background: background
|
||||||
required property string name
|
required property string name
|
||||||
property bool canFocus: true
|
property bool canFocus: true
|
||||||
property bool focused: false
|
property bool focused: false
|
||||||
|
property int padding: 4
|
||||||
|
|
||||||
WlrLayershell.namespace: `lux-${name}`
|
WlrLayershell.namespace: `lux-${name}`
|
||||||
WlrLayershell.layer: WlrLayer.Top
|
WlrLayershell.layer: WlrLayer.Top
|
||||||
|
|
@ -54,11 +56,19 @@ PanelWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
border.width: 2
|
border.width: 2
|
||||||
border.color: Styling.theme.base200
|
border.color: Styling.theme.base300
|
||||||
Behavior on border.color {
|
Behavior on border.color {
|
||||||
ColorAnimation {
|
ColorAnimation {
|
||||||
duration: Styling.animations.speed.fast
|
duration: Styling.animations.speed.fast
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: contentItem
|
||||||
|
|
||||||
|
anchors.centerIn: parent
|
||||||
|
implicitWidth: parent.width - 2 * window.padding
|
||||||
|
implicitHeight: parent.height - 2 * window.padding
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,6 @@ StyledPanelWindow {
|
||||||
implicitWidth: rect.width
|
implicitWidth: rect.width
|
||||||
implicitHeight: rect.height
|
implicitHeight: rect.height
|
||||||
|
|
||||||
Process {
|
|
||||||
id: process
|
|
||||||
}
|
|
||||||
|
|
||||||
onFocusedChanged: {
|
onFocusedChanged: {
|
||||||
Visibility.powermenu = focused;
|
Visibility.powermenu = focused;
|
||||||
}
|
}
|
||||||
|
|
@ -29,6 +25,10 @@ StyledPanelWindow {
|
||||||
|
|
||||||
margin: 14
|
margin: 14
|
||||||
|
|
||||||
|
Process {
|
||||||
|
id: process
|
||||||
|
}
|
||||||
|
|
||||||
StyledListView {
|
StyledListView {
|
||||||
id: list
|
id: list
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue