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

Per light-mode/dark-mode wallpaper option

This commit is contained in:
bbedward
2025-09-30 12:29:08 -04:00
parent 165f7e0720
commit 657a8b6094
3 changed files with 176 additions and 6 deletions

View File

@@ -38,6 +38,18 @@ LazyLoader {
property bool isColorSource: source.startsWith("#")
property string transitionType: SessionData.wallpaperTransition
property string actualTransitionType: transitionType
Connections {
target: SessionData
function onIsLightModeChanged() {
if (SessionData.perModeWallpaper) {
var newSource = SessionData.getMonitorWallpaper(modelData.name) || ""
if (newSource !== root.source) {
root.source = newSource
}
}
}
}
onTransitionTypeChanged: {
if (transitionType === "random") {
if (SessionData.includedTransitions.length === 0) {