fix(theme): clearer naming and making secondary optional

This commit is contained in:
2025-08-31 14:58:20 +02:00
parent d23eca184a
commit 3ca2291784
4 changed files with 7 additions and 7 deletions

View File

@@ -36,7 +36,7 @@
theme = { theme = {
background = { background = {
lockscreen = "wallpaper_2"; lockscreen = "wallpaper_2";
desktop = "wallpaper_1"; primary = "wallpaper_1";
}; };
}; };
}; };

View File

@@ -36,8 +36,8 @@
theme = { theme = {
background = { background = {
lockscreen = "wallpaper_4"; lockscreen = "wallpaper_4";
desktop = "wallpaper_1"; primary = "wallpaper_1";
vertical = "wallpaper_5"; secondary = "wallpaper_5";
}; };
}; };
}; };

View File

@@ -23,7 +23,7 @@
theme = { theme = {
background = { background = {
lockscreen = "wallpaper_2"; lockscreen = "wallpaper_2";
desktop = "wallpaper_1"; primary = "wallpaper_1";
}; };
}; };
}; };

View File

@@ -18,14 +18,14 @@ in
apply = name: bgs.${name}; apply = name: bgs.${name};
example = "wallpaper_1"; example = "wallpaper_1";
}; };
desktop = mkOption { primary = mkOption {
type = types.enum bgList; type = types.enum bgList;
apply = name: bgs.${name}; apply = name: bgs.${name};
example = "wallpaper_2"; example = "wallpaper_2";
}; };
vertical = mkOption { secondary = mkOption {
type = types.enum bgList; type = types.enum bgList;
apply = name: bgs.${name}; apply = name: if name == null then null else bgs.${name};
example = "wallpaper_3"; example = "wallpaper_3";
}; };
}; };