Issue #8: apply 3 hardcoded default values for colors which are not part of the highlighter's attributes (active line bg, matching brace fg + bg)

This commit is contained in:
Ansgar Becker
2018-11-08 19:54:45 +01:00
parent 2a10422373
commit 3752fd79a4

View File

@ -755,6 +755,11 @@ begin
for j:=0 to SynSQLSynSQLSample.AttrCount - 1 do begin
SynSQLSynSQLSample.Attribute[j].AssignColorAndStyle(Highlighter.Attribute[j]);
end;
// Use 3 hardcoded default values for additional colors, which are not part
// of the highlighter's attributes
SynMemoSQLSample.ActiveLineColor := StringToColor(AppSettings.GetDefaultString(asSQLColActiveLine));
MainForm.MatchingBraceForegroundColor := StringToColor(AppSettings.GetDefaultString(asSQLColMatchingBraceForeground));
MainForm.MatchingBraceBackgroundColor := StringToColor(AppSettings.GetDefaultString(asSQLColMatchingBraceBackground));
Break;
end;
end;