hyprland: inline single-use variable
Link: https://github.com/danth/stylix/pull/501
This commit is contained in:
parent
47f1504b45
commit
638f30a67e
1 changed files with 19 additions and 22 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue