An example of the original issue:
You can see here with rounding enabled on the progress bar, at 0% the rounding does not render correctly (it technically renders correctly, but not in the way a user would expect)
This PR simply fixes this by making sure the progress width is not 0 before drawing the rounded sides.
Here is how it looks after:
rounding at all other percentage levels is identical to before as expected:
Let me know if any changes are required, I'll be happy to help :)
Hello dunst-project!!
A very small PR here;
An example of the original issue:
You can see here with rounding enabled on the progress bar, at 0% the rounding does not render correctly (it technically renders correctly, but not in the way a user would expect)
This PR simply fixes this by making sure the progress width is not 0 before drawing the rounded sides.
Here is how it looks after:![image](https://github.com/dunst-project/dunst/assets/18248986/26609fb4-4f7b-4e60-a149-e581cae1fabe)
rounding at all other percentage levels is identical to before as expected:![image](https://github.com/dunst-project/dunst/assets/18248986/8ad0f544-16af-4539-8975-1d2b1ef56941)
Let me know if any changes are required, I'll be happy to help :)