options/style: delete
This commit is contained in:
parent
753fb58c91
commit
7616375700
6 changed files with 67 additions and 122 deletions
|
@ -3,20 +3,37 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
theme = {
|
||||
package = pkgs.gruvbox-gtk-theme;
|
||||
name = "Gruvbox-Dark-BL";
|
||||
};
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
inherit (lib.types) str package;
|
||||
cfg = config.modules.usrEnv.style.qt;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
environment.sessionVariables = {QT_QPA_PLATFORMTHEME = "qt5ct";};
|
||||
|
||||
environment.variables = {
|
||||
QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
|
||||
GTK_THEME = theme.name;
|
||||
options.modules.usrEnv.style.qt = {
|
||||
enable = mkEnableOption "qt theming";
|
||||
name = mkOption {
|
||||
description = "qt theme name";
|
||||
default = "Catppuccin-Mocha-Dark";
|
||||
type = str;
|
||||
};
|
||||
variant = mkOption {
|
||||
description = "qt theme variant";
|
||||
default = "mocha";
|
||||
type = str;
|
||||
};
|
||||
accentColor = mkOption {
|
||||
description = "accent colour for qt theme";
|
||||
default = "green";
|
||||
type = str;
|
||||
};
|
||||
package = mkOption {
|
||||
description = "qt theme package";
|
||||
default = pkgs.catppuccin-kde;
|
||||
type = package;
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
mkIf cfg.enable {
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue