mirror of
https://github.com/danth/stylix
synced 2024-11-23 04:33:15 +00:00
7a7987c782
This resolve the issues introduced in hyprwm/Hyprland#3522, which moved group variables out of general and into their own section.
29 lines
722 B
Nix
29 lines
722 B
Nix
{ config, lib, ... }:
|
|
|
|
with config.lib.stylix.colors;
|
|
|
|
let
|
|
rgb = color: "rgb(${color})";
|
|
rgba = color: alpha: "rgba(${color}${alpha})";
|
|
|
|
settings = {
|
|
decoration."col.shadow" = rgba base00 "99";
|
|
general = {
|
|
"col.active_border" = rgb base0A;
|
|
"col.inactive_border" = rgb base03;
|
|
};
|
|
group = {
|
|
"col.border_inactive" = rgb base0D;
|
|
"col.border_active" = rgb base06;
|
|
"col.border_locked_active" = rgb base06;
|
|
};
|
|
misc.background_color = rgb base00;
|
|
};
|
|
|
|
in {
|
|
options.stylix.targets.hyprland.enable =
|
|
config.lib.stylix.mkEnableTarget "Hyprland" true;
|
|
|
|
config.wayland.windowManager.hyprland.settings =
|
|
lib.mkIf config.stylix.targets.hyprland.enable settings;
|
|
}
|