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;
border: 4;
border-color: @border-color;
border-radius: 10px;
border-radius: ${toString cfg.theme.borderRadius}px;
padding: 0;
}
mainbox {

View file

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

View file

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

View file

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

View file

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

View file

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