old
1{lib, ...}: {
2 den.aspects.desktop.style.qt = {
3 nixos = {
4 qt = {
5 enable = true;
6 platformTheme = "qt5ct";
7 };
8 };
9
10 homeManager = {
11 qt = {
12 enable = true;
13 platformTheme.name = "qtct";
14 };
15 };
16 };
17
18 den.aspects.desktop.style.qt.themes = {
19 catppuccin = {
20 homeManager = {pkgs, ...}: {
21 qt = lib.genAttrs' ["qt5ct" "qt6ct"] (s:
22 lib.nameValuePair "${s}Settings" {
23 Appearance = {
24 custom_palette = true;
25 color_scheme_path = "${pkgs.catppuccin-qt5ct}/share/${s}/colors/catppuccin-mocha-mauve.conf";
26 };
27 });
28
29 xdg.dataFile."color-schemes".source = pkgs.fetchzip {
30 name = "Catppuccin-KDE-Mocha-color-schemes";
31 url = "https://github.com/catppuccin/kde/releases/download/v0.3.1/Mocha-color-schemes.tar.gz";
32 hash = "sha256-HlinXVRAPLKMGe+Puf91beYerdpfY7mbLX1SsNDXRho=";
33 };
34 };
35 };
36 };
37}