remove remaining theme config outside icons + gtk settings

This commit is contained in:
Aly Raffauf 2024-08-15 01:59:46 -04:00
parent 545b892c84
commit 03e1803423
3 changed files with 12 additions and 42 deletions

View file

@ -198,41 +198,21 @@ in {
waybar.enable = lib.mkEnableOption "Waybar wayland panel."; waybar.enable = lib.mkEnableOption "Waybar wayland panel.";
}; };
theme = let theme = {
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 {
enable = lib.mkEnableOption "Gtk, Qt, and application colors."; 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 { borderRadius = lib.mkOption {
description = "Global border radius."; description = "Global border radius.";
default = 10; default = 10;
type = lib.types.int; 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 { gtk.hideTitleBar = lib.mkOption {
description = "Whether to hide GTK3/4 titlebars (useful for some window managers)."; description = "Whether to hide GTK3/4 titlebars (useful for some window managers).";
default = false; default = false;

View file

@ -55,19 +55,5 @@ in {
gtk3 = {inherit (gtk) extraCss;}; gtk3 = {inherit (gtk) extraCss;};
gtk4 = {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;
};
};
}; };
} }

View file

@ -113,6 +113,10 @@ self: {
randomWallpaper.enable = true; randomWallpaper.enable = true;
}; };
theme.enable = true; theme = {
enable = true;
borderRadius = 0;
darkMode = true;
};
}; };
} }