Permalink
Browse files

Issue #8: apply 3 hardcoded default values for colors which are not p…

…art of the highlighter's attributes (active line bg, matching brace fg + bg)
  • Loading branch information...
ansgarbecker committed Nov 8, 2018
1 parent 2a10422 commit 3752fd79a4a34cbacf23d3c741d293677db87c91
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/options.pas
View
@@ -755,6 +755,11 @@ procedure Toptionsform.comboEditorColorsPresetChange(Sender: TObject);
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;

0 comments on commit 3752fd7

Please sign in to comment.