! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Battery plugin should indicate load state by changing icon
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Klaus Kusche 2011-06-25 15:41:51 CEST
The battery plugin should indicate the current battery state
(percent full and charging / discharging) by changing the icon shown,
like it is done by the gnome power manager and some other similar tools.

One would get a better indication of the current battery state at the first
glance, without reading any text or looking close at the rather tiny bar.

A fixed icon just wastes space and does not carry any information.

In the icon theme I use there are

battery-charged.svg
for full battery (not chargin / discharging, AC on).

battery-missing.svg
for battery not present.

battery-low.svg
battery-caution.svg
battery-040.svg
battery-060.svg
battery-080.svg
battery-100.svg
for 0%, 20%, 40%, ... 80%, 100% discharging battery.

battery-charging-low.svg
battery-charging-caution.svg
battery-charging-040.svg
battery-charging-060.svg
battery-charging-080.svg
battery-charging.svg
for 0%, 20%, 40%, ... 80%, 100% charging battery (AC on).

The gnome power manager has similar naming:
gpm-battery-100-charged.svg = gpm-battery-charged.svg
gpm-battery-missing.svg
gpm-battery-000-charging.svg
gpm-battery-000.svg
gpm-battery-020-charging.svg
gpm-battery-020.svg
gpm-battery-040-charging.svg
gpm-battery-040.svg
gpm-battery-060-charging.svg
gpm-battery-060.svg
gpm-battery-080-charging.svg
gpm-battery-080.svg
gpm-battery-100-charging.svg
gpm-battery-100.svg

The plain gnome icon set contains
battery-missing.png
battery-full-charged.png
battery-full-charging.png
battery-full.png
battery-good-charging.png
battery-good.png
battery-low-charging.png
battery-low.png
battery-caution-charging.png
battery-caution.png
battery-empty.png
Comment 1 Landry Breuil editbugs 2012-04-17 22:28:42 CEST
Problem so far is that the icon-naming-spec only requires battery, battery-low and battery-caution icons, those icons are noy present in all themes : tango only provides battery-caution, afaict, gnome and adwaita provide battery-$(state){,-charging}.. no real consistencym, so it's not easy to use icons from a userthene,

Another option would be to copy/import the icons provided by xfpm.
Comment 2 Landry Breuil editbugs 2012-04-19 10:10:15 CEST
*** Bug 8734 has been marked as a duplicate of this bug. ***

Bug #7768

Reported by:
Klaus Kusche
Reported on: 2011-06-25
Last modified on: 2012-04-23
Duplicates (1):
  • 8734 Please show a battery-not-present icon if no battery is present in a laptop

People

Assignee:
Florian Rivoal
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information