Added missing "fulL" and "empty" CSS classes
This commit is contained in:
parent
9dc09d2702
commit
d1d73b5003
|
@ -71,4 +71,6 @@ depending on the charging state.
|
||||||
- *#upower*
|
- *#upower*
|
||||||
- *#upower.charging*
|
- *#upower.charging*
|
||||||
- *#upower.discharging*
|
- *#upower.discharging*
|
||||||
|
- *#upower.full*
|
||||||
|
- *#upower.empty*
|
||||||
- *#upower.unknown-status*
|
- *#upower.unknown-status*
|
||||||
|
|
|
@ -227,11 +227,13 @@ const std::string UPower::getDeviceStatus(UpDeviceState& state) {
|
||||||
case UP_DEVICE_STATE_CHARGING:
|
case UP_DEVICE_STATE_CHARGING:
|
||||||
case UP_DEVICE_STATE_PENDING_CHARGE:
|
case UP_DEVICE_STATE_PENDING_CHARGE:
|
||||||
return "charging";
|
return "charging";
|
||||||
case UP_DEVICE_STATE_EMPTY:
|
|
||||||
case UP_DEVICE_STATE_FULLY_CHARGED:
|
|
||||||
case UP_DEVICE_STATE_DISCHARGING:
|
case UP_DEVICE_STATE_DISCHARGING:
|
||||||
case UP_DEVICE_STATE_PENDING_DISCHARGE:
|
case UP_DEVICE_STATE_PENDING_DISCHARGE:
|
||||||
return "discharging";
|
return "discharging";
|
||||||
|
case UP_DEVICE_STATE_FULLY_CHARGED:
|
||||||
|
return "full";
|
||||||
|
case UP_DEVICE_STATE_EMPTY:
|
||||||
|
return "empty";
|
||||||
default:
|
default:
|
||||||
return "unknown-status";
|
return "unknown-status";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue