nixos-configs/home/theme/qt.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
pkgs,
lib,
config,
...
}: let
inherit (config.vars) fontSize;
in {
home.packages = with pkgs; [
libsForQt5.qtstyleplugin-kvantum
2024-02-12 09:35:07 -05:00
qt6Packages.qtstyleplugin-kvantum
];
qt = {
enable = true;
2024-04-19 22:53:54 -04:00
platformTheme.name = "qtct";
};
xdg.configFile = let
floatFont = lib.strings.floatToString 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
2024-01-16 10:55:02 -05:00
style='';
# The newline before this must be there
2023-11-22 15:33:16 -05:00
in {
"Kvantum/Dracula/Dracula.kvconfig".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.kvconfig";
2023-11-22 15:33:16 -05:00
"Kvantum/Dracula/Dracula.svg".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.svg";
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Dracula";
"qt5ct/qt5ct.conf".text = qtconf + "kvantum";
2024-02-12 09:35:07 -05:00
"qt6ct/qt6ct.conf".text = qtconf + "kvantum";
};
}