Author Topic: changing font colors in the management panel  (Read 5841 times)

Offline jambli

  • Single posting newcomer
  • *
  • Posts: 6
changing font colors in the management panel
« on: April 23, 2010, 09:52:15 pm »
Header files in the management panel blend with my window theme, is there
any way to change the font color of the file names? other files show up fine, along with the folders.
Its just the header files.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13407
    • Travis build status
Re: changing font colors in the management panel
« Reply #1 on: April 24, 2010, 01:58:58 pm »
Please show us a screenshot.
What is your theme, os, cb version....

Our magic ball is on a holiday trip at the moment and we can guess this things :-P
(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 jambli

  • Single posting newcomer
  • *
  • Posts: 6
Re: changing font colors in the management panel
« Reply #2 on: April 24, 2010, 08:44:36 pm »
=) I figured there was just some option I'm missing.

OS : Linux (specifically ubuntu distrubution)
GUI : KDE



As you can see the the names of the file blend in with
the background of the management panel.
However if I select the file then it properly shows the name.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13407
    • Travis build status
Re: changing font colors in the management panel
« Reply #3 on: April 25, 2010, 04:00:44 pm »
Second time: What is your gtk theme, gtk engine, cb version, wxGTK version?
(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 jambli

  • Single posting newcomer
  • *
  • Posts: 6
Re: changing font colors in the management panel
« Reply #4 on: April 25, 2010, 08:35:28 pm »
gtk theme - new wave, with all the background colors set to black, and all the text colors set to white.
With default settings it shows up barely on the white background, its a very light grey color. None of the options
in the appearance settings affect the header file names. The file names for .c files however are affected by the input boxes
text color option.
wxGTK - libwxgtk2.9-dbg
gtk - libgtk2.0-0
CB - 8.02

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13407
    • Travis build status
Re: changing font colors in the management panel
« Reply #5 on: April 25, 2010, 09:58:06 pm »
gtk theme - new wave, with all the background colors set to black, and all the text colors set to white.
This one http://gnome-look.org/content/show.php/New+Wave+Lucid+theme?content=121184 ?
How do you change the colours?

wxGTK - libwxgtk2.9-dbg
There are reports that C::B crashes with wxgtk-2.9, only 2.8 is supported

CB - 8.02
You can try a nightly to see if the bug is still pressent
(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: 7255
Re: changing font colors in the management panel
« Reply #6 on: April 25, 2010, 11:05:13 pm »
It is.
The cause is, that we use wxSYS_COLOUR_GRAYTEXT for not compilable/linkable files, like nonpch-headers, xml-files etc.

It should be used for disabled text (as the wxWidgets docu says), but for wxGTK they create it as 2/3 of wxSYS_COLOUR_3DFACE.
And 2/3 of black is black.

Code
        case wxSYS_COLOUR_GRAYTEXT:
        case wxSYS_COLOUR_BTNSHADOW:
        //case wxSYS_COLOUR_3DSHADOW:
            {
                wxColour faceColour(GetColour(wxSYS_COLOUR_3DFACE));
                color =
                   wxColour((unsigned char) (faceColour.Red() * 2 / 3),
                            (unsigned char) (faceColour.Green() * 2 / 3),
                            (unsigned char) (faceColour.Blue() * 2 / 3));
            }
            break;

Offline jambli

  • Single posting newcomer
  • *
  • Posts: 6
Re: changing font colors in the management panel
« Reply #7 on: April 27, 2010, 06:28:15 pm »
Quote
This one http://gnome-look.org/content/show.php/New+Wave+Lucid+theme?content=121184 ?
How do you change the colours?
yes that one. I change the colors through the appearance manager.
under system->preferences (? might be administration).

Quote
The cause is, that we use wxSYS_COLOUR_GRAYTEXT for not compilable/linkable files, like nonpch-headers, xml-files etc.
This is what I was worried about, was hoping there was just some setting I couldn't find.
Oh well. Thanks for both of your help. If I get some free time this summer I might try to change that.

Thanks again.