Compare commits
No commits in common. "338e81d3ad1adf0461102f8641dbcc5823f2f16b" and "ed6cd2c8d59cac08e43814384c6d0183d71f03d2" have entirely different histories.
338e81d3ad
...
ed6cd2c8d5
2 changed files with 5 additions and 15 deletions
|
|
@ -7,12 +7,10 @@ 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
|
||||
|
|
@ -56,19 +54,11 @@ PanelWindow {
|
|||
}
|
||||
}
|
||||
border.width: 2
|
||||
border.color: Styling.theme.base300
|
||||
border.color: Styling.theme.base200
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@ StyledPanelWindow {
|
|||
implicitWidth: rect.width
|
||||
implicitHeight: rect.height
|
||||
|
||||
Process {
|
||||
id: process
|
||||
}
|
||||
|
||||
onFocusedChanged: {
|
||||
Visibility.powermenu = focused;
|
||||
}
|
||||
|
|
@ -25,10 +29,6 @@ StyledPanelWindow {
|
|||
|
||||
margin: 14
|
||||
|
||||
Process {
|
||||
id: process
|
||||
}
|
||||
|
||||
StyledListView {
|
||||
id: list
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue