This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
qt.nix
86 lines (76 loc) · 2.34 KB
/
qt.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
config,
pkgs,
lib,
...
}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) package str;
cfg = config.modules.style.qt;
in {
options.modules.style.qt = {
enable = mkEnableOption "QT Style Module";
theme = {
package = mkOption {
type = package;
default = pkgs.catppuccin-kde.override {
flavour = ["mocha"];
accents = ["blue"];
winDecStyles = ["modern"];
};
description = ''
The theme package to be used for QT programs.
This package will be used to acquire source files
for program themes, and as such it should always
contain conventional theming related filepaths.
'';
};
name = mkOption {
type = str;
default = "Catppuccin-Mocha-Dark";
description = "The name for the QT theme package";
};
};
# Additional sources for theme packages.
kvantum = {
package = mkOption {
type = package;
default = pkgs.catppuccin-kvantum.override {
accent = "Blue";
variant = "Mocha";
};
description = ''
Path to the kvantum theme package to be used for QT programs.
'';
};
kvconfig = mkOption {
type = str;
default = "${cfg.kvantum.package}/share/Kvantum/Catppuccin-Mocha-Blue/Catppuccin-Mocha-Blue.kvconfig";
description = ''
Path to the kvantum theme package to be used
for QT programs (configuration).
'';
};
svg = mkOption {
type = str;
default = "${cfg.kvantum.package}/share/Kvantum/Catppuccin-Mocha-Blue/Catppuccin-Mocha-Blue.svg";
description = ''
Path to the kvantum theme package to be used
for QT programs (vectors).
'';
};
};
kdeglobals = {
package = mkOption {
type = str;
default = "${cfg.theme.package}/share/color-schemes/CatppuccinMochaBlue.colors";
description = "The source file for the kdeglobals file. Usually provided by the qt theme package";
};
colors = mkOption {
type = str;
default = "${cfg.theme.package}/share/color-schemes/CatppuccinMochaBlue.colors";
description = "The source file for the kdeglobals file. Usually provided by the qt theme package";
};
};
};
}