Author Topic: Headers file name color linux  (Read 4241 times)

Offline Xorlium

  • Multiple posting newcomer
  • *
  • Posts: 21
    • http://
Headers file name color linux
« 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:


Offline Phenom

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: Headers file name color linux
« Reply #1 on: May 09, 2010, 06:03:43 pm »

Offline Xorlium

  • Multiple posting newcomer
  • *
  • Posts: 21
    • http://
Re: Headers file name color linux
« Reply #2 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.

Offline Xorlium

  • Multiple posting newcomer
  • *
  • Posts: 21
    • http://
Re: Headers file name color linux
« Reply #3 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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12002
    • Travis build status
Re: Headers file name color linux
« Reply #4 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Headers file name color linux
« Reply #5 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.

Offline Xorlium

  • Multiple posting newcomer
  • *
  • Posts: 21
    • http://
Re: Headers file name color linux
« Reply #6 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!!