From 3752fd79a4a34cbacf23d3c741d293677db87c91 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 8 Nov 2018 19:54:45 +0100 Subject: [PATCH] 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) --- source/options.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/options.pas b/source/options.pas index d76511e6..879e41dd 100644 --- a/source/options.pas +++ b/source/options.pas @@ -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;