amnweb / yasb

A highly configurable Windows status bar written in Python.
Other
236 stars 18 forks source link

Rounded corner effect lost on status bar when decreasing height #61

Open JonathanTSilva opened 3 hours ago

JonathanTSilva commented 3 hours ago

Describe the bug When adjusting the height of the status bar in YASB to less than 36, the rounded corner styling on the edges reverts to square corners.

To Reproduce Steps to reproduce the behavior:

  1. Edit the config.yaml
  2. Change the bars.status-bar.dimensions.height to some value lower than the default 36.
  3. See the bug on taskbar, as shown in the images below:

Desktop (please complete the following information):

amnweb commented 3 hours ago

This is not a bug, this is how styling works in Python. So calculation is very simple, if elements which you want to have a radius have a height of 30px the maximum radius you can apply on these elements is 15px. If you have 16px, you get the same result as you have there. So elements height / 2 = max radius.

Change border radius to a lower value, and all will be fine.