Author Topic: How to change the default colours of the changebar  (Read 175 times)

Offline vicent

  • Single posting newcomer
  • *
  • Posts: 4
  • Compiling and running
    • VGB's webpage
How to change the default colours of the changebar
« 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.
--
vicent

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3027
Re: How to change the default colours of the changebar
« Reply #1 on: Today at 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?

Offline vicent

  • Single posting newcomer
  • *
  • Posts: 4
  • Compiling and running
    • VGB's webpage
Re: How to change the default colours of the changebar
« Reply #2 on: Today at 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.
--
vicent