List Info

Thread: Visual glitches in ProcessWidget




Visual glitches in ProcessWidget
user name
2006-11-30 23:59:35
Matthew Woehlke wrote:
> ProcessWidget is tinkering with its palette, causing
two undesirable 
> effects:
> 
> 1. The colors it chooses are commonly indistinguishable
from the window 
> background (i.e. in any scheme where background() ==
mid(), e.g. 
> '[Digital] CDE', 'Dark Blue', 'Solaris', 'High Contrast
Black')
> 
> 2. Styles that draw using the highlight color draw
incorrectly.
> 
> ...not to mention that hard-coding of colors as done by
several parts 
> (grepview, to name one) is A Bad Thing; these need to
be configurable 
> somehow (for a REALLY nasty example, consider the
effect of using 'High 
> Contrast Blue'). Is this being done in KDevelop4? (I
wonder if this sort 
> of thing should be system-wide - and more importantly,
scheme specific - 
> ala <ht
tps://bugs.kde.org/show_bug.cgi?id=136719>...) KATE
gets away 
> with its application scheme system because you are
never combining a 
> system scheme color with a KATE scheme color. The
alternative of course 
> would be for ProcessWidget to do likewise; draw the
list itself (NOT THE 
> SCROLLBARS!) and use an application scheme background
color rather than 
> the system scheme color.
> 
> Is the palette changing really needed, or can it be
removed?

No, it isn't... that's what
QListBoxItem::setCustomHighlighting is for. 
I'm having problems with getting the width right
(QListBoxItem::width 
gives text width, not control width - I just don't have time
to dig 
until tomorrow), but once I can fix that, I'll have a patch
that draws 
ProcessListBoxItem and GrepListBoxItem using strictly
palette colors (I 
use QColorGroup::link and QColorGroup::linkVisited, and
blending of 
colors to get more *safe* colors than just
QColorGroup::text).

-- 
Matthew
"Lost a planet, Obi Wan has? How embarrassing..."
  -- Yoda (Star Wars II: Attack of the Clones)


_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )