Make all parts of GTK theme variable, based on scheme variant

This commit is contained in:
Evie Litherland-Smith 2024-06-09 15:38:51 +01:00
parent e55a4d5d1a
commit 01cdbfea12

View file

@ -54,26 +54,29 @@
}; };
}; };
programs.mpv.enable = true; programs.mpv.enable = true;
gtk = let gtk = {
# Make this smarter at some point
type =
if config.scheme.variant == "light"
then "Light"
else "Dark";
in {
enable = true; enable = true;
iconTheme = { iconTheme = {
package = pkgs.papirus-icon-theme.override {color = "violet";}; package = pkgs.papirus-icon-theme.override {color = "violet";};
name = "Papirus-${type}"; name =
if config.scheme.variant == "light"
then "Papirus-Light"
else "Papirus-Dark";
}; };
cursorTheme = { cursorTheme = {
package = pkgs.volantes-cursors; package = pkgs.volantes-cursors;
name = "volantes_cursors"; name =
if config.scheme.variant == "light"
then "volantes_cursors"
else "volantes_light_cursors";
size = 32; size = 32;
}; };
theme = { theme = {
package = pkgs.arc-theme; package = pkgs.arc-theme;
name = "Arc-Lighter"; name =
if config.scheme.variant == "light"
then "Arc-Lighter"
else "Arc-Dark";
}; };
}; };
xdg = { xdg = {