commit 4d0c72a6f007e83a3898e56f7bbd3eb073870435
parent dad5f228626e47ab3fe561fa8dc6b5de792b06b2
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Sun, 6 Apr 2025 20:55:31 +0200
refactor: rename color 'white' to 'foreground'
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/modules/home/sway/bar/default.nix b/modules/home/sway/bar/default.nix
@@ -43,26 +43,26 @@
colors = {
activeWorkspace = {
background = colors.background;
- border = colors.white;
- text = colors.white;
+ border = colors.foreground;
+ text = colors.foreground;
};
background = colors.background;
focusedWorkspace = {
- background = colors.white;
- border = colors.white;
+ background = colors.foreground;
+ border = colors.foreground;
text = colors.background;
};
inactiveWorkspace = {
background = colors.background;
border = colors.background;
- text = colors.white;
+ text = colors.foreground;
};
separator = colors.background;
- statusline = colors.white;
+ statusline = colors.foreground;
urgentWorkspace = {
background = colors.background;
border = colors.red;
- text = colors.white;
+ text = colors.foreground;
};
};
}
diff --git a/modules/home/sway/colors.nix b/modules/home/sway/colors.nix
@@ -3,10 +3,10 @@
# the background image.
background = "#00112b";
+ foreground = "#d5e5ff";
transparent = "#00000000";
darkRed = "#c85151";
green = "#80ff80";
red = "#da8b8b";
- white = "#d5e5ff";
}
diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix
@@ -50,7 +50,7 @@
parseColor = builtins.substring 1 7;
background = parseColor colors.background;
- foreground = parseColor colors.white;
+ foreground = parseColor colors.foreground;
configFile = pkgs.writeText "foot.ini" ''
[colors]
@@ -90,15 +90,15 @@
colors =
let
default = {
- background = colors.white;
+ background = colors.foreground;
border = colors.transparent;
text = colors.background;
};
in
rec {
focused = {
- background = colors.white;
- border = colors.white;
+ background = colors.foreground;
+ border = colors.foreground;
text = colors.background;
};