Code::Blocks Forums

User forums => Help => Topic started by: Xorlium on May 09, 2010, 04:42:43 pm

Title: Headers file name color linux
Post by: Xorlium on May 09, 2010, 04:42:43 pm
Hi,

I'm not sure if this is a bug or if I just can't find where. I'm using linux, KDE 4.4.

If I have a project, on the left there is a project browser, with the names of all the files. The problem is that I can't see the names of the headers, because they are black, and my background is black. Is there somewhere I can change that color? The same thing happens in for example, the valgrind message window and the error build log (except for errors or warnings, which are red and blue).

Perhaps it's better if I show you:

(http://grola.no-ip.org/story/snap.png)
Title: Re: Headers file name color linux
Post by: Phenom on May 09, 2010, 06:03:43 pm
See this topic:
 http://forums.codeblocks.org/index.php/topic,12423.0.html
Title: Re: Headers file name color linux
Post by: Xorlium on May 09, 2010, 11:07:11 pm
Thanks. It seems silly, but I found where that was defined, and changed it :). I'm currently compiling codeblocks just for this.
Title: Re: Headers file name color linux
Post by: Xorlium on May 10, 2010, 01:34:42 am
Hi. I managed to fix the headers by doing a replace in files of wxSYS_COLOUR_GRAYTEXT by wxSYS_COLOUR_WINDOWTEXT and so now they display properly, but the build messages are still black-on-black (see the screenshot above). I can't find where to change this colour.

Also, this is more of an annoyance, but you know when you put the mouse on top of a function, it pops up a little window telling you about the function? I searched the code::blocks code, but I can't find where those colours are defined. (I'd like to change it to be white-on-black instead of gray-on-white like it is right now). So if anyone could direct me to the file where those things are defined, I'd be grateful.

Thanks!
Title: Re: Headers file name color linux
Post by: oBFusCATed on May 10, 2010, 09:23:08 am
Read this thread: http://forums.codeblocks.org/index.php/topic,12098.msg83791.html#msg83791
There was a discussion of the same problem
Title: Re: Headers file name color linux
Post by: Jenna on May 10, 2010, 10:45:19 am
Hi. I managed to fix the headers by doing a replace in files of wxSYS_COLOUR_GRAYTEXT by wxSYS_COLOUR_WINDOWTEXT and so now they display properly, but the build messages are still black-on-black (see the screenshot above). I can't find where to change this colour.
Using of wxSYS_COLOUR_GRAYTEXT on linux is a problem with dark backgrounds (due to wxwidgets).
Nevertheless, it's used for purpose. Not compilable-files like headers and some resources should have a different colour, so wxSYS_COLOUR_WINDOWTEXT is not a real solution.
It seems not so easy to fix, but I have it in mind.
Title: Re: Headers file name color linux
Post by: Xorlium on May 10, 2010, 05:35:11 pm
Oh yeah, I understand it's not a Codeblocks problem but a wxGTK problem. But for now, it works for me. I also applied (by hand, since the patch gave me trouble) the patch suggested in the other thread. Thanks!!