Author Topic: Support colour accessibility  (Read 4447 times)

Offline Carl Colijn

  • Multiple posting newcomer
  • *
  • Posts: 11
    • TwoLogs - a natural choice!
Support colour accessibility
« on: January 11, 2008, 10:51:08 pm »
Hi all,

I read an earlier post called "Re: Default color themes" by "i got no legs" in "Help wanted", and I've also got the same request: making Code::Blocks a bit more user-friendly for people with a visual disability who prefer high-contrast settings like me.  I always run in a yellow-on-black display setting (far easier on my eyes).  I have already investigated the source code and I am in the process of finishing some fixes.

Some log windows ("Code::Blocks", "Build log" and "Debugger") have their text colours hard coded (black, blue, and red on white).  I added extra environment settings to set these colours (both text and background colour).  I placed the colours on the "Notebooks appearance" page in a new group box to the right of the "Gradient style colours" group.  Maybe if more colours will be user-definable, an extra page for the colours may be a better option.

With regard to the setting "Settings\Editor\General Settings\Font": the label showing the font has system colour text on a white background; I removed the fixed white colour in the wxWidgets resource for this label and this solves the problem.

Last, I found the InfoWindow shows system text colour on a white background (both window body and title); I fixed this by just using the appropriate system colours for the background and caption (in stead of some hard-coded colours).

I find these fixes very usefull for my own personal use, and would like to send the patch to the Code::Blocks developers.  If I am however "fixing" something that may not be fixed (like e.g. the hard-coded colour values are crucial on some systems), then please tell me!

I'm also unsure on how to submit my patch when it's ready; if anyone can give me some pointers I'd be very happy.  Do I just create a new account on the "submit patch" page, submit the patch and everything will then get cross-examined and submitted when found correct?
« Last Edit: January 11, 2008, 10:52:41 pm by Carl Colijn »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Support colour accessibility
« Reply #1 on: January 11, 2008, 11:32:59 pm »
Quote
Do I just create a new account on the "submit patch" page, submit the patch and everything will then get cross-examined and submitted when found correct?

Yes, that's about it :).
Be patient!
This bug will be fixed soon...