dunst-project / dunst

Lightweight and customizable notification daemon
https://dunst-project.org
Other
4.52k stars 338 forks source link

progress_bar_corner_radius not working correctly #1178

Closed ikz87 closed 7 months ago

ikz87 commented 1 year ago

Issue description

These are like 3 issues in one:

1- When setting progress_bar_corner_radius to a negative value, dunst runs without problems but seems to add that value to the overall size of the bar which wouldn't seem like the expected behavior to me.

2- If the window has a low progress value (like 0) the corners get "inverted". To replicate, simply run: dunstify "bar radius test" -h int:value:0 image

3- The progress_bar_frame_width property doesn't play well with the corner radius. Using both at the same time results in the inner part of the bar being offset vertically a bit: image

Installation info

Minimal dunstrc ```ini progress_bar = true progress_bar_height = 20 progress_bar_frame_width = 5 progress_bar_min_width = 0 progress_bar_max_width = 380 progress_bar_corner_radius = 7 ```
fwsmit commented 7 months ago

This should be fixed by #1227