D23368: [Energy KCM] Port away from WorkspaceComponents.BatteryIcon

Kai Uwe Broulik noreply at phabricator.kde.org
Fri Aug 23 08:17:32 BST 2019


broulik added inline comments.

INLINE COMMENTS

> main.qml:156
>                                      switch(model.battery.type) {
> -                                    case 3: return "Battery"
> -                                    case 2: return "Ups"
> -                                    case 9: return "Monitor"
> -                                    case 4: return "Mouse"
> -                                    case 5: return "Keyboard"
> -                                    case 1: return "Pda"
> -                                    case 7: return "Phone"
> -                                    default: return "Unknown"
> +                                    case 3: return "battery-full"
> +                                    case 2: return "battery-ups"

Now you lost the battery level and charging state in the icon.

REPOSITORY
  R102 KInfoCenter

REVISION DETAIL
  https://phabricator.kde.org/D23368

To: ngraham, #plasma, broulik, meven, filipf
Cc: filipf, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190823/b38663ba/attachment.html>


More information about the Plasma-devel mailing list