Review Request 123809: Use list of hard coded colors instead of generating it
Sergey Kalinichev
kalinichev.so.0 at gmail.com
Sat May 16 08:07:22 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123809/
-----------------------------------------------------------
Review request for KDevelop.
Repository: kdevplatform
Description
-------
This fixes 2 issues:
*Currently rainbow highlighting only works for the first 10 declarations in Function and Other contexts. All other declarations get highlighted with the default color.
*The current interpolation algorithm is very poor, it can generate only about 10 different colors, all other look alike.
So this patch adds ~35 distinguishable colors, which should be more than enough for most cases.
Diffs
-----
language/highlighting/colorcache.cpp e2729f2
Diff: https://git.reviewboard.kde.org/r/123809/diff/
Testing
-------
File Attachments
----------------
Before
https://git.reviewboard.kde.org/media/uploaded/files/2015/05/16/2fb289f0-69d8-4817-bf0d-d1691c98d3c1__test_highl_b.png
After
https://git.reviewboard.kde.org/media/uploaded/files/2015/05/16/7bcdb744-e47f-435b-a02e-d0ad35b4a59e__test_highl_a.png
After (dark)
https://git.reviewboard.kde.org/media/uploaded/files/2015/05/16/b67be6b5-b4bf-4d74-8ed9-206e897daa14__test_highl_adark.png
Thanks,
Sergey Kalinichev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20150516/58fb27cd/attachment.html>
More information about the KDevelop-devel
mailing list