/// <summary> /// force everything to redraw to apply a new theme /// </summary> public static void RefreshApplicationWithTheme(Theme theme) { Current = theme; Config.Instance.AccentColor = theme.AccentColor; // force the autocomplete to redraw AutoComplete.ForceClose(); CodeExplorer.ApplyColorSettings(); FileExplorer.ApplyColorSettings(); Application.DoEvents(); Appli.Refresh(); }