[Bug 302993] Make Presence plasmoid icons plasma themeable

Martin Klapetek martin.klapetek at gmail.com
Thu Nov 1 00:08:12 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=302993

--- Comment #14 from Martin Klapetek <martin.klapetek at gmail.com> ---
I'm putting this task up for Google Code-In, so here are clear instructions on
what to do.

Our presence plasmoid uses Plasma::IconWidget for displaying the icons. This
IconWidget uses standard icons theme, not those icons provided by a Plasma
theme.

1) Research how icons in Plasma themes works 
   1.1) How to load them (look at batter applet, ask at #plasma or bug your
mentor)
   1.2) How to find out if the theme provides such icon (hint in comment #13)

2) Make KTp::Presence::icon() method take a struct of "Default, Alternative,
Plasma" instead of "bool useImIcons" (make Alternative the same as when
useImIcons=true)

3) Make the presence plasmoid use icons from Plasma theme if available,
fallback to Oxygen if not (you might need some helper method to check if the
theme icons are available). Using the icon is done by passing either "Default"
or "Plasma" as the m_globalPresence->currentPresence().icon(..) parameter.

4) Profit.

Use the icons by Fabidesu in comment #9 for testing (but rename them to follow
oxygen naming with -plasma suffix, ie. user-online-plasma, user-away-plasma
etc).

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list