[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:       Rik Hemsley <rik () kde ! org>
Date:       2001-10-02 21:27:51
[Download RAW message or body]

#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 <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic