summaryrefslogtreecommitdiff
path: root/src/caelestia/utils
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 12:13:21 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 12:13:21 +1000
commit9b58f7bf027fd01e16e03164cd533cb1b9973e52 (patch)
tree4d88906a4c8a7f91267c1ff232775f85e30ea387 /src/caelestia/utils
parentscheme: add list and get subcommands (diff)
downloadcaelestia-cli-9b58f7bf027fd01e16e03164cd533cb1b9973e52.tar.gz
caelestia-cli-9b58f7bf027fd01e16e03164cd533cb1b9973e52.tar.bz2
caelestia-cli-9b58f7bf027fd01e16e03164cd533cb1b9973e52.zip
wallpaper: fix smart mode
Do not switch mode if not dynamic scheme
Diffstat (limited to 'src/caelestia/utils')
-rw-r--r--src/caelestia/utils/wallpaper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/caelestia/utils/wallpaper.py b/src/caelestia/utils/wallpaper.py
index 3db9dab..d7e1ea2 100644
--- a/src/caelestia/utils/wallpaper.py
+++ b/src/caelestia/utils/wallpaper.py
@@ -91,7 +91,7 @@ def get_colours_for_wall(wall: Path | str, no_smart: bool) -> None:
scheme = get_scheme()
cache = wallpapers_cache_dir / compute_hash(wall)
- if not no_smart:
+ if scheme.name == "dynamic" and not no_smart:
scheme = Scheme(
{
"name": scheme.name,
@@ -105,7 +105,7 @@ def get_colours_for_wall(wall: Path | str, no_smart: bool) -> None:
return {
"name": scheme.name,
"flavour": scheme.flavour,
- "mode": get_smart_mode(wall, cache),
+ "mode": scheme.mode,
"variant": scheme.variant,
"colours": get_colours_for_image(get_thumb(wall, cache), scheme),
}
@@ -133,7 +133,7 @@ def set_wallpaper(wall: Path | str, no_smart: bool) -> None:
scheme = get_scheme()
# Change mode based on wallpaper colour
- if not no_smart:
+ if scheme.name == "dynamic" and not no_smart:
scheme.mode = get_smart_mode(wall, cache)
# Update colours