From 6d3f4f33b56d8cd0e7aaef8f779ef01da54343fe Mon Sep 17 00:00:00 2001 From: satr14 Date: Tue, 5 May 2026 19:10:06 +0700 Subject: [PATCH] fix qt theme --- modules/home/rice/compositor.nix | 1 + modules/home/rice/theme.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/home/rice/compositor.nix b/modules/home/rice/compositor.nix index 1c84e92..00f19e0 100644 --- a/modules/home/rice/compositor.nix +++ b/modules/home/rice/compositor.nix @@ -51,6 +51,7 @@ "GTK_APPLICATION_PREFER_DARK_THEME,1" "GTK_THEME,Adwaita:dark" "QT_QPA_PLATFORMTHEME,kvantum" + "QT_STYLE_OVERRIDE,kvantum" ]; general = { diff --git a/modules/home/rice/theme.nix b/modules/home/rice/theme.nix index 83e5a2e..7946bf5 100644 --- a/modules/home/rice/theme.nix +++ b/modules/home/rice/theme.nix @@ -1,10 +1,9 @@ { lib, pkgs, ctp-opt, rice, ... }: { - dconf = { enable = true; settings."org/gnome/desktop/interface" = { color-scheme = "prefer-dark"; - gtk-theme = "Adwaita-dark"; + gtk-theme = lib.mkForce "Adwaita-dark"; }; }; @@ -24,6 +23,11 @@ qt = { enable = true; + kvantum = { + enable = true; + themes = with pkgs; [ catppuccin-kvantum ]; + settings.General.theme = "catppuccin-${ctp-opt.flavor}-${ctp-opt.accent}"; + }; platformTheme.name = "kvantum"; style = { name = "kvantum";