nosignal-shell/modules/background/Background.qml
Kaj 3e3e98b340
feat: add a simple desktop clock (#238)
* Adds a simple desktop clock

* Adds ability to change color

* Sets the desktop clock to be disabled by default

* Improves desktop clock code based on feedback

* Disable the clock by default

* Fixes config of background clock

* Removes the timer for the desktop clock

---------

Co-authored-by: Kaj Giesbers <kajgiesbers@gmail.com>
2025-07-22 00:17:23 +10:00

38 lines
912 B
QML

import qs.widgets
import qs.config
import Quickshell
import Quickshell.Wayland
LazyLoader {
activeAsync: Config.background.enabled
Variants {
model: Quickshell.screens
StyledWindow {
id: win
required property ShellScreen modelData
screen: modelData
name: "background"
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.layer: WlrLayer.Background
color: "black"
anchors.top: true
anchors.bottom: true
anchors.left: true
anchors.right: true
Wallpaper {}
DesktopClock {
visible: Config.background.desktopClock.enabled
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.margins: Appearance.padding.large
}
}
}
}