Martijn Laan 1 год назад
Родитель
Сommit
c459101338
2 измененных файлов с 9 добавлено и 13 удалено
  1. 7 7
      Components/ModernColors.pas
  2. 2 6
      Components/ScintStylerInnoSetup.pas

+ 7 - 7
Components/ModernColors.pas

@@ -18,7 +18,7 @@ type
   TThemeType = (ttModernLight, ttModernDark, ttClassic);
   TThemeType = (ttModernLight, ttModernDark, ttClassic);
   TThemeColor = (tcFore, tcBack, tcToolBack, tcSelBack,
   TThemeColor = (tcFore, tcBack, tcToolBack, tcSelBack,
                  tcWordAtCursorOccurrenceBack, tcSelTextOccurrenceBack,
                  tcWordAtCursorOccurrenceBack, tcSelTextOccurrenceBack,
-                 tcMarginFore, tcMarginBack, tcSplitterBack, tcBraceBack, tcIdentGuideFore,
+                 tcMarginFore, tcMarginBack, tcSplitterBack, tcBraceBack, tcIndentGuideFore,
                  tcRed, tcGreen, tcBlue, tcOrange, tcReallyOrange, tcPurple,
                  tcRed, tcGreen, tcBlue, tcOrange, tcReallyOrange, tcPurple,
                  tcYellow, tcTeal, tcGray);
                  tcYellow, tcTeal, tcGray);
 
 
@@ -52,7 +52,7 @@ const
   DMarginBack = $413E40;     { Monokai Pro }
   DMarginBack = $413E40;     { Monokai Pro }
   DSplitterBack = $413E40;   { Monokai Pro }
   DSplitterBack = $413E40;   { Monokai Pro }
   DBraceBack = DWACOBack;
   DBraceBack = DWACOBack;
-  DIdentGuideFore = $716F71; { Monokai Pro }
+  DIndentGuideFore = $716F71;{ Monokai Pro }
   //Monokai Pro's dark control color: $221F22
   //Monokai Pro's dark control color: $221F22
 
 
   LFore = $3B3B3B;           { VSCode Modern Light }
   LFore = $3B3B3B;           { VSCode Modern Light }
@@ -66,7 +66,7 @@ const
   LMarginBack = $F9FBFB;     { Monokai Pro }
   LMarginBack = $F9FBFB;     { Monokai Pro }
   LSplitterBack = clBtnFace;
   LSplitterBack = clBtnFace;
   LBraceBack = LWACOBack;
   LBraceBack = LWACOBack;
-  LIdentGuideFore = clSilver;
+  LIndentGuideFore = clSilver;
 
 
   CFore = clBlack;
   CFore = clBlack;
   CBack = clWhite;
   CBack = clWhite;
@@ -78,7 +78,7 @@ const
   CMarginBack = clBtnFace;
   CMarginBack = clBtnFace;
   CSplitterBack = clBtnFace;
   CSplitterBack = clBtnFace;
   CBraceBack = CWACOBack;
   CBraceBack = CWACOBack;
-  CIdentGuideFore = clSilver;
+  CIndentGuideFore = clSilver;
 
 
   { The Microsoft Azure DevOps work well as foreground colors on both dark and light backgrounds.
   { The Microsoft Azure DevOps work well as foreground colors on both dark and light backgrounds.
     Its red and blue also fit well with the colors used by Microsoft's VS Image Library. }
     Its red and blue also fit well with the colors used by Microsoft's VS Image Library. }
@@ -103,9 +103,9 @@ const
   CGray = $707070;           { Inno Setup 5 }
   CGray = $707070;           { Inno Setup 5 }
 
 
   Colors: array [TThemeType, TThemeColor] of TColor = (
   Colors: array [TThemeType, TThemeColor] of TColor = (
-    (LFore, LBack, LToolBack, LSelBack, LWACOBack, LSTOBack, LMarginFore, LMarginBack, LSplitterBack, LBraceBack, LIdentGuideFore, MRed, MGreen, MBlue, MOrange, MOrange, MPurple, MYellow, MTeal, MGray),
-    (DFore, DBack, DToolBack, DSelBack, DWACOBack, DSTOBack, DMarginFore, DMarginBack, DSplitterBack, DBraceBack, DIdentGuideFore, MRed, MGreen, MBlue, MOrange, MOrange, MPurple, MYellow, MTeal, MGray),
-    (CFore, CBack, CToolBack, CSelBack, CWACOBack, CSTOBack, CMarginFore, CMarginBack, CSplitterBack, CBraceBack, CIdentGuideFore, CRed, CGreen, CBlue, COrange, CReallyOrange, CPurple, CYellow, CTeal, CGray)
+    (LFore, LBack, LToolBack, LSelBack, LWACOBack, LSTOBack, LMarginFore, LMarginBack, LSplitterBack, LBraceBack, LIndentGuideFore, MRed, MGreen, MBlue, MOrange, MOrange, MPurple, MYellow, MTeal, MGray),
+    (DFore, DBack, DToolBack, DSelBack, DWACOBack, DSTOBack, DMarginFore, DMarginBack, DSplitterBack, DBraceBack, DIndentGuideFore, MRed, MGreen, MBlue, MOrange, MOrange, MPurple, MYellow, MTeal, MGray),
+    (CFore, CBack, CToolBack, CSelBack, CWACOBack, CSTOBack, CMarginFore, CMarginBack, CSplitterBack, CBraceBack, CIndentGuideFore, CRed, CGreen, CBlue, COrange, CReallyOrange, CPurple, CYellow, CTeal, CGray)
   );
   );
   
   
 begin
 begin

+ 2 - 6
Components/ScintStylerInnoSetup.pas

@@ -129,7 +129,7 @@ type
 implementation
 implementation
 
 
 uses
 uses
-  TypInfo, MsgIDs, SetupSectionDirectives, LangOptionsSectionDirectives;
+  TypInfo, MsgIDs, ScintInt, SetupSectionDirectives, LangOptionsSectionDirectives;
 
 
 type
 type
   { Size must be <= SizeOf(TScintLineState) }
   { Size must be <= SizeOf(TScintLineState) }
@@ -978,10 +978,6 @@ end;
 
 
 procedure TInnoSetupStyler.GetStyleAttributes(const Style: Integer;
 procedure TInnoSetupStyler.GetStyleAttributes(const Style: Integer;
   var Attributes: TScintStyleAttributes);
   var Attributes: TScintStyleAttributes);
-const
-  STYLE_LINENUMBER = 33;
-  STYLE_BRACELIGHT = 34;
-  STYLE_IDENTGUIDE = 37;
 begin
 begin
   if FTheme <> nil then begin
   if FTheme <> nil then begin
     if (Style >= 0) and (Style <= Ord(High(TInnoSetupStylerStyle))) then begin
     if (Style >= 0) and (Style <= Ord(High(TInnoSetupStylerStyle))) then begin
@@ -1013,7 +1009,7 @@ begin
             Attributes.BackColor := FTheme.Colors[tcMarginBack];
             Attributes.BackColor := FTheme.Colors[tcMarginBack];
           end;
           end;
         STYLE_BRACELIGHT: Attributes.BackColor := FTheme.Colors[tcBraceBack];
         STYLE_BRACELIGHT: Attributes.BackColor := FTheme.Colors[tcBraceBack];
-        STYLE_IDENTGUIDE: Attributes.ForeColor := FTheme.Colors[tcIdentGuideFore];
+        STYLE_INDENTGUIDE: Attributes.ForeColor := FTheme.Colors[tcIndentGuideFore];
       end;
       end;
     end;
     end;
   end;
   end;