/// <summary> /// Changing syntax theme /// </summary> private void CbSyntaxSelectedIndexChanged(object sender, EventArgs eventArgs) { Style.Current = Style.GetThemesList[cbSyntax.SelectedIndex]; Config.Instance.SyntaxHighlightThemeId = cbSyntax.SelectedIndex; if (Plug.IsCurrentFileProgress) { Style.SetSyntaxStyles(); Plug.ApplyOptionsForScintilla(); FilesInfo.UpdateFileStatus(); } }
/// <summary> /// For certain config properties, we need to refresh stuff to see a difference /// </summary> private void ApplySettings() { YamuiThemeManager.TabAnimationAllowed = Config.Instance.AppliAllowTabAnimation; CodeExplorer.CodeExplorer.ApplyColorSettings(); FileExplorer.FileExplorer.ApplyColorSettings(); AutoComplete.ForceClose(); InfoToolTip.InfoToolTip.ForceClose(); Plug.ApplyOptionsForScintilla(); Npp.MouseDwellTime = Config.Instance.ToolTipmsBeforeShowing; }
/// <summary> /// For certain config properties, we need to refresh stuff to see a difference /// </summary> private void ApplySettings() { YamuiThemeManager.TabAnimationAllowed = Config.Instance.AppliAllowTabAnimation; CodeExplorer.CodeExplorer.Instance.ApplyColorSettings(); FileExplorer.FileExplorer.Instance.ApplyColorSettings(); AutoCompletion.ForceClose(); InfoToolTip.InfoToolTip.ForceClose(); Plug.ApplyOptionsForScintilla(); Sci.MouseDwellTime = Config.Instance.ToolTipmsBeforeShowing; Keywords.Instance.ResetCompletionItems(); // when changing case DataBase.Instance.ResetCompletionItems(); }
/// <summary> /// Called when the list of themes is imported /// </summary> public static void ImportList() { _listOfThemes.Clear(); _currentTheme = null; Plug.ApplyOptionsForScintilla(); }