State of codehighlighting.cpp

Milian Wolff mail at milianw.de
Wed Apr 15 17:02:28 UTC 2009


Hi devels!

Since I'm a user of a dark color scheme I want to get support for custom color 
schemes fixed in KDevelop. I took a look at codehighlighting.cpp and found some 
"issues" which I'd like to fix / change:

1. why uint instead of qcolor all over the place? There are tons of (imo 
unneccessary) "casts" due to that. I'd like to move everything to QColor.

2. there's lots of missing documentation / explanation in that file. I myself 
have never had to do color interpolation or mixing, and am a bit lost on how 
exactly the interpolate function works. Could someone elaborate? Or maybe give 
me a link to a explanation, imo this should be a common problem which got 
solved pretty often.

3. Couldn't the whole process be simplified somehow? For example by setting a 
few defaults for white background / black foreground. Then for custom kate 
color schemes we adapt our defaults according to a algorithm of our choice.

I'm currently writing a little test-app for different color agorithms, if you 
know any good ones, please let me know!

I'll also implement the current algorithm to see how it fares.

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090415/1e1dd1cb/attachment.sig>


More information about the KDevelop-devel mailing list