sugarlabs / sugar-toolkit-gtk3

Sugar Learning Environment, Activity Toolkit, GTK 3.
GNU Lesser General Public License v2.1
21 stars 80 forks source link

sugar3.graphics.progressicon renders improperly with icons having a smaller visible fill area #370

Open quozl opened 7 years ago

quozl commented 7 years ago

Reproducer: set the icon used by Browse download to 90%, then 99%.

Observed result: no difference in icon fill.

Expected result: difference in icon fill.

Does not occur with an icon where the fill area extends to the full height of the icon.

Cause is that the entire icon height is used for calculation, instead of the height of the fill area.

See also sugar3.graphics.progressicon.