diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2023-08-06 20:50:10 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2023-08-06 20:50:10 +0200 |
| commit | 26cebab9172c6f27e248fb1d296ce46bd6b81bb0 (patch) | |
| tree | 65f5be0d5ff35e27e7561cd2199fd113437e9075 | |
| parent | 13164f7837021972eb772e076ad5d8a7b7b8da10 (diff) | |
| download | wanda-26cebab9172c6f27e248fb1d296ce46bd6b81bb0.tar.xz wanda-26cebab9172c6f27e248fb1d296ce46bd6b81bb0.zip | |
wallpaper: also set dark-mode wallpaper
| -rw-r--r-- | source/lib/src/wallpaper.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/lib/src/wallpaper.cpp b/source/lib/src/wallpaper.cpp index 25cb493..c9c5cfe 100644 --- a/source/lib/src/wallpaper.cpp +++ b/source/lib/src/wallpaper.cpp @@ -80,8 +80,12 @@ namespace wanda value = "file://" + wallpaper.native(); }) || [&] { get_logger()->error("invalid settings key"); }; + with(setting["picture-uri-dark"_key], [&](auto & value) { + value = "file://" + wallpaper.native(); + }) || + [&] { get_logger()->error("invalid settings key"); }; }) || [&] { get_logger()->error("invalid setting"); }; } -} // namespace wanda
\ No newline at end of file +} // namespace wanda |
