api to get tray icon panel foreground color?

Aaron J. Seigo aseigo at kde.org
Sat Feb 19 02:53:50 GMT 2011


On Friday, February 18, 2011, Andriy Rysin wrote:
> So the question is what's the API to get suggested tray foreground color?

in Plasma, what we are doing right now is this:

        m_svg = new Plasma::Svg(this);
        m_svg->setImagePath("widgets/labeltexture");
        m_svg->setContainsMultipleImages(true);
	m_pixmap = Plasma::PaintUtils::texturedText(string, font, m_svg);

listening to the Svg's repaintNeeded() will trigger a repaint when the theme 
changes.

this code is in kde-workspace, right? if so, then it could make sense to just 
do exactly what is above there since it is a component meant to be used with 
the plasma workspaces...

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110218/c7afd519/attachment.sig>


More information about the kde-core-devel mailing list