mirror of
https://github.com/danth/stylix
synced 2024-11-26 14:10:22 +00:00
Rename useBackground
to useImage
💬
This commit is contained in:
parent
b51d8f3ca2
commit
939904e071
1 changed files with 9 additions and 2 deletions
|
@ -13,7 +13,14 @@ let
|
||||||
in {
|
in {
|
||||||
options.stylix.targets.swaylock = {
|
options.stylix.targets.swaylock = {
|
||||||
enable = config.lib.stylix.mkEnableTarget "Swaylock" true;
|
enable = config.lib.stylix.mkEnableTarget "Swaylock" true;
|
||||||
useBackground = lib.mkOption { type = lib.types.bool; default = true; };
|
useImage = lib.mkOption {
|
||||||
|
description = ''
|
||||||
|
Whether to use your wallpaper image for the Swaylock background.
|
||||||
|
If this is disabled, a plain color will be used instead.
|
||||||
|
'';
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.stylix.targets.swaylock.enable {
|
config = lib.mkIf config.stylix.targets.swaylock.enable {
|
||||||
|
@ -46,7 +53,7 @@ in {
|
||||||
text-caps-lock-color = text;
|
text-caps-lock-color = text;
|
||||||
text-ver-color = text;
|
text-ver-color = text;
|
||||||
text-wrong-color = text;
|
text-wrong-color = text;
|
||||||
} // (if config.stylix.targets.swaylock.useBackground then {
|
} // (if config.stylix.targets.swaylock.useImage then {
|
||||||
image = "${config.stylix.image}";
|
image = "${config.stylix.image}";
|
||||||
} else {} ));
|
} else {} ));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue