Skip to content

BatteryIcon: let it optionally show a power profile badge

Reason for the change

This commit gives BatteryIcon the ability to be given the name of a power profile icon and append it to the end of the icon name it asks the icon for. This facilitates work to badge the battery icon with the power profile when it's in a non-default power profile state.

There is no effect when using an icon theme without the requisite icons; it'll simply fall back to the status quo.

Test plan

  1. Apply frameworks/breeze-icons!376 (merged) and powerdevil!399 (merged).
  2. On a system with batteries change the power profile to a non-default one.

Screenshots or screen recordings

image

CCBUG: 483805

Edited by Nate Graham

Merge request reports