Skip to content

Commit

Permalink
Issue #8: apply 3 hardcoded default values for colors which are not p…
Browse files Browse the repository at this point in the history
…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 3752fd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/options.pas
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -755,6 +755,11 @@ procedure Toptionsform.comboEditorColorsPresetChange(Sender: TObject);
for j:=0 to SynSQLSynSQLSample.AttrCount - 1 do begin for j:=0 to SynSQLSynSQLSample.AttrCount - 1 do begin
SynSQLSynSQLSample.Attribute[j].AssignColorAndStyle(Highlighter.Attribute[j]); SynSQLSynSQLSample.Attribute[j].AssignColorAndStyle(Highlighter.Attribute[j]);
end; 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; Break;
end; end;
end; end;
Expand Down

0 comments on commit 3752fd7

Please sign in to comment.