mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 06:51:54 -05:00
remove remaining theme config outside icons + gtk settings
This commit is contained in:
parent
545b892c84
commit
03e1803423
|
@ -198,41 +198,21 @@ in {
|
|||
waybar.enable = lib.mkEnableOption "Waybar wayland panel.";
|
||||
};
|
||||
|
||||
theme = let
|
||||
mkFontOption = typ: nam: pkg: siz: {
|
||||
name = lib.mkOption {
|
||||
description = "Default ${typ} font name.";
|
||||
default = nam;
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
package = lib.mkOption {
|
||||
description = "Default ${typ} font package.";
|
||||
default = pkg;
|
||||
type = lib.types.package;
|
||||
};
|
||||
|
||||
size = lib.mkOption {
|
||||
description = "Default ${typ} font size.";
|
||||
default = siz;
|
||||
type = lib.types.int;
|
||||
};
|
||||
};
|
||||
in {
|
||||
theme = {
|
||||
enable = lib.mkEnableOption "Gtk, Qt, and application colors.";
|
||||
|
||||
darkMode = lib.mkOption {
|
||||
description = "Whether to prefer dark mode apps or not.";
|
||||
default = cfg.theme.enable;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
borderRadius = lib.mkOption {
|
||||
description = "Global border radius.";
|
||||
default = 10;
|
||||
type = lib.types.int;
|
||||
};
|
||||
|
||||
darkMode = lib.mkOption {
|
||||
description = "Whether to prefer dark mode apps or not.";
|
||||
default = config.stylix.polarity == "dark";
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
gtk.hideTitleBar = lib.mkOption {
|
||||
description = "Whether to hide GTK3/4 titlebars (useful for some window managers).";
|
||||
default = false;
|
||||
|
|
|
@ -55,19 +55,5 @@ in {
|
|||
gtk3 = {inherit (gtk) extraCss;};
|
||||
gtk4 = {inherit (gtk) extraCss;};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "qtct";
|
||||
|
||||
style = {
|
||||
name =
|
||||
if cfg.darkMode
|
||||
then "Adwaita-Dark"
|
||||
else "Adwaita";
|
||||
|
||||
package = pkgs.adwaita-qt6;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -113,6 +113,10 @@ self: {
|
|||
randomWallpaper.enable = true;
|
||||
};
|
||||
|
||||
theme.enable = true;
|
||||
theme = {
|
||||
enable = true;
|
||||
borderRadius = 0;
|
||||
darkMode = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue