home/programs/gtk: set gtk-application-prefer-dark-theme based on global variant
This commit is contained in:
parent
44560d184d
commit
4277ad8417
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
nixosConfig,
|
||||
|
@ -11,8 +12,10 @@
|
|||
};
|
||||
|
||||
gtk = let
|
||||
isDark = inputs.basix.schemeData.base16.${nixosConfig.style.scheme}.variant == "dark";
|
||||
commonGtkConfig = {
|
||||
gtk-decoration-layout = ":menu";
|
||||
gtk-application-prefer-dark-theme = isDark;
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue