Skip to content

Commit

Permalink
Themes: Implemented character, brace-light, and brace-bad
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanDrake committed Nov 5, 2023
1 parent 5b3ddf6 commit 8ab2e0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Editor/AGS.Editor/Panes/ScintillaWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ private void UpdateColorTheme()
t.SetColor("script-editor/text-editor/caret/caret-fore", c => scintillaControl1.CaretForeColor = c);
t.SetColor("script-editor/text-editor/caret/caret-line-back", c => scintillaControl1.CaretLineBackColor = c);
t.SetInt("script-editor/text-editor/caret/caret-line-back-alpha", i => scintillaControl1.CaretLineBackColorAlpha = i);

t.SetColor("script-editor/text-editor/character/background", c => scintillaControl1.Styles[Style.Cpp.Character].BackColor = c);
t.SetColor("script-editor/text-editor/character/foreground", c => scintillaControl1.Styles[Style.Cpp.Character].ForeColor = c);
t.SetColor("script-editor/text-editor/brace-light/background", c => scintillaControl1.Styles[Style.BraceLight].BackColor = c);
t.SetColor("script-editor/text-editor/brace-light/foreground", c => scintillaControl1.Styles[Style.BraceLight].ForeColor = c);
t.SetColor("script-editor/text-editor/brace-bad/background", c => scintillaControl1.Styles[Style.BraceBad].BackColor = c);
t.SetColor("script-editor/text-editor/brace-bad/foreground", c => scintillaControl1.Styles[Style.BraceBad].ForeColor = c);
}

private void UpdateColors()
Expand Down

0 comments on commit 8ab2e0a

Please sign in to comment.