theme: add global border-radius options

This commit is contained in:
Aly Raffauf 2024-08-09 16:14:48 -04:00
parent 92f5aa7a46
commit df773861db
6 changed files with 6 additions and 5 deletions

View file

@ -104,7 +104,7 @@ in {
background-color: ${cfg.theme.colors.background}CC; background-color: ${cfg.theme.colors.background}CC;
border: 4; border: 4;
border-color: @border-color; border-color: @border-color;
border-radius: 10px; border-radius: ${toString cfg.theme.borderRadius}px;
padding: 0; padding: 0;
} }
mainbox { mainbox {

View file

@ -116,7 +116,7 @@ in {
"ignorezero,waybar" "ignorezero,waybar"
]; ];
rounding = 10; rounding = cfg.theme.borderRadius;
shadow_range = 4; shadow_range = 4;
shadow_render_power = 3; shadow_render_power = 3;
}; };

View file

@ -265,7 +265,7 @@ in {
blur enable blur enable
blur_passes 2 blur_passes 2
# corner_radius 10 # corner_radius ${toString cfg.theme.borderRadius}
shadows enable shadows enable
shadows_on_csd enable shadows_on_csd enable
shadow_color ${cfg.theme.colors.shadow} shadow_color ${cfg.theme.colors.shadow}

View file

@ -12,7 +12,7 @@ in {
anchor = "top-center"; anchor = "top-center";
backgroundColor = "${cfg.theme.colors.background}99"; backgroundColor = "${cfg.theme.colors.background}99";
borderColor = "${cfg.theme.colors.primary}CC"; borderColor = "${cfg.theme.colors.primary}CC";
borderRadius = 10; borderRadius = cfg.theme.borderRadius;
borderSize = 4; borderSize = 4;
defaultTimeout = 10000; defaultTimeout = 10000;
enable = true; enable = true;

View file

@ -314,7 +314,7 @@ in {
#submap, #submap,
#tray, #tray,
#workspaces { #workspaces {
border-radius: 10px; border-radius: ${toString cfg.theme.borderRadius}px;
background: ${cfg.theme.colors.background}; background: ${cfg.theme.colors.background};
opacity: 1.0; opacity: 1.0;
margin: 5px 10px 0px 10px; margin: 5px 10px 0px 10px;

View file

@ -127,6 +127,7 @@ in {
theme = { theme = {
enable = true; enable = true;
borderRadius = 0;
colors = { colors = {
text = "#e0def4"; text = "#e0def4";