From 6077814878184b060f4f5c9c9594595350ddb0c1 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 24 Dec 2024 08:20:12 +0000 Subject: [PATCH] Set whatsapp appearance based on scheme variant --- system/desktop.nix | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/system/desktop.nix b/system/desktop.nix index baf70e9d..6f22cf94 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -205,19 +205,26 @@ fill_shape=false ''; # WhatsApp config - "whatsapp-for-linux/settings.conf" = { - force = true; - text = '' - [web] - allow-permissions=true - hw-accel=2 + "whatsapp-for-linux/settings.conf" = + let + inherit (config.lib.stylix.scheme) variant; + in + { + force = true; + text = '' + [web] + allow-permissions=true + hw-accel=2 - [general] - notification-sounds=true - close-to-tray=true - start-in-tray=true - ''; - }; + [general] + notification-sounds=true + close-to-tray=true + start-in-tray=true + + [appearance] + prefer-dark-theme=${if variant == "dark" then "true" else "false"} + ''; + }; # Teams config "teams-for-linux/config.json" = { force = true;