hyprland: inline single-use variable

Link: https://github.com/danth/stylix/pull/501
This commit is contained in:
NAHO 2024-08-10 15:54:22 +02:00
parent 47f1504b45
commit 638f30a67e
No known key found for this signature in database
GPG key ID: 229CB671D09B95F5

View file

@ -5,27 +5,6 @@ with config.lib.stylix.colors;
let
rgb = color: "rgb(${color})";
rgba = color: alpha: "rgba(${color}${alpha})";
settings = {
decoration.shadow.color = rgba base00 "99";
general = {
"col.active_border" = rgb base0D;
"col.inactive_border" = rgb base03;
};
group = {
"col.border_inactive" = rgb base03;
"col.border_active" = rgb base0D;
"col.border_locked_active" = rgb base0C;
groupbar = {
text_color = rgb base05;
"col.active" = rgb base0D;
"col.inactive" = rgb base03;
};
};
misc.background_color = rgb base00;
};
in {
options.stylix.targets.hyprland = {
enable = config.lib.stylix.mkEnableTarget "Hyprland" true;
@ -44,7 +23,25 @@ in {
(
lib.mkMerge [
{
wayland.windowManager.hyprland.settings = settings;
wayland.windowManager.hyprland.settings = {
decoration.shadow.color = rgba base00 "99";
general = {
"col.active_border" = rgb base0D;
"col.inactive_border" = rgb base03;
};
group = {
"col.border_inactive" = rgb base03;
"col.border_active" = rgb base0D;
"col.border_locked_active" = rgb base0C;
groupbar = {
text_color = rgb base05;
"col.active" = rgb base0D;
"col.inactive" = rgb base03;
};
};
misc.background_color = rgb base00;
};
}
(