SetTheme() public method

public SetTheme ( string themeName ) : void
themeName string
return void
Beispiel #1
0
        public override void Run()
        {
            var settings = new ToolSettings();

            settings.SetTheme("dev2010");
            settings.SaveSettings("dev2010");
        }
Beispiel #2
0
        public override void Run()
        {
            var settings = new ToolSettings();

            settings.SetTheme("luna.normalcolor");
            settings.SaveSettings("luna.normalcolor");
        }
Beispiel #3
0
        public override void Run()
        {
            var settings = new ToolSettings();

            settings.SetTheme("classic");
            settings.SaveSettings("classic");
        }
Beispiel #4
0
        public override void Run()
        {
            var settings = new ToolSettings();

            settings.SetTheme("ExpressionLight");
            settings.SaveSettings("ExpressionLight");
        }
Beispiel #5
0
 public override void Run()
 {
     var colorDialog = new System.Windows.Forms.ColorDialog();
     var result = colorDialog.ShowDialog();
     if (result == DialogResult.OK)
     {
         var color = colorDialog.Color;
         string clrStr = "#" + color.ToArgb().ToString("X8");
         var settings = new ToolSettings();
         settings.SetTheme(clrStr);
         settings.SaveSettings(clrStr);
     }
 }
Beispiel #6
0
        public override void Run()
        {
            var colorDialog = new System.Windows.Forms.ColorDialog();
            var result      = colorDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                var    color    = colorDialog.Color;
                string clrStr   = "#" + color.ToArgb().ToString("X8");
                var    settings = new ToolSettings();
                settings.SetTheme(clrStr);
                settings.SaveSettings(clrStr);
            }
        }
Beispiel #7
0
        public override void Run()
        {
            try
            {
                string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(this.GetType()).Location);
                System.Reflection.Assembly.LoadFrom(System.IO.Path.Combine(path, "AvalonDock.Themes.dll"));

                bw         = new BackgroundWorker();
                bw.DoWork += delegate
                {
                    try
                    {
                        while (ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWindow == null)
                        {
                            Thread.Sleep(100);
                        }
                        ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWindow.Dispatcher.Invoke
                            (DispatcherPriority.Normal, new System.Threading.ThreadStart
                            (
                                delegate
                        {
                            //string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(ToolSettings)).Location);
                            //string uri = "/AvalonDock.Themes;component/themes/dev2010.xaml";
                            //ThemeFactory.ChangeTheme(new Uri(uri, UriKind.RelativeOrAbsolute));
                            var settings = new ToolSettings();
                            var theme    = settings.LoadSettings();
                            settings.SetTheme(theme);
                        }
                            )
                            );
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.ToString(), "ToolCommandStartup.Run()");
                    }
                };
                bw.RunWorkerAsync();
            }
            catch
            {
            }
        }
Beispiel #8
0
 public override void Run()
 {
     var settings = new ToolSettings();
     settings.SetTheme("default");
     settings.SaveSettings("default");
 }
Beispiel #9
0
 public override void Run()
 {
     var settings = new ToolSettings();
     settings.SetTheme("classic");
     settings.SaveSettings("classic");
 }
Beispiel #10
0
 public override void Run()
 {
     var settings = new ToolSettings();
     settings.SetTheme("#FF800000");
     settings.SaveSettings("#FF800000");
 }
Beispiel #11
0
 public override void Run()
 {
     var settings = new ToolSettings();
     settings.SetTheme("aero.normalcolor");
     settings.SaveSettings("aero.normalcolor");
 }
Beispiel #12
0
        public override void Run()
        {
            try
            {
                string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(this.GetType()).Location);
                System.Reflection.Assembly.LoadFrom(System.IO.Path.Combine(path, "AvalonDock.Themes.dll"));

                bw = new BackgroundWorker();
                bw.DoWork += delegate
                {
                    try
                    {
                        while (ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWindow == null)
                        {
                            Thread.Sleep(100);
                        }
                        ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWindow.Dispatcher.Invoke
                            (DispatcherPriority.Normal, new System.Threading.ThreadStart
                             (
                             	delegate
                             	{
                             		//string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(ToolSettings)).Location);
                             		//string uri = "/AvalonDock.Themes;component/themes/dev2010.xaml";
                             		//ThemeFactory.ChangeTheme(new Uri(uri, UriKind.RelativeOrAbsolute));
                             		var settings = new ToolSettings();
                             		var theme = settings.LoadSettings();
                             		settings.SetTheme(theme);
                             	}
                             )
                            );
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.ToString(), "ToolCommandStartup.Run()");
                    }
                };
                bw.RunWorkerAsync();
            }
            catch
            {
            }
        }
Beispiel #13
0
 public override void Run()
 {
     var settings = new ToolSettings();
     settings.SetTheme("ExpressionLight");
     settings.SaveSettings("ExpressionLight");
 }
Beispiel #14
0
 public override void Run()
 {
     var settings = new ToolSettings();
     settings.SetTheme("dev2010green");
     settings.SaveSettings("dev2010green");
 }