From 6ecc3d194f36964d33a9d35d5d59d5000142da32 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 21 Apr 2023 14:31:51 +0200 Subject: [PATCH] Reduce size of gtk CSD header bars --- modules/graphical/theme/default.nix | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/modules/graphical/theme/default.nix b/modules/graphical/theme/default.nix index b920d7aa..03c8c282 100644 --- a/modules/graphical/theme/default.nix +++ b/modules/graphical/theme/default.nix @@ -59,9 +59,27 @@ gtk-cursor-theme-name = "Vanilla-DMZ" gtk-cursor-theme-size = 24 ''; - gtk3.extraConfig = { - gtk-cursor-theme-name = "Vanilla-DMZ"; - gtk-cursor-theme-size = 24; + gtk3 = { + extraConfig = { + gtk-cursor-theme-name = "Vanilla-DMZ"; + gtk-cursor-theme-size = 24; + }; + extraCss = '' + headerbar { + min-height: 0px; + padding: 0px; + margin: 0px; + } + + headerbar entry, + headerbar spinbutton, + headerbar button, + headerbar separator { + min-height: 0px; + padding: 0px; + margin: 0px; + } + ''; }; iconTheme = { package = pkgs.libsForQt5.breeze-icons;