commit e74f1b35844f62ab5cbc53170c13e684a3bc9e4a
parent 6ea50dcf95ac0a854f4ec7054b64e756de5dcee0
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Sun, 6 Apr 2025 19:09:46 +0200
refactor: make childBorder and indicator always set to border
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix
@@ -80,8 +80,6 @@
default = {
background = colors.transparent;
border = colors.transparent;
- childBorder = colors.transparent;
- indicator = colors.transparent;
text = colors.white;
};
in
@@ -91,8 +89,6 @@
focused = {
background = colors.white;
border = colors.white;
- childBorder = colors.white;
- indicator = colors.white;
text = colors.background;
};
@@ -101,13 +97,24 @@
urgent = {
inherit (default)
background
- childBorder
- indicator
text
;
border = colors.red;
};
- };
+ }
+ |> builtins.mapAttrs (
+ name:
+ {
+ background,
+ border,
+ text,
+ }:
+ {
+ inherit background border text;
+ childBorder = border;
+ indicator = border;
+ }
+ );
gaps = {
inner = 14;