Skip to content

Commit

Permalink
feat(bar): add round corners type configuration to blur effect
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Jan 10, 2025
1 parent f35e5db commit 7808ec0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/validation/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'screens': ['*'],
'class_name': 'yasb-bar',
'alignment': {'position': 'top', 'center': False},
'blur_effect': {'enabled': False, 'dark_mode': False, 'acrylic': False,'round_corners': False,'border_color': "System"},
'blur_effect': {'enabled': False, 'dark_mode': False, 'acrylic': False,'round_corners': False,'round_corners_type':'normal','border_color': "System"},
'animation': {'enabled': True, 'duration': 500},
'window_flags': {'always_on_top': False, 'windows_app_bar': False},
'dimensions': {'width': '100%', 'height': 30},
Expand Down Expand Up @@ -65,6 +65,11 @@
'type': 'boolean',
'default': BAR_DEFAULTS['blur_effect']['round_corners']
},
'round_corners_type': {
'type': 'string',
'allowed': ['normal', 'small'],
'default': BAR_DEFAULTS['blur_effect']['round_corners_type']
},
'border_color': {
'type': 'string',
'default': BAR_DEFAULTS['blur_effect']['border_color']
Expand Down

0 comments on commit 7808ec0

Please sign in to comment.