From 4277ad841784678a24a8e6e99d3994b3cab2e4a8 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Mon, 7 Oct 2024 18:43:37 +0200 Subject: [PATCH] home/programs/gtk: set gtk-application-prefer-dark-theme based on global variant --- home/programs/gtk.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/programs/gtk.nix b/home/programs/gtk.nix index 593d11d..ac4ad27 100644 --- a/home/programs/gtk.nix +++ b/home/programs/gtk.nix @@ -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;