use kde to manage qt style

This commit is contained in:
2026-02-24 16:50:17 +08:00
parent 39a9318f11
commit dbd97e0034
2 changed files with 137 additions and 11 deletions
+14 -11
View File
@@ -2,6 +2,7 @@
config,
lib,
pkgs,
impure,
...
}:
let
@@ -81,20 +82,22 @@ in
#QT
qt = {
enable = true;
style.package = with pkgs; [
darkly-qt5
darkly-qt6
];
platformTheme.name = "qtct";
platformTheme.name = "kde";
style = {
package = with pkgs; [
darkly-qt5
darkly-qt6
];
name = "Darkly";
};
};
xdg.configFile = {
"qt5ct/qt5ct.conf".source = pkgs.replaceVars ./qtct/qt5ct.conf {
darker = pkgs.libsForQt5.qt5ct + /share/qt5ct/colors/darker.conf;
};
"qt6ct/qt6ct.conf".source = pkgs.replaceVars ./qtct/qt6ct.conf {
darker = pkgs.qt6Packages.qt6ct + /share/qt6ct/colors/darker.conf;
};
kdeglobals.source = impure.mkImpureLink ./kdeglobals;
plasmarc.text = ''
[Theme]
name=darkly
'';
};
};
};