News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to change the default colours of the changebar

Started by vicent, December 03, 2021, 08:15:14 PM

Previous topic - Next topic

vicent

Dear all,

I've managed to change the colours of the editor, the caret, the vertical line for the 80th column, the margin chrome, the line number section... But I still don't know how to change the green and yellow (or orange, according to some of you) colours that are used in the so-called changebar to mark those lines containing recently saved and unsaved changes, respectively.

I do want to use the changebar (I know that it can be disabled), but I would prefer having softer colours in it so that I do not get distracted when typing.

So, is it something that can be customised? Should I directly go to modify the `default.conf` file, or is it there any menu option to change this??

I look forward to your answers.
vicent

BlueHazzard

The colors for the changebar are currently hard coded in

sdk\cbeditor.cpp:1619
        control->MarkerDefine(wxSCI_MARKNUM_CHANGEUNSAVED, wxSCI_MARK_FULLRECT);
        control->MarkerSetBackground(wxSCI_MARKNUM_CHANGEUNSAVED, wxColour(0xFF, 0xE6, 0x04));
        control->MarkerDefine(wxSCI_MARKNUM_CHANGESAVED, wxSCI_MARK_FULLRECT);
        control->MarkerSetBackground(wxSCI_MARKNUM_CHANGESAVED,   wxColour(0x04, 0xFF, 0x50));


Can you open a feature request on SF to make this colors configurable?

vicent

Quote from: BlueHazzard on December 06, 2021, 01:30:06 AM
The colors for the changebar are currently hard coded in

sdk\cbeditor.cpp:1619

[...]

Can you open a feature request on SF to make this colors configurable?

Done! (see https://sourceforge.net/p/codeblocks/tickets/1160/)

Thank you for the information.
vicent

Miguel Gimenez