Recent

Author Topic: how to change the background of the whole left gutter  (Read 2120 times)

atroesch

  • New Member
  • *
  • Posts: 10
how to change the background of the whole left gutter
« on: July 23, 2025, 09:26:27 am »
hi,
i use dark theme and like to set gutter background to white or even something light.
how it looks now:
https://ibb.co/gL7mg4Rm

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11802
  • Debugger - SynEdit - and more
    • wiki
Re: how to change the background of the whole left gutter
« Reply #1 on: July 23, 2025, 01:10:18 pm »
This is about configuring the IDE? Not a TSynEdit on a form of your project?

In Tools > Options > Editor > Display > Colors

There is a whole section with Gutter related colors in the tree.
You may have to change several of them.

It looks like you changed "Gutter > Current Line ...".

Each column in the Gutter ("Code folding", "Line number", "Gutter separator", "Modified line") has a setting for its own background.
- If set, it needs to be changed
- If not, it will default to the main "Gutter" (just "Gutter" as name, inside the "Gutter" section of the tree) background color which also needs to be changed.


If you changed them all, post your settings please (export (button, top/right) your colors as a new scheme)

I don't know if the dark theme interferes with the editor color settings... Not using it myself.
So maybe test your color settings without that first... (or maybe someone else here knows...)

atroesch

  • New Member
  • *
  • Posts: 10
Re: how to change the background of the whole left gutter
« Reply #2 on: July 23, 2025, 06:13:50 pm »
thx,
but im talking about tsynedit in my own application.
any idea?

LV

  • Sr. Member
  • ****
  • Posts: 358
Re: how to change the background of the whole left gutter
« Reply #3 on: July 23, 2025, 08:34:14 pm »
 :-[

Edit. @Martin_fr explained in detail. You can also see an example of creating a dark theme in code: https://pastebin.com/Pihs8PGj
« Last Edit: July 23, 2025, 09:56:47 pm by LV »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11802
  • Debugger - SynEdit - and more
    • wiki
Re: how to change the background of the whole left gutter
« Reply #4 on: July 23, 2025, 08:40:28 pm »
As in LV's image.

You can

1) set the default for the gutter "color"

2) Select "Parts" => then a btn with "..." appears on that row, and opens a Window with all the parts
3) Select each part, and edit its colors "MarkupInfo.Background"


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11802
  • Debugger - SynEdit - and more
    • wiki
Re: how to change the background of the whole left gutter
« Reply #5 on: July 23, 2025, 08:45:04 pm »
There is a small issue though.

The TSynGutterMarks and TSynGutterMarks do not publish it.  But it probably defaults to the main gutter color...

If not, it must be changed in code (or the unit edited to publish it, and the IDE rebuild)

Code: Pascal  [Select][+][-]
  1. SynEdit1.Gutter.Parts.ByClass[TSynGutterMarks].MarkupInfo.Background := ;

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11802
  • Debugger - SynEdit - and more
    • wiki
Re: how to change the background of the whole left gutter
« Reply #6 on: July 23, 2025, 08:55:47 pm »

atroesch

  • New Member
  • *
  • Posts: 10
Re: how to change the background of the whole left gutter
« Reply #7 on: July 24, 2025, 07:14:19 am »
Thank you.
will try it out today.

 

TinyPortal © 2005-2018