CodeSnip Old Code (SVN)
A repository for source code snippets, designed with Pascal in mind.
Brought to you by:
delphidabbler
changed | /branches/experimental/Src/SyntaxHighlighting/Highlighters/CS.Hiliter.Themes.Persist.pas |
--- 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);