linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.4k stars 722 forks source link

Set power label to fixed width to stop it affecting adjacent applet icons #12181

Open Praful opened 2 weeks ago

Praful commented 2 weeks ago

Distribution

Mint 21.3

Package version

6.0.4

Graphics hardware in use

Intel HD Graphics 520

Frequency

Always

Bug description

If you have display set to Show percentage and time remaining (and possibly other settings), the size of the label expands and shrinks. Whilst the percentage increases slowly (when you're charging) the time remaining can go from (H:MM) to (HH:MM). When this happens the label size changes, which results in other icons on the panel shifting left or right, which is distracting since you can see movement from the corner of your eye and think something significant is happening.

Steps to reproduce

Set display to Show percentage and time remaining and watch!

Expected behavior

The label should not be changing size. It should also consider whether you're using a fixed or proportional font. To avoid white space, the applet should pick one of these: n% (hh:mm) or nn% (hh:mm) until it reaches 100% (00:00). Similarly for other display settings.

This happened with the temperature applet but was fixed. https://github.com/linuxmint/cinnamon-spices-applets/issues/5405

Additional information

No response