Example #1
0
 /// <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();
     }
 }
Example #2
0
        /// <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;
        }
Example #3
0
 /// <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();
 }
Example #4
0
 /// <summary>
 /// Called when the list of themes is imported
 /// </summary>
 public static void ImportList()
 {
     _listOfThemes.Clear();
     _currentTheme = null;
     Plug.ApplyOptionsForScintilla();
 }