I think I've found a problem with IDE coloring - gutter, despite the RGB color set to 10,10,10, has a light gray background for bookmarks and breakpoint markers (see attachment). Can someone tell me why in Lazarus 4.0 RC3 the gutter color is fixed, unlike in previous IDE versions? Is the color of this gutter piece hardcoded? It looks like a bug to me.
Edit: yes, it seems to be hardcoded, because in light theme it also has a fixed color, the same as the client window color. To be sure, I uninstalled the MetaDarkStyle package and yes, by default only half of the gutter can have a custom color (fold tree, line numbers and modification markers), and the other half can't (bookmarks and breakpoints). Why was this changed?! This sucks!
I had to change this color in the IDE code. In the
Lazarus/ide/sourceeditor.pp file, just add the following line, specifying your color (mine is RGB 10,10,10):
procedure TSourceEditor.CreateEditor(AOwner: TComponent; AParent: TWinControl);
var
NewName: string;
i: integer;
bmp: TCustomBitmap;
Begin
{$IFDEF IDE_DEBUG}
debugln('TSourceEditor.CreateEditor A ');
{$ENDIF}
if not assigned(FEditor) then Begin
FVisible := False;
i:=0;
repeat
inc(i);
NewName:='SynEdit'+IntToStr(i);
until (AOwner.FindComponent(NewName)=nil);
FEditor := TIDESynEditor.Create(AOwner);
FEditor.BeginUpdate;
with FEditor do begin
Name:=NewName;
Text:='';
Align := alClient;
Visible := False;
BookMarkOptions.EnableKeys := false;
BookMarkOptions.LeftMargin:=1;
BookMarkOptions.BookmarkImages := SourceEditorMarks.ImgList;
Gutter.MarksPart.DebugMarksImageIndex := SourceEditorMarks.SourceLineImg;
Gutter.MarksPart.MarkupInfo.Background := RGBToColor(10, 10, 10); // custom background color for gutter marks
WantTabs := true;
ScrollBars := ssAutoBoth;