Skip to content

[applets/batterymonitor] Align battery progress bar margins with sliders & optimize it

ivan tkachenko requested to merge work/ratijas/battery/6v-thicc-charge into master

Add vertical margins to the battery progress bar, so that the distance between colored bar and labels on top of it is the same as for slider. This patch bases on assumption that sliders are always thicker than progress bars, but guards against surprises by clamping from 0.

Please, read the rest in the commit messages carefully.

Before:

Before

After (with extra margins):

After

Merge request reports

Loading