mirror of https://gitlab.com/basile.b/dexed.git
refact setter used to set the gutter color
so that it doeds not rely on default gutter parts
This commit is contained in:
parent
7a4f0af84b
commit
b0da20f068
|
@ -1252,26 +1252,18 @@ begin
|
|||
end;
|
||||
|
||||
procedure TDexedMemo.setGutterTransparent(value: boolean);
|
||||
var
|
||||
i: integer;
|
||||
c: TColor;
|
||||
begin
|
||||
fTransparentGutter:=value;
|
||||
if fTransparentGutter then
|
||||
begin
|
||||
Gutter.LineNumberPart.MarkupInfo.Background:= Color;
|
||||
Gutter.SeparatorPart.MarkupInfo.Background:= Color;
|
||||
Gutter.MarksPart.MarkupInfo.Background:= Color;
|
||||
Gutter.ChangesPart.MarkupInfo.Background:= Color;
|
||||
Gutter.CodeFoldPart.MarkupInfo.Background:= Color;
|
||||
Gutter.Color:=Color;
|
||||
end
|
||||
c := color
|
||||
else
|
||||
begin
|
||||
Gutter.LineNumberPart.MarkupInfo.Background:= clBtnFace;
|
||||
Gutter.SeparatorPart.MarkupInfo.Background:= clBtnFace;
|
||||
Gutter.MarksPart.MarkupInfo.Background:= clBtnFace;
|
||||
Gutter.ChangesPart.MarkupInfo.Background:= clBtnFace;
|
||||
Gutter.CodeFoldPart.MarkupInfo.Background:= clBtnFace;
|
||||
Gutter.Color:=clBtnFace;
|
||||
end;
|
||||
c := clBtnFace;
|
||||
for i := 0 to Gutter.Parts.Count - 1 do
|
||||
gutter.Parts.Part[i].MarkupInfo.Background := c;
|
||||
gutter.Color:=c;
|
||||
end;
|
||||
|
||||
procedure TDexedMemo.setDefaultFontSize(value: Integer);
|
||||
|
|
Loading…
Reference in New Issue