Fixups, add bg

This commit is contained in:
Salt 2025-01-12 04:38:56 -06:00
parent 05cc785b60
commit d89d86a70b
2 changed files with 16 additions and 2 deletions

View File

@ -56,11 +56,25 @@ Rectangle {
} }
} }
Background {
anchors.fill: parent
source: Qt.resolvedUrl(config.background)
fillMode: Image.PreserveAspectCrop
onStatusChanged: {
var defaultBackground = Qt.resolvedUrl(config.defaultBackground)
if (status == Image.Error && source != defaultBackground) {
source = defaultBackground
}
}
}
// Background // Background
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: "transparent" color: "#00000000"
//visible: primaryScreen //color: "#e6000000"
// ^ This matches hyprlock but it looks kinda bad :<
visible: primaryScreen
// Within that bg, we have a login box with everything in it // Within that bg, we have a login box with everything in it
Rectangle { Rectangle {

BIN
theme/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB