[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: RE: Finding the color of the active window bar
From: Jon Doud <Jon.Doud () citrix ! com>
Date: 2001-10-02 22:31:49
[Download RAW message or body]
What I did was :
#include <kglobalsettings.h>
...
setPalette(QColorGroup::Background, KGlobalSettings::activeTitleColor());
Thanks for the assistance.
Jon Doud
-----Original Message-----
From: Rik Hemsley [mailto:rik@kde.org]
Sent: Tuesday, October 02, 2001 3:28 PM
To: kde-devel@kde.org
Subject: Re: Finding the color of the active window bar
#if Rik Hemsley
> #if Jon Doud
> > I want to set the background of my app to the same color that the window
bar
> > is.
> >
> > Ex: setPalette(QColorGroup::Background, application->titleBarColor());
> >
> > I know that this is the Active Title Bar property in Colors. How do I
> > retrieve this color?
>
> You can load it from kdeglobals in the WM group.
Sorry, here's an example:
{
KConfig c; // The default ctor will read global settings only.
c.setGroup("WM");
titleColor1 = c.readColorEntry("activeBackground");
titleColor2 = c.readColorEntry("activeBlend");
}
Rik
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
<<
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic