File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -750,6 +750,7 @@ procedure TfrmPreferences.SQLFontChange(Sender: TObject);
750750 AttriIdx: Integer;
751751 Attri: TSynHighlighterAttributes;
752752 Foreground, Background: TColor;
753+ FontStyle: Integer;
753754begin
754755 if comboSQLFontName.ItemIndex > -1 then
755756 SynMemoSQLSample.Font.Name := comboSQLFontName.Items[comboSQLFontName.ItemIndex];
@@ -772,9 +773,12 @@ procedure TfrmPreferences.SQLFontChange(Sender: TObject);
772773 else Attri.Style := Attri.Style - [fsBold];
773774 if chkSQLItalic.Checked then Attri.Style := Attri.Style + [fsItalic]
774775 else Attri.Style := Attri.Style - [fsItalic];
776+ FontStyle := Attri.IntegerStyle;
777+ // Write attribute settings to in-memory color scheme
775778 Attri := FAppColorScheme.SynSqlSyn.Attribute [AttriIdx];
776779 Attri.Foreground := Foreground;
777780 Attri.Background := Background;
781+ Attri.IntegerStyle := FontStyle;
778782 end ;
779783 Modified(Sender);
780784end ;
You can’t perform that action at this time.
0 commit comments