From 5bfbb7ebe565a799c336b124a398f0b92e122e57 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Sun, 5 Jan 2025 02:07:48 -0600 Subject: [PATCH] even more dark theme --- home/modules/gui/default.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/home/modules/gui/default.nix b/home/modules/gui/default.nix index 1df22bd..1e8196e 100644 --- a/home/modules/gui/default.nix +++ b/home/modules/gui/default.nix @@ -114,10 +114,23 @@ in { }; gtk = { + enable = true; + iconTheme = { name = "Papirus-Dark"; package = pkgs.papirus-icon-theme; }; + theme = { + package = pkgs.materia-theme; + name = "Materia-dark"; + }; + + gtk2.extraConfig = '' + gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ + gtk-menu-images=1 + gtk-button-images=1 + ''; + gtk3.extraConfig = { gtk-application-prefer-dark-theme = 1; }; @@ -129,7 +142,17 @@ in { qt = { enable = true; style.name = "bb10dark"; - platformTheme.name = "gtk3"; + platformTheme.name = "gtk"; + }; + + home.sessionVariables = { + # Use gtk in jvm apps + _JAVA_OPTIONS = concatStringsSep " " [ + "-Dawt.useSystemAAFontSettings=on" + "-Dswing.aatext=true" + "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" + "-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" + ]; }; }; }