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

List:       kde-core-devel
Subject:    Re: KColorScheme changes,
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2007-09-05 19:35:02
Message-ID: fbn0d6$59o$1 () sea ! gmane ! org
[Download RAW message or body]

Matthew Woehlke wrote:
> I've also attached the patch against KColorScheme. KStatefulBrush is 
> documented, adjust* isn't yet, but should be documented before Monday. 

I'm not going to post a new patch, but for the curious, here's the doc 
for adjustBackground (adjustForeground is of course nearly identical).

     /**
      * Adjust a QPalette by replacing the specified QPalette::ColorRole
      * with the requested background color for all states. Using this
      * method is safer than replacing individual states, as it insulates
      * you against changes in QPalette::ColorGroup.
      *
      * @note Although it is possible to replace a foreground color using
      * this method, it's bad usability to do so. Just say "no".
      */

Also, to save someone else the trouble of pointing out my stupid 
mistake, KStatefulBrush is much more useful when it is exported :-).

-- 
Matthew
A pool hall put up a sign in their front window that read: "Profound 
language prohibited within." I could just imagine some people discussing 
the meaning of life and being told to take it outside. -- Scott Adams

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

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