2024-08-02 22:32:29 -04:00
|
|
|
self: {
|
|
|
|
lib,
|
|
|
|
osConfig,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
config = let
|
2024-11-20 15:17:55 -05:00
|
|
|
inherit (self.scopedPackages.${pkgs.system}) dracula;
|
2024-08-02 22:32:29 -04:00
|
|
|
|
|
|
|
cfg = osConfig.roles.desktop;
|
|
|
|
in {
|
2024-08-31 19:16:06 -04:00
|
|
|
home.packages = [
|
|
|
|
pkgs.libsForQt5.qtstyleplugin-kvantum
|
|
|
|
pkgs.kdePackages.qtstyleplugin-kvantum
|
2024-08-02 22:32:29 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-08-05 16:23:53 -04:00
|
|
|
style.name = "kvantum";
|
2024-08-02 22:32:29 -04:00
|
|
|
platformTheme.name = "qtct";
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile = let
|
|
|
|
floatFont = lib.strings.floatToString cfg.fontSize;
|
|
|
|
qtconf =
|
|
|
|
# ini
|
|
|
|
''
|
|
|
|
[Fonts]
|
|
|
|
fixed="Sans Serif,${floatFont},-1,5,50,0,0,0,0,0"
|
|
|
|
general="Sans Serif,${floatFont},-1,5,50,0,0,0,0,0"
|
|
|
|
|
|
|
|
[Appearance]
|
|
|
|
icon_theme=Flat-Remix-Violet-Dark
|
|
|
|
style='';
|
|
|
|
# The newline before this must be there
|
|
|
|
in {
|
|
|
|
"Kvantum/Dracula/Dracula.kvconfig".source = "${dracula.gtk}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.kvconfig";
|
|
|
|
"Kvantum/Dracula/Dracula.svg".source = "${dracula.gtk}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.svg";
|
|
|
|
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Dracula";
|
|
|
|
|
|
|
|
"qt5ct/qt5ct.conf".text = qtconf + "kvantum";
|
|
|
|
"qt6ct/qt6ct.conf".text = qtconf + "kvantum";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./qt.nix;
|
|
|
|
}
|