public void SetTheme(IRawTheme theme) { _textMateRegistry.SetTheme(theme); GetOrCreateTransformer().SetTheme(_textMateRegistry.GetTheme()); _tmModel?.InvalidateLine(0); _editorModel?.InvalidateViewPortLines(); }
public void SetTheme(ThemeName themeName) { IRawTheme rawTheme = _textMateRegistryOptions.LoadTheme(themeName); _textMateRegistry.SetTheme(rawTheme); GetOrCreateTransformer().SetTheme(_textMateRegistry.GetTheme()); _tmModel?.InvalidateLine(0); _editorModel?.TokenizeViewPort(); }