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