Code::Blocks Forums

User forums => Help => Topic started by: vicent on December 03, 2021, 08:15:14 pm

Title: How to change the default colours of the changebar
Post by: vicent on December 03, 2021, 08:15:14 pm
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.
Title: Re: How to change the default colours of the changebar
Post by: BlueHazzard on December 06, 2021, 01:30:06 am
The colors for the changebar are currently hard coded in

sdk\cbeditor.cpp:1619
Code
        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?
Title: Re: How to change the default colours of the changebar
Post by: vicent on December 06, 2021, 09:49:28 pm
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.
Title: Re: How to change the default colours of the changebar
Post by: Miguel Gimenez on December 08, 2021, 09:34:35 am
Fixed in r12558 (https://sourceforge.net/p/codeblocks/code/12558/)