1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

Allow solid colored wallpaper, fix fzf search

This commit is contained in:
bbedward
2025-09-03 16:29:47 -04:00
parent 3856ce14cd
commit b4e607e2b4
27 changed files with 639 additions and 427 deletions

View File

@@ -33,20 +33,42 @@ LazyLoader {
anchors.fill: parent
property string source: SessionData.wallpaperPath || ""
property bool isColorSource: source.startsWith("#")
property Image current: one
onSourceChanged: {
if (!source)
if (!source) {
current = null
else if (current === one)
two.update()
else
one.update()
one.source = ""
two.source = ""
} else if (isColorSource) {
current = null
one.source = ""
two.source = ""
} else {
if (current === one)
two.update()
else
one.update()
}
}
onIsColorSourceChanged: {
if (isColorSource) {
current = null
one.source = ""
two.source = ""
} else if (source) {
if (current === one)
two.update()
else
one.update()
}
}
Loader {
anchors.fill: parent
active: !root.source
active: !root.source || root.isColorSource
asynchronous: true
sourceComponent: DankBackdrop {}