Menu

Commit [r3242]  Maximize  Restore  History

Changed default colour to be used when no background or foreground colour is specified from clNone to clDefault - we now use clNone as an actual colour value.

delphidabbler 2013-08-01

changed /branches/experimental/Src/SyntaxHighlighting/Highlighters/CS.Hiliter.Themes.Persist.pas
/branches/experimental/Src/SyntaxHighlighting/Highlighters/CS.Hiliter.Themes.Persist.pas Diff Switch to side-by-side view
--- a/branches/experimental/Src/SyntaxHighlighting/Highlighters/CS.Hiliter.Themes.Persist.pas
+++ b/branches/experimental/Src/SyntaxHighlighting/Highlighters/CS.Hiliter.Themes.Persist.pas
@@ -237,7 +237,7 @@
 
   function FormatAttrColour(const Colour: TColor): string;
   begin
-    if Colour = clNone then
+    if Colour = clDefault then
       Exit('*');
     Result := IntToHex(Integer(Colour), 8);
   end;
@@ -384,7 +384,7 @@
     if Field = EmptyStr then
       raise ESyntaxHiliteThemesIO.CreateFmt(sBadAttrColour, [AttrID]);
     if Field = '*' then
-      Exit(clNone);
+      Exit(clDefault);
     if not TryStrToInt(HexDisplayPrefix + Field, ColourInt) then
       raise ESyntaxHiliteThemesIO.CreateFmt(sBadAttrColour, [AttrID]);
     Result := TColor(ColourInt);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.