no longer have a play icon bouncing but use an icon like the plasma taskbar
ClosedPublic

Authored by mgallien on Mar 24 2018, 11:13 PM.

Details

Summary

no longer have a play icon bouncing but use an icon like the plasma taskbar

We no longer have an animation running when music is playing. We should no longer have excess cpu usage.

We now use a common icon to indicate the playing track (plasma task bar, firefox tabs, ...)

Test Plan

cpu usage should be lower when playing music

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mgallien requested review of this revision.Mar 24 2018, 11:13 PM
mgallien created this revision.

Looks good and I'm in favor of this due to consistency, but I haven't seen a drop in cpu usage. Elisa is always somewhere between 2 to 4 %. Is that too much for a music player?

A small addition would be to alter the appearance of the icon when the track is paused, maybe some opacity or hiding it completely (the latter is what the task bar is doing)

mgallien updated this revision to Diff 30544.Mar 25 2018, 6:39 PM
  • makes the BusyIndicator be in a loader, should fix extra cpu usage
  • when in pause, hides the playing indicator
  • remove the uneeded Behavior element (a transition is already existing)

the BusyIndicator sometime was generating constant refresh of the display generating a lot of cpu usage

romangg added a subscriber: romangg.EditedMar 25 2018, 6:50 PM

There are status icons: media-playback-playing, media-playback-paused and media-playback-stopped in breeze-icons since recently.

There are status icons: media-playback-playing, media-playback-paused and media-playback-stopped in breeze-icons since recently.

Thanks, I will definitely consider them. I had forgotten about them even if they probably are the right one to use here. This also improves consistency with the mpris2 plasma applet.

There are status icons: media-playback-playing, media-playback-paused and media-playback-stopped in breeze-icons since recently.

We may not be able to depend on future 5.45 release of frameworks for the coming 0.1 release of Elisa. This is probably a candidate for master only branch once v5.45 is released.

astippich accepted this revision.Mar 26 2018, 6:41 PM
This revision is now accepted and ready to land.Mar 26 2018, 6:41 PM
This revision was automatically updated to reflect the committed changes.