mirror of
https://github.com/danth/stylix
synced 2024-11-22 12:13:08 +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 {
|
||||
options.stylix.targets.swaylock = {
|
||||
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 {
|
||||
|
@ -46,7 +53,7 @@ in {
|
|||
text-caps-lock-color = text;
|
||||
text-ver-color = text;
|
||||
text-wrong-color = text;
|
||||
} // (if config.stylix.targets.swaylock.useBackground then {
|
||||
} // (if config.stylix.targets.swaylock.useImage then {
|
||||
image = "${config.stylix.image}";
|
||||
} else {} ));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue