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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to