Browse Source

The gutter should still use the theme even if syntax highlighting is turned off.

Martijn Laan 1 year ago
parent
commit
6ddb42acc8
1 changed files with 7 additions and 5 deletions
  1. 7 5
      Components/ScintEdit.pas

+ 7 - 5
Components/ScintEdit.pas

@@ -1812,12 +1812,14 @@ begin
   SetStyleAttr(STYLE_DEFAULT, DefaultAttr, True);
   Call(SCI_STYLECLEARALL, 0, 0);
 
-  if Assigned(FStyler) and FUseStyleAttributes then begin
-    for I := 0 to 31 do
-      SetStyleAttrFromStyler(I);
+  if Assigned(FStyler) then begin
+    if  FUseStyleAttributes then begin
+      for I := 0 to 31 do
+        SetStyleAttrFromStyler(I);
+      SetStyleAttrFromStyler(STYLE_BRACELIGHT);
+      SetStyleAttrFromStyler(STYLE_INDENTGUIDE);
+    end;
     SetStyleAttrFromStyler(STYLE_LINENUMBER);
-    SetStyleAttrFromStyler(STYLE_BRACELIGHT);
-    SetStyleAttrFromStyler(STYLE_INDENTGUIDE);
   end;
 
   if AutoCompleteFontName <> '' then