Review Request: Color scheme aware plasma theming

Andrew Lake jamboarder at yahoo.com
Mon Feb 18 01:13:18 CET 2008


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://mattr.info/r/154/
-----------------------------------------------------------

(Updated 2008-02-17 18:13:18.264103)


Review request for Plasma.


Summary
-------

This patch allows plasma themes to react to changes in the current color scheme. Note that theme authors must specifically add the "hint-apply-color-scheme" element to the svgs for the color to be applied.  This patch does not affect svgs that do not have this hint.  (Notice in the screenshots that the clock and the default theme are unaffected.) Theme authors may provide a "colors" file with their theme or omit it to use the current system colors (plasma already provided for this).

The screenshots show a proof of concept theme.  Couldn't find a way to attach it here.  Let me know what's the best way to make it available in case anyone wants to test it.

A few notes:
- I picked the colorize effect from KIconEffect since it allows the theme author to define where, and how much, colors are applied (preserves shadows, etc.).  If this effect is available somewhere else I couldn't find it.
- Some things I added to just get this to work (the QPixmapCache::clear() and the extra "emit changed()").

Hope this helps and once again that's so much for this cool stuff.


Diffs
-----

  /trunk/KDE/kdebase/workspace/libs/plasma/svg.cpp
  /trunk/KDE/kdebase/workspace/libs/plasma/theme.cpp

Diff: http://mattr.info/r/154/diff


Testing
-------


Screenshots
-----------

plasmawonton
  http://mattr.info/r/154/s/10/
plasmaobsidian
  http://mattr.info/r/154/s/11/
plasmanorway
  http://mattr.info/r/154/s/12/
plasmadefault
  http://mattr.info/r/154/s/13/


Thanks,

Andrew



More information about the Panel-devel mailing list