Set whatsapp appearance based on scheme variant

This commit is contained in:
Evie Litherland-Smith 2024-12-24 08:20:12 +00:00
parent 56cdefd666
commit 6077814878

View file

@ -205,19 +205,26 @@
fill_shape=false fill_shape=false
''; '';
# WhatsApp config # WhatsApp config
"whatsapp-for-linux/settings.conf" = { "whatsapp-for-linux/settings.conf" =
force = true; let
text = '' inherit (config.lib.stylix.scheme) variant;
[web] in
allow-permissions=true {
hw-accel=2 force = true;
text = ''
[web]
allow-permissions=true
hw-accel=2
[general] [general]
notification-sounds=true notification-sounds=true
close-to-tray=true close-to-tray=true
start-in-tray=true start-in-tray=true
'';
}; [appearance]
prefer-dark-theme=${if variant == "dark" then "true" else "false"}
'';
};
# Teams config # Teams config
"teams-for-linux/config.json" = { "teams-for-linux/config.json" = {
force = true; force = true;