From 05fe3b8701808bcf979f03b0a811b9444447e670 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Thu, 4 Dec 2014 20:16:10 -0800 Subject: [PATCH] Need to figure out how to initialize themes per-user, after configuration initialization --- .../WindowsFormsEngine.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs index b7385358..c1d753dd 100644 --- a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs +++ b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs @@ -169,6 +169,9 @@ namespace UniversalEditor.UserInterface.WindowsForms Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); + // TODO: figure out why this is being done on BeforeInitialization and whether we could move it to after + // the configuration is initialized, so we can specify the user's favorite theme in a configuration file + AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme theme = new AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme(AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme.ColorMode.Dark); theme.UseAllCapsMenus = false; theme.SetStatusBarState(AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme.StatusBarState.Initial);