Skip to content

Commit c0af40d

Browse files
authored
fix: proper background for 'prefer-light' color-scheme (#1051)
Previous logic for handling which picture uri to use based on the system theme were only checking for 'default' and fallbaking to dark in all other cases. That caused a bug, where if system is in 'prefer-light', it would render wallpaper for dark theme(picture-uri-dark). This PR fixes it.
2 parents 1ff0d05 + 15c09be commit c0af40d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tiling.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,10 +1671,10 @@ border-radius: ${borderWidth}px;
16711671
let path = this.settings.get_string('background') || Settings.prefs.default_background;
16721672
let useDefault = gsettings.get_boolean('use-default-background');
16731673
if (!path && useDefault) {
1674-
if (interfaceSettings.get_string("color-scheme") === "default") {
1675-
path = backgroundSettings.get_string("picture-uri");
1676-
} else {
1674+
if (interfaceSettings.get_string("color-scheme") === "prefer-dark") {
16771675
path = backgroundSettings.get_string("picture-uri-dark");
1676+
} else {
1677+
path = backgroundSettings.get_string("picture-uri");
16781678
}
16791679
}
16801680

0 commit comments

Comments
 (0)