From 55081d618f5076f918b576b07f45a6018da8abe3 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Wed, 23 Sep 2026 03:59:10 +0500 Subject: [PATCH] darken kde apps --- home/theme.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/home/theme.nix b/home/theme.nix index 716dfea..18f30de 100644 --- a/home/theme.nix +++ b/home/theme.nix @@ -15,6 +15,10 @@ # Qt5/Qt6 qt5ct/qt6ct, because nixpkgs builds qtbase without the qgtk3 # platform theme (withGtk3 = false), so QT_QPA_PLATFORMTHEME=gtk3 # would silently do nothing. +# KDE apps KColorScheme reads colors from ~/.config/kdeglobals, not the Qt +# palette, and falls back to light Breeze when it is missing -- +# which is why KDE apps came out half dark, half white. A +# .colors file is already in kdeglobals format. { pkgs, ... }: { @@ -44,7 +48,7 @@ # Pulls adwaita-qt{,6} in without setting QT_STYLE_OVERRIDE -- that # variable makes qt5ct/qt6ct skip their own config entirely. - style.package = [ pkgs.adwaita-qt pkgs.adwaita-qt6 ]; + style.package = [ pkgs.adwaita-qt pkgs.adwaita-qt6 pkgs.kdePackages.breeze ]; qt5ctSettings.Appearance = { style = "Adwaita-Dark"; @@ -53,9 +57,12 @@ }; qt6ctSettings.Appearance = { - style = "Adwaita-Dark"; + style = "Breeze"; icon_theme = "Adwaita"; standard_dialogs = "xdgdesktopportal"; }; }; + + xdg.configFile."kdeglobals".source = + "${pkgs.kdePackages.breeze}/share/color-schemes/BreezeDark.colors"; }