From 6b0161b2639bb49e270754e90f4f8a47311c5198 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 18 Sep 2026 23:26:17 +0530 Subject: chore: projectwide refactoring - Using more consistent naming conventions across the project. Using java style super descriptive variable names. - Removed slop comments in favor of using more descriptive naming conventions. --- modules/desktop/xdg/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'modules/desktop/xdg') diff --git a/modules/desktop/xdg/default.nix b/modules/desktop/xdg/default.nix index ef27182..7f46d37 100644 --- a/modules/desktop/xdg/default.nix +++ b/modules/desktop/xdg/default.nix @@ -5,6 +5,9 @@ pkgs, ... }: +let + base16Colors = import ../../colors/base16 { inherit config lib pkgs; }; +in { config = lib.mkIf config.desktop.enable { dconf.enable = true; @@ -25,12 +28,10 @@ gtk = let - gtkCss = builtins.readFile ( - config.scheme { - template = builtins.readFile ./style.css; - extension = ".css"; - } - ); + gtkColorSchemeCss = builtins.readFile (base16Colors { + templateFileOrContent = builtins.readFile ./style.css; + fileExtension = ".css"; + }); in { enable = true; @@ -52,12 +53,12 @@ size = 20; }; colorScheme = "dark"; - gtk3.extraCss = gtkCss; + gtk3.extraCss = gtkColorSchemeCss; gtk4 = { # GTK 4/libadwaita does not support loading GTK 3 themes; use the - # OneDark Dark CSS above without Home Manager's compatibility workaround. + # themed CSS above without Home Manager's compatibility workaround. theme = null; - extraCss = gtkCss; + extraCss = gtkColorSchemeCss; }; }; }; -- cgit v1.2.3