# Dark GTK and Qt look, icons and cursor. Noctalia themes the shell itself; # this keeps the apps consistent with it. { config, lib, pkgs, ... }: let cfg = config.my.home.theming; in { options.my.home.theming.enable = lib.mkEnableOption "GTK/Qt theme, icons and cursor"; config = lib.mkIf cfg.enable { gtk = { enable = true; colorScheme = "dark"; theme = { name = "adw-gtk3-dark"; package = pkgs.adw-gtk3; }; iconTheme = { name = "Papirus-Dark"; package = pkgs.papirus-icon-theme; }; }; # GTK picks the cursor up from here (gtk.enable below). home.pointerCursor = { enable = true; package = pkgs.bibata-cursors; name = "Bibata-Modern-Classic"; size = 24; gtk.enable = true; }; # Qt apps follow the GTK settings, with the Adwaita dark widget style. qt = { enable = true; platformTheme.name = "gtk3"; style.name = "adwaita-dark"; }; # libadwaita and GTK 4 apps read the preference from dconf. The system # needs programs.dconf.enable for this to be applied. dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark"; }; }