home/programs/gtk: set gtk-application-prefer-dark-theme based on global variant

This commit is contained in:
Anthony Rodriguez 2024-10-07 18:43:37 +02:00
parent 44560d184d
commit 4277ad8417
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,4 +1,5 @@
{ {
inputs,
pkgs, pkgs,
config, config,
nixosConfig, nixosConfig,
@ -11,8 +12,10 @@
}; };
gtk = let gtk = let
isDark = inputs.basix.schemeData.base16.${nixosConfig.style.scheme}.variant == "dark";
commonGtkConfig = { commonGtkConfig = {
gtk-decoration-layout = ":menu"; gtk-decoration-layout = ":menu";
gtk-application-prefer-dark-theme = isDark;
}; };
in { in {
enable = true; enable = true;