diff options
Diffstat (limited to 'common/modules/matugen/templates/matugen-waybar.nix')
| -rw-r--r-- | common/modules/matugen/templates/matugen-waybar.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/common/modules/matugen/templates/matugen-waybar.nix b/common/modules/matugen/templates/matugen-waybar.nix index 602a846..acdb788 100644 --- a/common/modules/matugen/templates/matugen-waybar.nix +++ b/common/modules/matugen/templates/matugen-waybar.nix @@ -8,11 +8,19 @@ xdg.configFile."matugen/templates/waybar.css" = { text = '' ${lib.optionalString (config.beeMods.mango.window.blur.enable) '' + <* if {{ is_dark_mode }} *> @define-color bg_panel rgba({{colors.surface.default.red}}, {{colors.surface.default.green}}, {{colors.surface.default.blue}}, 0.9); + <* else *> + @define-color bg_panel rgba({{colors.surface_container.default.red}}, {{colors.surface_container.default.green}}, {{colors.surface_container.default.blue}}, 0.9); + <* endif *> + ''} + ${lib.optionalString (!config.beeMods.mango.window.blur.enable) '' + <* if {{ is_dark_mode }} *> + @define-color bg_panel {{colors.surface.default.hex}}; + <* else *> + @define-color bg_panel {{colors.surface_container.default.hex}}; + <* endif *> ''} - ${lib.optionalString ( - !config.beeMods.mango.window.blur.enable - ) "@define-color bg_panel {{colors.surface.default.hex}}; "} @define-color bg_base transparent; @define-color border_color {{colors.primary.default.hex}}; |
