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,
|
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;
|
||||||
|
|
Loading…
Reference in a new issue