determining backgroundcolor of the editor

Uwe Kaiser dred9e at googlemail.com
Mon Dec 15 20:05:07 UTC 2008


Hi,

I already looked in cpphighlighting.cpp  but found only

///@todo Find the correct text foreground color from kate!

Enclosed is patch that also set the foreground.

Greetings,Uwe


2008/12/13 David Nolden <zwabel at googlemail.com>

> Am Samstag, 13. Dezember 2008 12:01:19 schrieb Uwe Kaiser:
> > Hi,
> >
> > is it possible to get the backgroundcolor from the editor.
> > Normal I use a dark background and bright foreground,
> > but the contextbrowser uses yellow to highlight, so I can't read the
> > hightlighted code.
> > So I would like  to test if it is possible to change the color that the
> > contextbrowser plugin
> > use for hightlighting depending on the backgroundcolor
> >
> > Cheers
> > Uwe Kaiser
> It should be possible in some way, but I haven't had the endurance to find
> out
> how. You can see some tries in cpphighlighting.cpp, that's the place where
> most of the code-highlighting happens, except for the one special
> highlighting you talk about, that happens in the context-browser. We need a
> way of making sure that the contrast between text and its background stays
> readable. The simple way of solving the context-browser highlighting
> problem
> would be just changing the text-color of the highlighted text as well so
> it's
> readable on the yellow.
>
> Greetings, David
>
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20081215/cb7043da/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-set-also-forground-for-the-use-hightlighting-so-tha.patch
Type: application/octet-stream
Size: 1027 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20081215/cb7043da/attachment.obj>


More information about the KDevelop-devel mailing list