wallpaper suport and polishing
This commit is contained in:
parent
79795005ae
commit
5ba9bafac3
@ -9,6 +9,7 @@ Variants {
|
||||
delegate: PanelWindow {
|
||||
id: root
|
||||
required property ShellScreen modelData
|
||||
aboveWindows: true
|
||||
margins {
|
||||
top: Settings.config.floating ? Settings.config.margins : 0
|
||||
left: Settings.config.floating ? Settings.config.margins : 0
|
||||
|
||||
27
modules/wallpaper/Wallpaper.qml
Normal file
27
modules/wallpaper/Wallpaper.qml
Normal file
@ -0,0 +1,27 @@
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import qs
|
||||
import qs.settings
|
||||
import Quickshell.Wayland
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
delegate: WlrLayershell {
|
||||
exclusionMode: ExclusionMode.Ignore
|
||||
aboveWindows: false
|
||||
id: wallpaperShell
|
||||
required property ShellScreen modelData
|
||||
layer: WlrLayer.Background
|
||||
anchors {
|
||||
top: true
|
||||
bottom: true
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
Image {
|
||||
id: wallpaper
|
||||
source: Settings.config.currentWall ? Settings.config.currentWall : ""
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -18,6 +18,7 @@ Singleton {
|
||||
property string font
|
||||
property int fontSize
|
||||
property int margins
|
||||
property var currentWall
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user