2023-11-22 15:33:16 -05:00
|
|
|
{
|
|
|
|
config,
|
2024-06-08 23:40:44 -04:00
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
self,
|
2023-11-22 15:33:16 -05:00
|
|
|
...
|
2024-01-09 13:13:04 -05:00
|
|
|
}: let
|
|
|
|
inherit (config.vars) fontSize;
|
2024-06-10 22:57:20 -04:00
|
|
|
inherit (self.legacyPackages.${pkgs.system}) dracula;
|
2024-01-09 13:13:04 -05:00
|
|
|
in {
|
2023-10-04 00:50:39 -04:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
2024-02-12 09:35:07 -05:00
|
|
|
qt6Packages.qtstyleplugin-kvantum
|
2023-10-04 00:50:39 -04:00
|
|
|
];
|
2024-03-11 12:23:15 -04:00
|
|
|
|
2023-10-03 22:42:20 -04:00
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-04-19 22:53:54 -04:00
|
|
|
platformTheme.name = "qtct";
|
2023-10-03 22:42:20 -04:00
|
|
|
};
|
|
|
|
|
2023-10-04 00:50:39 -04:00
|
|
|
xdg.configFile = let
|
2024-01-09 13:13:04 -05:00
|
|
|
floatFont = lib.strings.floatToString fontSize;
|
2024-01-08 11:25:18 -05:00
|
|
|
qtconf =
|
2024-06-09 22:49:30 -04:00
|
|
|
# ini
|
2024-01-08 11:25:18 -05:00
|
|
|
''
|
|
|
|
[Fonts]
|
2024-01-09 13:13:04 -05:00
|
|
|
fixed="Sans Serif,${floatFont},-1,5,50,0,0,0,0,0"
|
|
|
|
general="Sans Serif,${floatFont},-1,5,50,0,0,0,0,0"
|
2023-10-03 09:48:12 -04:00
|
|
|
|
2024-01-08 11:25:18 -05:00
|
|
|
[Appearance]
|
|
|
|
icon_theme=Flat-Remix-Violet-Dark
|
2024-01-16 10:55:02 -05:00
|
|
|
style='';
|
2024-01-16 23:51:28 -05:00
|
|
|
# The newline before this must be there
|
2023-11-22 15:33:16 -05:00
|
|
|
in {
|
2024-06-08 23:40:44 -04:00
|
|
|
"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";
|
2023-11-22 15:33:16 -05:00
|
|
|
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Dracula";
|
2023-10-04 00:50:39 -04:00
|
|
|
|
|
|
|
"qt5ct/qt5ct.conf".text = qtconf + "kvantum";
|
2024-02-12 09:35:07 -05:00
|
|
|
"qt6ct/qt6ct.conf".text = qtconf + "kvantum";
|
2023-10-03 09:48:12 -04:00
|
|
|
};
|
|
|
|
}
|