• verdre's avatar
    barLevel: Don't show border radius if the value is 0 · 5be61bbb
    verdre authored
    Work around a known regression from [1] that caused the volume bar in
    the OSD window to never be hidden, even if the volume is set to 0. This
    happened because the border radius of the barLevel is always drawn
    without ensuring that the actual bar is visible.
    
    So simply check if the value to draw is 0, and if it is, don't draw the
    border radius of the bar at all. This will still result in incorrect
    representation of values that have a width smaller than 2*border-radius,
    but at least the bar looks right for a width of 0 now.
    
    [1] !2
    
    !384
    5be61bbb
Name
Last commit
Last update
.gitlab-ci Loading commit data...
.settings Loading commit data...
data Loading commit data...
docs/reference Loading commit data...
js Loading commit data...
man Loading commit data...
meson Loading commit data...
po Loading commit data...
src Loading commit data...
subprojects Loading commit data...
test Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
HACKING.md Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
README.mdwn Loading commit data...
cldr2json.py Loading commit data...
config.h.meson Loading commit data...
gnome-shell.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...