elementary / wingpanel-indicator-power

Wingpanel Power Indicator
GNU General Public License v3.0
25 stars 15 forks source link

Icon should show actual battery level #162

Closed hanaral closed 3 months ago

hanaral commented 3 years ago

Problem

The fd.o spec only supports empty, caution, low, good and full. These obviously don't paint a full picture without having to enable the percentage or click on the indicator.

Proposal

Maybe use an empty icon with css to adjust the "fill" inside it (I'm really not sure what the limits of CSS magic are). Maybe it would be better not to have complete spec-for-spec compliance here since I cannot see any harm in doing so, maybe there could be 'slices' of battery levels (in increments of 5% or 10%?), and the indicator could slowly fade through them.

Prior Art

macbook_battery_indicator

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/96137141-icon-should-show-actual-battery-level?utm_campaign=plugin&utm_content=tracker%2F60466177&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F60466177&utm_medium=issues&utm_source=github).
kvdz commented 3 years ago

Hi Hanaral, Thank you for taking the time to write this feature request.

I personally like you view. I am unaware of CSS could achieve this but i guess we can find out. For now i have put it on the wishlist as first assesment.

andirsun commented 3 years ago

Hi Hanaral, Thank you for taking the time to write this feature request.

I personally like you view. I am unaware of CSS could achieve this but i guess we can find out. For now i have put it on the wishlist as first assesment.

Would be a possible solution, create icons for custom percentages like every 5% (0%, 5%, 10%, 15% etc)

hanaral commented 3 years ago

Since the main issue here is the symbolic icon, how about doing what @andirsun suggested and:

danirabbit commented 3 months ago

Gonna close this as duplicate of #257 since I have a bit more info there about the icon spec etc