/// <summary> /// Returns the palette mode manager as string. /// </summary> /// <param name="paletteModeManager">The palette mode manager.</param> /// <param name="manager">The manager.</param> /// <returns>The current <see cref="PaletteModeManager"/> as a string.</returns> public static string ReturnPaletteModeManagerAsString(PaletteModeManager paletteModeManager, KryptonManager manager = null) { string result = null; if (manager != null) { if (manager.GlobalPaletteMode == PaletteModeManager.Custom) { result = "Custom"; } if (manager.GlobalPaletteMode == PaletteModeManager.ProfessionalSystem) { result = "Professional - System"; } if (manager.GlobalPaletteMode == PaletteModeManager.ProfessionalOffice2003) { result = "Professional - Office 2003"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2007Blue) { result = "Office 2007 - Blue"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2007Silver) { result = "Office 2007 - Silver"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2007White) { result = "Office 2007 - White"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2007Black) { result = "Office 2007 - Black"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2010Blue) { result = "Office 2010 - Blue"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2010Silver) { result = "Office 2010 - Silver"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2010White) { result = "Office 2010 - White"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2010Black) { result = "Office 2010 - Black"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2013) { result = "Office 2013"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office2013White) { result = "Office 2013 - White"; } if (manager.GlobalPaletteMode == PaletteModeManager.SparkleBlue) { result = "Sparkle - Blue"; } if (manager.GlobalPaletteMode == PaletteModeManager.SparkleOrange) { result = "Sparkle - Orange"; } if (manager.GlobalPaletteMode == PaletteModeManager.SparklePurple) { result = "Sparkle - Purple"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office365Blue) { result = "Office 365 - Blue"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office365Silver) { result = "Office 365 - Silver"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office365White) { result = "Office 365 - White"; } if (manager.GlobalPaletteMode == PaletteModeManager.Office365Black) { result = "Office 365 - Black"; } } else { if (paletteModeManager == PaletteModeManager.Custom) { result = "Custom"; } if (paletteModeManager == PaletteModeManager.ProfessionalSystem) { result = "Professional - System"; } if (paletteModeManager == PaletteModeManager.ProfessionalOffice2003) { result = "Professional - Office 2003"; } if (paletteModeManager == PaletteModeManager.Office2007Blue) { result = "Office 2007 - Blue"; } if (paletteModeManager == PaletteModeManager.Office2007Silver) { result = "Office 2007 - Silver"; } if (paletteModeManager == PaletteModeManager.Office2007White) { result = "Office 2007 - White"; } if (paletteModeManager == PaletteModeManager.Office2007Black) { result = "Office 2007 - Black"; } if (paletteModeManager == PaletteModeManager.Office2010Blue) { result = "Office 2010 - Blue"; } if (paletteModeManager == PaletteModeManager.Office2010Silver) { result = "Office 2010 - Silver"; } if (paletteModeManager == PaletteModeManager.Office2010White) { result = "Office 2010 - White"; } if (paletteModeManager == PaletteModeManager.Office2010Black) { result = "Office 2010 - Black"; } if (paletteModeManager == PaletteModeManager.Office2013) { result = "Office 2013"; } if (paletteModeManager == PaletteModeManager.Office2013White) { result = "Office 2013 - White"; } if (paletteModeManager == PaletteModeManager.SparkleBlue) { result = "Sparkle - Blue"; } if (paletteModeManager == PaletteModeManager.SparkleOrange) { result = "Sparkle - Orange"; } if (paletteModeManager == PaletteModeManager.SparklePurple) { result = "Sparkle - Purple"; } if (paletteModeManager == PaletteModeManager.Office365Blue) { result = "Office 365 - Blue"; } if (paletteModeManager == PaletteModeManager.Office365Silver) { result = "Office 365 - Silver"; } if (paletteModeManager == PaletteModeManager.Office365White) { result = "Office 365 - White"; } if (paletteModeManager == PaletteModeManager.Office365Black) { result = "Office 365 - Black"; } } return(result); }
/// <summary> /// Applies the theme. /// </summary> /// <param name="themeName">Name of the theme.</param> /// <param name="manager">The manager.</param> /// <exception cref="ArgumentNullException"></exception> private static void ApplyTheme(string themeName, KryptonManager manager) { if (themeName == "Custom") { ApplyTheme(PaletteModeManager.Custom, manager); } if (themeName == "Professional - System") { ApplyTheme(PaletteModeManager.ProfessionalSystem, manager); } if (themeName == "Professional - Office 2003") { ApplyTheme(PaletteModeManager.ProfessionalOffice2003, manager); } if (themeName == "Office 2007 - Blue") { ApplyTheme(PaletteModeManager.Office2007Blue, manager); } if (themeName == "Office 2007 - Silver") { ApplyTheme(PaletteModeManager.Office2007Silver, manager); } if (themeName == "Office 2007 - White") { ApplyTheme(PaletteModeManager.Office2007White, manager); } if (themeName == "Office 2007 - Black") { ApplyTheme(PaletteModeManager.Office2007Black, manager); } if (themeName == "Office 2010 - Blue") { ApplyTheme(PaletteModeManager.Office2010Blue, manager); } if (themeName == "Office 2010 - Silver") { ApplyTheme(PaletteModeManager.Office2010Silver, manager); } if (themeName == "Office 2010 - White") { ApplyTheme(PaletteModeManager.Office2010White, manager); } if (themeName == "Office 2010 - Black") { ApplyTheme(PaletteModeManager.Office2010Black, manager); } if (themeName == "Office 2013") { ApplyTheme(PaletteModeManager.Office2013, manager); } if (themeName == "Office 2013 - White") { ApplyTheme(PaletteModeManager.Office2013White, manager); } if (themeName == "Sparkle - Blue") { ApplyTheme(PaletteModeManager.SparkleBlue, manager); } if (themeName == "Sparkle - Orange") { ApplyTheme(PaletteModeManager.SparkleOrange, manager); } if (themeName == "Sparkle - Purple") { ApplyTheme(PaletteModeManager.SparklePurple, manager); } if (themeName == "Office 365 - Black") { ApplyTheme(PaletteModeManager.Office365Black, manager); } if (themeName == "Office 365 - Blue") { ApplyTheme(PaletteModeManager.Office365Blue, manager); } if (themeName == "Office 365 - Silver") { ApplyTheme(PaletteModeManager.Office365Silver, manager); } if (themeName == "Office 365 - White") { ApplyTheme(PaletteModeManager.Office365White, manager); } if (string.IsNullOrEmpty(themeName)) { throw new ArgumentNullException(); } }
/// <summary> /// Gets the current palette mode. /// </summary> /// <param name="manager">The manager.</param> /// <returns>The current <see cref="PaletteModeManager"/>.</returns> public static PaletteModeManager GetCurrentPaletteMode(KryptonManager manager) { return(manager.GlobalPaletteMode); }
/// <summary> /// Switches the theme style. /// </summary> /// <param name="mode">The mode.</param> /// <param name="manager">The manager.</param> public static void SwitchThemeStyle(PaletteMode mode, KryptonManager manager) { switch (mode) { case PaletteMode.Global: manager.GlobalPaletteMode = (PaletteModeManager)PaletteMode.Global; break; case PaletteMode.ProfessionalSystem: manager.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem; break; case PaletteMode.ProfessionalOffice2003: manager.GlobalPaletteMode = PaletteModeManager.ProfessionalOffice2003; break; case PaletteMode.Office2007Blue: manager.GlobalPaletteMode = PaletteModeManager.Office2007Blue; break; case PaletteMode.Office2007Silver: manager.GlobalPaletteMode = PaletteModeManager.Office2007Silver; break; case PaletteMode.Office2007White: manager.GlobalPaletteMode = PaletteModeManager.Office2007White; break; case PaletteMode.Office2007Black: manager.GlobalPaletteMode = PaletteModeManager.Office2007Black; break; case PaletteMode.Office2010Blue: manager.GlobalPaletteMode = PaletteModeManager.Office2010Blue; break; case PaletteMode.Office2010Silver: manager.GlobalPaletteMode = PaletteModeManager.Office2010Silver; break; case PaletteMode.Office2010White: manager.GlobalPaletteMode = PaletteModeManager.Office2010White; break; case PaletteMode.Office2010Black: manager.GlobalPaletteMode = PaletteModeManager.Office2010Black; break; case PaletteMode.Office2013: manager.GlobalPaletteMode = PaletteModeManager.Office2013; break; case PaletteMode.Office2013White: manager.GlobalPaletteMode = PaletteModeManager.Office2013White; break; case PaletteMode.Office365Black: manager.GlobalPaletteMode = PaletteModeManager.Office365Black; break; case PaletteMode.Office365Blue: manager.GlobalPaletteMode = PaletteModeManager.Office365Blue; break; case PaletteMode.Office365Silver: manager.GlobalPaletteMode = PaletteModeManager.Office365Silver; break; case PaletteMode.Office365White: manager.GlobalPaletteMode = PaletteModeManager.Office365White; break; case PaletteMode.SparkleBlue: manager.GlobalPaletteMode = PaletteModeManager.SparkleBlue; break; case PaletteMode.SparkleOrange: manager.GlobalPaletteMode = PaletteModeManager.SparkleOrange; break; case PaletteMode.SparklePurple: manager.GlobalPaletteMode = PaletteModeManager.SparklePurple; break; case PaletteMode.Custom: manager.GlobalPaletteMode = PaletteModeManager.Custom; break; } }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsWindow)); this.kMan = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); this.kryptonPalette1 = new ComponentFactory.Krypton.Toolkit.KryptonPalette(this.components); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kbtnCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.ksbApply = new KryptonExtendedToolkit.ExtendedToolkit.Controls.KryptonUACElevatedButton(); this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.knOptions = new ComponentFactory.Krypton.Navigator.KryptonNavigator(); this.kpGeneral = new ComponentFactory.Krypton.Navigator.KryptonPage(); this.kpTheme = new ComponentFactory.Krypton.Navigator.KryptonPage(); this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox(); this.kbtnLoadTheme = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnCustomThemeFileBrowse = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.ktxtCustomThemePath = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); this.klblCustomThemeFilePath = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kcbTheme = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kryptonPage1 = new ComponentFactory.Krypton.Navigator.KryptonPage(); this.kcbTest = new ComponentFactory.Krypton.Toolkit.KryptonColorButton(); this.klblMediumColourFloatValue = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.klblLightColourFloatValue = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.klblDarkColourFloatValue = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.klblLightestColourFloatValue = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.knumDarkValue = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown(); this.knumMediumValue = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown(); this.knumLightValue = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown(); this.knumLightestValue = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown(); this.cbxLightestColour = new ExtendedControls.ExtendedToolkit.Controls.CircularPictureBox(); this.cbxLightColour = new ExtendedControls.ExtendedToolkit.Controls.CircularPictureBox(); this.cbxMediumColour = new ExtendedControls.ExtendedToolkit.Controls.CircularPictureBox(); this.cbxDarkColour = new ExtendedControls.ExtendedToolkit.Controls.CircularPictureBox(); this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.panel1 = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit(); this.kryptonPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.knOptions)).BeginInit(); this.knOptions.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kpGeneral)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kpTheme)).BeginInit(); this.kpTheme.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit(); this.kryptonGroupBox1.Panel.SuspendLayout(); this.kryptonGroupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kcbTheme)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).BeginInit(); this.kryptonPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cbxLightestColour)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxLightColour)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxMediumColour)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxDarkColour)).BeginInit(); this.SuspendLayout(); // // kMan // this.kMan.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue; // // kryptonPalette1 // this.kryptonPalette1.CustomisedKryptonPaletteFilePath = null; // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kbtnCancel); this.kryptonPanel1.Controls.Add(this.ksbApply); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.kryptonPanel1.Location = new System.Drawing.Point(0, 797); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(906, 55); this.kryptonPanel1.TabIndex = 0; // // kbtnCancel // this.kbtnCancel.AutoSize = true; this.kbtnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnCancel.Location = new System.Drawing.Point(757, 13); this.kbtnCancel.Name = "kbtnCancel"; this.kbtnCancel.Size = new System.Drawing.Size(60, 30); this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.TabIndex = 1; this.kbtnCancel.Values.Text = "Can&cel"; // // ksbApply // this.ksbApply.AutoSize = true; this.ksbApply.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ksbApply.Enabled = false; this.ksbApply.Location = new System.Drawing.Point(823, 13); this.ksbApply.Name = "ksbApply"; this.ksbApply.Size = new System.Drawing.Size(71, 30); this.ksbApply.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ksbApply.TabIndex = 0; this.ksbApply.Values.Image = ((System.Drawing.Image)(resources.GetObject("ksbApply.Values.Image"))); this.ksbApply.Values.Text = "&Apply"; // // kryptonPanel2 // this.kryptonPanel2.Controls.Add(this.knOptions); this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel2.Location = new System.Drawing.Point(0, 0); this.kryptonPanel2.Name = "kryptonPanel2"; this.kryptonPanel2.Size = new System.Drawing.Size(906, 797); this.kryptonPanel2.TabIndex = 1; // // knOptions // this.knOptions.Button.CloseButtonAction = ComponentFactory.Krypton.Navigator.CloseButtonAction.None; this.knOptions.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide; this.knOptions.Location = new System.Drawing.Point(12, 12); this.knOptions.Name = "knOptions"; this.knOptions.Pages.AddRange(new ComponentFactory.Krypton.Navigator.KryptonPage[] { this.kpGeneral, this.kpTheme, this.kryptonPage1 }); this.knOptions.SelectedIndex = 0; this.knOptions.Size = new System.Drawing.Size(882, 776); this.knOptions.StateCommon.Tab.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.knOptions.TabIndex = 0; this.knOptions.Text = "kryptonNavigator1"; // // kpGeneral // this.kpGeneral.AutoHiddenSlideSize = new System.Drawing.Size(200, 200); this.kpGeneral.Flags = 65534; this.kpGeneral.LastVisibleSet = true; this.kpGeneral.MinimumSize = new System.Drawing.Size(50, 50); this.kpGeneral.Name = "kpGeneral"; this.kpGeneral.Size = new System.Drawing.Size(880, 745); this.kpGeneral.Text = "General"; this.kpGeneral.ToolTipTitle = "Page ToolTip"; this.kpGeneral.UniqueName = "8CF4DE8AD8A6433C038CBF6707BB28B6"; // // kpTheme // this.kpTheme.AutoHiddenSlideSize = new System.Drawing.Size(200, 200); this.kpTheme.Controls.Add(this.kryptonGroupBox1); this.kpTheme.Flags = 65534; this.kpTheme.LastVisibleSet = true; this.kpTheme.MinimumSize = new System.Drawing.Size(50, 50); this.kpTheme.Name = "kpTheme"; this.kpTheme.Size = new System.Drawing.Size(880, 745); this.kpTheme.Text = "Theme"; this.kpTheme.ToolTipTitle = "Page ToolTip"; this.kpTheme.UniqueName = "A80439CDD42845E10BA62B98A827DD36"; // // kryptonGroupBox1 // this.kryptonGroupBox1.Location = new System.Drawing.Point(20, 16); this.kryptonGroupBox1.Name = "kryptonGroupBox1"; // // kryptonGroupBox1.Panel // this.kryptonGroupBox1.Panel.Controls.Add(this.kbtnLoadTheme); this.kryptonGroupBox1.Panel.Controls.Add(this.kbtnCustomThemeFileBrowse); this.kryptonGroupBox1.Panel.Controls.Add(this.ktxtCustomThemePath); this.kryptonGroupBox1.Panel.Controls.Add(this.klblCustomThemeFilePath); this.kryptonGroupBox1.Panel.Controls.Add(this.kcbTheme); this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel1); this.kryptonGroupBox1.Size = new System.Drawing.Size(840, 169); this.kryptonGroupBox1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonGroupBox1.TabIndex = 0; this.kryptonGroupBox1.Values.Heading = "Theme Selector"; // // kbtnLoadTheme // this.kbtnLoadTheme.AutoSize = true; this.kbtnLoadTheme.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnLoadTheme.Enabled = false; this.kbtnLoadTheme.Location = new System.Drawing.Point(668, 97); this.kbtnLoadTheme.Name = "kbtnLoadTheme"; this.kbtnLoadTheme.Size = new System.Drawing.Size(152, 28); this.kbtnLoadTheme.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F); this.kbtnLoadTheme.TabIndex = 5; this.kbtnLoadTheme.Values.Text = "&Load Custom Theme"; // // kbtnCustomThemeFileBrowse // this.kbtnCustomThemeFileBrowse.AutoSize = true; this.kbtnCustomThemeFileBrowse.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnCustomThemeFileBrowse.Enabled = false; this.kbtnCustomThemeFileBrowse.Location = new System.Drawing.Point(798, 53); this.kbtnCustomThemeFileBrowse.Name = "kbtnCustomThemeFileBrowse"; this.kbtnCustomThemeFileBrowse.Size = new System.Drawing.Size(22, 28); this.kbtnCustomThemeFileBrowse.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F); this.kbtnCustomThemeFileBrowse.TabIndex = 4; this.kbtnCustomThemeFileBrowse.Values.Text = ".&.."; // // ktxtCustomThemePath // this.ktxtCustomThemePath.Enabled = false; this.ktxtCustomThemePath.Location = new System.Drawing.Point(231, 54); this.ktxtCustomThemePath.Name = "ktxtCustomThemePath"; this.ktxtCustomThemePath.Size = new System.Drawing.Size(561, 27); this.ktxtCustomThemePath.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 11.25F); this.ktxtCustomThemePath.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.ktxtCustomThemePath.TabIndex = 3; // // klblCustomThemeFilePath // this.klblCustomThemeFilePath.Enabled = false; this.klblCustomThemeFilePath.Location = new System.Drawing.Point(34, 55); this.klblCustomThemeFilePath.Name = "klblCustomThemeFilePath"; this.klblCustomThemeFilePath.Size = new System.Drawing.Size(191, 24); this.klblCustomThemeFilePath.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblCustomThemeFilePath.TabIndex = 2; this.klblCustomThemeFilePath.Values.Text = "Custom Theme File Path:"; // // kcbTheme // this.kcbTheme.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.kcbTheme.DropDownWidth = 182; this.kcbTheme.Location = new System.Drawing.Point(124, 12); this.kcbTheme.Name = "kcbTheme"; this.kcbTheme.Size = new System.Drawing.Size(182, 25); this.kcbTheme.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbTheme.StateCommon.ComboBox.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near; this.kcbTheme.TabIndex = 1; this.kcbTheme.SelectedIndexChanged += new System.EventHandler(this.KcbTheme_SelectedIndexChanged); // // kryptonLabel1 // this.kryptonLabel1.Location = new System.Drawing.Point(14, 13); this.kryptonLabel1.Name = "kryptonLabel1"; this.kryptonLabel1.Size = new System.Drawing.Size(104, 24); this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel1.TabIndex = 0; this.kryptonLabel1.Values.Text = "Theme Type:"; // // kryptonPage1 // this.kryptonPage1.AutoHiddenSlideSize = new System.Drawing.Size(200, 200); this.kryptonPage1.Controls.Add(this.kcbTest); this.kryptonPage1.Controls.Add(this.klblMediumColourFloatValue); this.kryptonPage1.Controls.Add(this.klblLightColourFloatValue); this.kryptonPage1.Controls.Add(this.klblDarkColourFloatValue); this.kryptonPage1.Controls.Add(this.klblLightestColourFloatValue); this.kryptonPage1.Controls.Add(this.knumDarkValue); this.kryptonPage1.Controls.Add(this.knumMediumValue); this.kryptonPage1.Controls.Add(this.knumLightValue); this.kryptonPage1.Controls.Add(this.knumLightestValue); this.kryptonPage1.Controls.Add(this.cbxLightestColour); this.kryptonPage1.Controls.Add(this.cbxLightColour); this.kryptonPage1.Controls.Add(this.cbxMediumColour); this.kryptonPage1.Controls.Add(this.cbxDarkColour); this.kryptonPage1.Controls.Add(this.kryptonLabel7); this.kryptonPage1.Controls.Add(this.kryptonLabel5); this.kryptonPage1.Controls.Add(this.kryptonLabel4); this.kryptonPage1.Controls.Add(this.kryptonLabel2); this.kryptonPage1.Flags = 65534; this.kryptonPage1.LastVisibleSet = true; this.kryptonPage1.MinimumSize = new System.Drawing.Size(50, 50); this.kryptonPage1.Name = "kryptonPage1"; this.kryptonPage1.Size = new System.Drawing.Size(880, 745); this.kryptonPage1.Text = "Colour Intensity"; this.kryptonPage1.ToolTipTitle = "Page ToolTip"; this.kryptonPage1.UniqueName = "e0550eb663f7425e99be7d6b7761bd8e"; // // kcbTest // this.kcbTest.Location = new System.Drawing.Point(36, 462); this.kcbTest.Name = "kcbTest"; this.kcbTest.Size = new System.Drawing.Size(178, 25); this.kcbTest.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbTest.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbTest.TabIndex = 34; this.kcbTest.Values.Text = "&Test Colour"; this.kcbTest.SelectedColorChanged += new System.EventHandler <ComponentFactory.Krypton.Toolkit.ColorEventArgs>(this.KcbTest_SelectedColorChanged); // // klblMediumColourFloatValue // this.klblMediumColourFloatValue.Location = new System.Drawing.Point(366, 172); this.klblMediumColourFloatValue.Name = "klblMediumColourFloatValue"; this.klblMediumColourFloatValue.Size = new System.Drawing.Size(42, 33); this.klblMediumColourFloatValue.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblMediumColourFloatValue.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblMediumColourFloatValue.TabIndex = 33; this.klblMediumColourFloatValue.Values.Text = "{0}"; // // klblLightColourFloatValue // this.klblLightColourFloatValue.Location = new System.Drawing.Point(366, 290); this.klblLightColourFloatValue.Name = "klblLightColourFloatValue"; this.klblLightColourFloatValue.Size = new System.Drawing.Size(42, 33); this.klblLightColourFloatValue.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblLightColourFloatValue.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblLightColourFloatValue.TabIndex = 32; this.klblLightColourFloatValue.Values.Text = "{0}"; // // klblDarkColourFloatValue // this.klblDarkColourFloatValue.Location = new System.Drawing.Point(366, 54); this.klblDarkColourFloatValue.Name = "klblDarkColourFloatValue"; this.klblDarkColourFloatValue.Size = new System.Drawing.Size(42, 33); this.klblDarkColourFloatValue.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblDarkColourFloatValue.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblDarkColourFloatValue.TabIndex = 31; this.klblDarkColourFloatValue.Values.Text = "{0}"; // // klblLightestColourFloatValue // this.klblLightestColourFloatValue.Location = new System.Drawing.Point(366, 408); this.klblLightestColourFloatValue.Name = "klblLightestColourFloatValue"; this.klblLightestColourFloatValue.Size = new System.Drawing.Size(42, 33); this.klblLightestColourFloatValue.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblLightestColourFloatValue.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblLightestColourFloatValue.TabIndex = 30; this.klblLightestColourFloatValue.Values.Text = "{0}"; // // knumDarkValue // this.knumDarkValue.DecimalPlaces = 99; this.knumDarkValue.Location = new System.Drawing.Point(217, 54); this.knumDarkValue.Maximum = new decimal(new int[] { 255, 0, 0, 0 }); this.knumDarkValue.Name = "knumDarkValue"; this.knumDarkValue.Size = new System.Drawing.Size(120, 32); this.knumDarkValue.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.knumDarkValue.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.knumDarkValue.TabIndex = 29; this.knumDarkValue.ValueChanged += new System.EventHandler(this.KnumDarkValue_ValueChanged); // // knumMediumValue // this.knumMediumValue.DecimalPlaces = 99; this.knumMediumValue.Location = new System.Drawing.Point(217, 172); this.knumMediumValue.Maximum = new decimal(new int[] { 255, 0, 0, 0 }); this.knumMediumValue.Name = "knumMediumValue"; this.knumMediumValue.Size = new System.Drawing.Size(120, 32); this.knumMediumValue.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.knumMediumValue.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.knumMediumValue.TabIndex = 28; this.knumMediumValue.ValueChanged += new System.EventHandler(this.KnumMediumValue_ValueChanged); // // knumLightValue // this.knumLightValue.DecimalPlaces = 99; this.knumLightValue.Location = new System.Drawing.Point(217, 290); this.knumLightValue.Maximum = new decimal(new int[] { 255, 0, 0, 0 }); this.knumLightValue.Name = "knumLightValue"; this.knumLightValue.Size = new System.Drawing.Size(120, 32); this.knumLightValue.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.knumLightValue.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.knumLightValue.TabIndex = 27; this.knumLightValue.ValueChanged += new System.EventHandler(this.KnumLightValue_ValueChanged); // // knumLightestValue // this.knumLightestValue.DecimalPlaces = 99; this.knumLightestValue.Location = new System.Drawing.Point(217, 408); this.knumLightestValue.Maximum = new decimal(new int[] { 255, 0, 0, 0 }); this.knumLightestValue.Name = "knumLightestValue"; this.knumLightestValue.Size = new System.Drawing.Size(120, 32); this.knumLightestValue.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.knumLightestValue.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.knumLightestValue.TabIndex = 26; this.knumLightestValue.ValueChanged += new System.EventHandler(this.KnumLightestValue_ValueChanged); // // cbxLightestColour // this.cbxLightestColour.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbxLightestColour.BackColor = System.Drawing.Color.Black; this.cbxLightestColour.Location = new System.Drawing.Point(765, 374); this.cbxLightestColour.Name = "cbxLightestColour"; this.cbxLightestColour.Size = new System.Drawing.Size(95, 95); this.cbxLightestColour.TabIndex = 25; this.cbxLightestColour.TabStop = false; // // cbxLightColour // this.cbxLightColour.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbxLightColour.BackColor = System.Drawing.Color.Black; this.cbxLightColour.Location = new System.Drawing.Point(765, 258); this.cbxLightColour.Name = "cbxLightColour"; this.cbxLightColour.Size = new System.Drawing.Size(95, 95); this.cbxLightColour.TabIndex = 24; this.cbxLightColour.TabStop = false; // // cbxMediumColour // this.cbxMediumColour.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbxMediumColour.BackColor = System.Drawing.Color.Black; this.cbxMediumColour.Location = new System.Drawing.Point(765, 142); this.cbxMediumColour.Name = "cbxMediumColour"; this.cbxMediumColour.Size = new System.Drawing.Size(95, 95); this.cbxMediumColour.TabIndex = 23; this.cbxMediumColour.TabStop = false; // // cbxDarkColour // this.cbxDarkColour.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbxDarkColour.BackColor = System.Drawing.Color.Black; this.cbxDarkColour.Location = new System.Drawing.Point(765, 26); this.cbxDarkColour.Name = "cbxDarkColour"; this.cbxDarkColour.Size = new System.Drawing.Size(95, 95); this.cbxDarkColour.TabIndex = 22; this.cbxDarkColour.TabStop = false; // // kryptonLabel7 // this.kryptonLabel7.Location = new System.Drawing.Point(36, 172); this.kryptonLabel7.Name = "kryptonLabel7"; this.kryptonLabel7.Size = new System.Drawing.Size(178, 33); this.kryptonLabel7.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel7.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel7.TabIndex = 21; this.kryptonLabel7.Values.Text = "Medium Colour:"; // // kryptonLabel5 // this.kryptonLabel5.Location = new System.Drawing.Point(36, 408); this.kryptonLabel5.Name = "kryptonLabel5"; this.kryptonLabel5.Size = new System.Drawing.Size(175, 33); this.kryptonLabel5.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel5.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel5.TabIndex = 20; this.kryptonLabel5.Values.Text = "Lightest Colour:"; // // kryptonLabel4 // this.kryptonLabel4.Location = new System.Drawing.Point(36, 290); this.kryptonLabel4.Name = "kryptonLabel4"; this.kryptonLabel4.Size = new System.Drawing.Size(145, 33); this.kryptonLabel4.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel4.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel4.TabIndex = 19; this.kryptonLabel4.Values.Text = "Light Colour:"; // // kryptonLabel2 // this.kryptonLabel2.Location = new System.Drawing.Point(36, 54); this.kryptonLabel2.Name = "kryptonLabel2"; this.kryptonLabel2.Size = new System.Drawing.Size(141, 33); this.kryptonLabel2.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel2.TabIndex = 18; this.kryptonLabel2.Values.Text = "Dark Colour:"; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel1.Location = new System.Drawing.Point(0, 794); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(906, 3); this.panel1.TabIndex = 2; // // OptionsWindow // this.ClientSize = new System.Drawing.Size(906, 852); this.Controls.Add(this.panel1); this.Controls.Add(this.kryptonPanel2); this.Controls.Add(this.kryptonPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "OptionsWindow"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Palette Explorer Options"; this.Load += new System.EventHandler(this.OptionsWindow_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit(); this.kryptonPanel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.knOptions)).EndInit(); this.knOptions.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kpGeneral)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kpTheme)).EndInit(); this.kpTheme.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit(); this.kryptonGroupBox1.Panel.ResumeLayout(false); this.kryptonGroupBox1.Panel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit(); this.kryptonGroupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kcbTheme)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).EndInit(); this.kryptonPage1.ResumeLayout(false); this.kryptonPage1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.cbxLightestColour)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxLightColour)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxMediumColour)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxDarkColour)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Switches the theme. /// </summary> /// <param name="mode">The mode.</param> /// <param name="manager">The manager.</param> public static void SwitchTheme(PaletteModeManager mode, KryptonManager manager) { ThemeManager themeManager = new ThemeManager(); switch (mode) { case PaletteModeManager.ProfessionalSystem: manager.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem; break; case PaletteModeManager.ProfessionalOffice2003: manager.GlobalPaletteMode = PaletteModeManager.ProfessionalOffice2003; break; case PaletteModeManager.Office2007Blue: manager.GlobalPaletteMode = PaletteModeManager.Office2007Blue; break; case PaletteModeManager.Office2007Silver: manager.GlobalPaletteMode = PaletteModeManager.Office2007Silver; break; case PaletteModeManager.Office2007Black: manager.GlobalPaletteMode = PaletteModeManager.Office2007Black; break; case PaletteModeManager.Office2010Blue: manager.GlobalPaletteMode = PaletteModeManager.Office2010Blue; break; case PaletteModeManager.Office2010Silver: manager.GlobalPaletteMode = PaletteModeManager.Office2010Silver; break; case PaletteModeManager.Office2010Black: manager.GlobalPaletteMode = PaletteModeManager.Office2010Black; break; case PaletteModeManager.Office2013: manager.GlobalPaletteMode = PaletteModeManager.Office2013; break; case PaletteModeManager.Office2013White: manager.GlobalPaletteMode = PaletteModeManager.Office2013White; break; case PaletteModeManager.SparkleBlue: manager.GlobalPaletteMode = PaletteModeManager.SparkleBlue; break; case PaletteModeManager.SparkleOrange: manager.GlobalPaletteMode = PaletteModeManager.SparkleOrange; break; case PaletteModeManager.SparklePurple: manager.GlobalPaletteMode = PaletteModeManager.SparklePurple; break; case PaletteModeManager.Custom: manager.GlobalPaletteMode = PaletteModeManager.Custom; break; default: manager.GlobalPaletteMode = PaletteModeManager.Office2010Blue; break; } themeManager.SetTheme(mode, manager); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.kryptonRibbon1 = new ComponentFactory.Krypton.Ribbon.KryptonRibbon(); this.kryptonRibbonTab1 = new ComponentFactory.Krypton.Ribbon.KryptonRibbonTab(); this.kryptonRibbonGroup1 = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroup(); this.kryptonRibbonGroupTriple1 = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupTriple(); this.kgbtnDropShadowOn = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupButton(); this.kgbtnDropShadowOff = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupButton(); this.kryptonRibbonGroup2 = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroup(); this.kryptonRibbonGroupTriple2 = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupTriple(); this.krgcmbThemeChooser = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupComboBox(); this.krgdThemeSelector = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupDomainUpDown(); this.krgbApplyTheme = new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupButton(); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.kryptonManager1 = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); ((System.ComponentModel.ISupportInitialize)(this.kryptonRibbon1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit(); this.kryptonPanel2.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // kryptonRibbon1 // this.kryptonRibbon1.AllowFormIntegrate = true; this.kryptonRibbon1.InDesignHelperMode = true; this.kryptonRibbon1.Name = "kryptonRibbon1"; this.kryptonRibbon1.RibbonTabs.AddRange(new ComponentFactory.Krypton.Ribbon.KryptonRibbonTab[] { this.kryptonRibbonTab1 }); this.kryptonRibbon1.SelectedTab = this.kryptonRibbonTab1; this.kryptonRibbon1.Size = new System.Drawing.Size(1347, 115); this.kryptonRibbon1.TabIndex = 0; // // kryptonRibbonTab1 // this.kryptonRibbonTab1.Groups.AddRange(new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroup[] { this.kryptonRibbonGroup1, this.kryptonRibbonGroup2 }); // // kryptonRibbonGroup1 // this.kryptonRibbonGroup1.Items.AddRange(new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupContainer[] { this.kryptonRibbonGroupTriple1 }); // // kryptonRibbonGroupTriple1 // this.kryptonRibbonGroupTriple1.Items.AddRange(new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupItem[] { this.kgbtnDropShadowOn, this.kgbtnDropShadowOff }); // // kgbtnDropShadowOn // this.kgbtnDropShadowOn.ButtonType = ComponentFactory.Krypton.Ribbon.GroupButtonType.Check; this.kgbtnDropShadowOn.TextLine1 = "Turn Drop Shadow"; this.kgbtnDropShadowOn.TextLine2 = "On"; this.kgbtnDropShadowOn.Click += new System.EventHandler(this.kgbtnDropShadowOn_Click); // // kgbtnDropShadowOff // this.kgbtnDropShadowOff.ButtonType = ComponentFactory.Krypton.Ribbon.GroupButtonType.Check; this.kgbtnDropShadowOff.TextLine1 = "Turn Drop Shadow"; this.kgbtnDropShadowOff.TextLine2 = "Off"; this.kgbtnDropShadowOff.Click += new System.EventHandler(this.kgbtnDropShadowOff_Click); // // kryptonRibbonGroup2 // this.kryptonRibbonGroup2.Items.AddRange(new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupContainer[] { this.kryptonRibbonGroupTriple2 }); // // kryptonRibbonGroupTriple2 // this.kryptonRibbonGroupTriple2.Items.AddRange(new ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupItem[] { this.krgcmbThemeChooser, this.krgdThemeSelector, this.krgbApplyTheme }); // // krgcmbThemeChooser // this.krgcmbThemeChooser.DropDownWidth = 121; this.krgcmbThemeChooser.FormattingEnabled = false; this.krgcmbThemeChooser.ItemHeight = 15; this.krgcmbThemeChooser.Text = ""; // // krgdThemeSelector // this.krgdThemeSelector.Text = ""; // // krgbApplyTheme // this.krgbApplyTheme.TextLine1 = "Apply"; this.krgbApplyTheme.TextLine2 = "Theme"; this.krgbApplyTheme.Click += new System.EventHandler(this.krgbApplyTheme_Click); // // kryptonPanel1 // this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 115); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1347, 555); this.kryptonPanel1.TabIndex = 1; // // kryptonPanel2 // this.kryptonPanel2.Controls.Add(this.statusStrip1); this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.kryptonPanel2.Location = new System.Drawing.Point(0, 648); this.kryptonPanel2.Name = "kryptonPanel2"; this.kryptonPanel2.Size = new System.Drawing.Size(1347, 22); this.kryptonPanel2.TabIndex = 0; // // statusStrip1 // this.statusStrip1.Font = new System.Drawing.Font("Segoe UI", 9F); this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel1 }); this.statusStrip1.Location = new System.Drawing.Point(0, 0); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.statusStrip1.Size = new System.Drawing.Size(1347, 22); this.statusStrip1.TabIndex = 0; this.statusStrip1.Text = "statusStrip1"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(118, 17); this.toolStripStatusLabel1.Text = "toolStripStatusLabel1"; // // RibbonApp // this.ClientSize = new System.Drawing.Size(1347, 670); this.Controls.Add(this.kryptonPanel2); this.Controls.Add(this.kryptonPanel1); this.Controls.Add(this.kryptonRibbon1); this.Name = "RibbonApp"; this.TextExtra = "Test"; this.UseDropShadow = false; this.Load += new System.EventHandler(this.RibbonApp_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonRibbon1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit(); this.kryptonPanel2.ResumeLayout(false); this.kryptonPanel2.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
void RefreshPalette() { palette = paletteMode == PaletteMode.Global ? KryptonManager.CurrentGlobalPalette : KryptonManager.GetPaletteForMode(paletteMode); renderer = palette.GetRenderer(); paletteRedirect = new PaletteRedirect(palette); paletteBackground = new PaletteBackInheritRedirect(paletteRedirect); paletteGrid = new PaletteBorderInheritRedirect(paletteRedirect); paletteBackButton = new PaletteBackInheritRedirect(paletteRedirect); paletteBorderButton = new PaletteBorderInheritRedirect(paletteRedirect); paletteBackground.Style = PaletteBackStyle.InputControlStandalone; paletteGrid.Style = PaletteBorderStyle.GridDataCellList; paletteBackButton.Style = PaletteBackStyle.ButtonListItem; paletteBorderButton.Style = PaletteBorderStyle.ButtonListItem; Refresh(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.kryptonManager1 = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); this.kryptonComboBoxExtended1 = new ExtendedStandardControls.KryptonComboBoxExtended(); this.kryptonCheckButtonExtended1 = new ExtendedStandardControls.KryptonCheckButtonExtended(); this.kryptonCheckedListBoxExtended1 = new ExtendedStandardControls.KryptonCheckedListBoxExtended(); ((System.ComponentModel.ISupportInitialize)(this.kryptonComboBoxExtended1)).BeginInit(); this.SuspendLayout(); // // kryptonManager1 // this.kryptonManager1.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue; // // kryptonComboBoxExtended1 // this.kryptonComboBoxExtended1.ComboBoxContentTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.ComboBoxItemContentLongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.ComboBoxItemContentShortTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.DropDownWidth = 121; this.kryptonComboBoxExtended1.Image = null; this.kryptonComboBoxExtended1.IntegralHeight = false; this.kryptonComboBoxExtended1.Location = new System.Drawing.Point(291, 79); this.kryptonComboBoxExtended1.Name = "kryptonComboBoxExtended1"; this.kryptonComboBoxExtended1.Size = new System.Drawing.Size(121, 18); this.kryptonComboBoxExtended1.StateActive.ComboBox.Content.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateActive.ComboBox.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.kryptonComboBoxExtended1.StateActiveComboBoxBackColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateActiveComboBoxContentColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateCommon.ComboBox.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near; this.kryptonComboBoxExtended1.StateCommon.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateCommonComboBoxBackColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxContentColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxDropBackColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxDropBackColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxItemBackColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxItemBackColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxItemContentLongTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxItemContentLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxItemContentShortTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateCommonComboBoxItemContentShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabled.ComboBox.Content.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateDisabled.ComboBox.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.kryptonComboBoxExtended1.StateDisabled.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateDisabled.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateDisabledComboBoxBackColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabledComboBoxContentColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabledComboBoxItemBackColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabledComboBoxItemBackColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabledComboBoxItemContentLongTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabledComboBoxItemContentLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabledComboBoxItemContentShortTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateDisabledComboBoxItemContentShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormal.ComboBox.Content.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateNormal.ComboBox.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.kryptonComboBoxExtended1.StateNormal.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateNormal.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateNormalComboBoxBackColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormalComboBoxContentColour = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormalComboBoxItemBackColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormalComboBoxItemBackColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormalComboBoxItemContentLongTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormalComboBoxItemContentLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormalComboBoxItemContentShortTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateNormalComboBoxItemContentShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateTracking.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateTracking.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonComboBoxExtended1.StateTrackingComboBoxItemBackColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateTrackingComboBoxItemBackColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateTrackingComboBoxItemContentLongTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateTrackingComboBoxItemContentLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateTrackingComboBoxItemContentShortTextColourOne = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.StateTrackingComboBoxItemContentShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonComboBoxExtended1.TabIndex = 0; this.kryptonComboBoxExtended1.Text = "kryptonComboBoxExtended1"; // // kryptonCheckButtonExtended1 // this.kryptonCheckButtonExtended1.Image = null; this.kryptonCheckButtonExtended1.Location = new System.Drawing.Point(655, 246); this.kryptonCheckButtonExtended1.LongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.Name = "kryptonCheckButtonExtended1"; this.kryptonCheckButtonExtended1.OverrideDefault.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.OverrideDefault.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.OverrideDefaultBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideDefaultBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideDefaultLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideDefaultLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideDefaultShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideDefaultShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideFocus.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.OverrideFocus.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.OverrideFocusBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideFocusBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideFocusLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideFocusLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideFocusShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.OverrideFocusShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.ShortTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.Size = new System.Drawing.Size(90, 25); this.kryptonCheckButtonExtended1.StateCheckedNormal.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCheckedNormal.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCheckedNormalBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedNormalBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedNormalLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedNormalLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedNormalShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedNormalShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedPressed.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCheckedPressed.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCheckedPressedBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedPressedBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedPressedLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedPressedLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedPressedShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedPressedShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedTracking.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCheckedTracking.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCheckedTrackingBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedTrackingBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedTrackingLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedTrackingLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedTrackingShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCheckedTrackingShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCommon.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateCommonBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCommonBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCommonLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCommonLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCommonShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateCommonShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateDisabled.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateDisabled.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateDisabledBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateDisabledBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateDisabledLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateDisabledLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateDisabledShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateDisabledShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateNormal.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateNormal.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateNormalBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateNormalBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateNormalLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateNormalLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateNormalShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateNormalShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StatePressedBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StatePressedBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StatePressedLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StatePressedLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StatePressedShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StatePressedShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateTracking.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateTracking.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckButtonExtended1.StateTrackingBackGroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateTrackingBackGroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateTrackingLongTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateTrackingLongTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateTrackingShortTextColourOne = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.StateTrackingShortTextColourTwo = System.Drawing.Color.Empty; this.kryptonCheckButtonExtended1.TabIndex = 1; this.kryptonCheckButtonExtended1.Values.Text = "kryptonCheckButtonExtended1"; // // kryptonCheckedListBoxExtended1 // this.kryptonCheckedListBoxExtended1.Image = null; this.kryptonCheckedListBoxExtended1.Location = new System.Drawing.Point(532, 296); this.kryptonCheckedListBoxExtended1.LongTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.Name = "kryptonCheckedListBoxExtended1"; this.kryptonCheckedListBoxExtended1.OverrideFocus.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.OverrideFocus.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.OverrideFocus.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.OverrideFocus.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.OverrideFocus.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.OverrideFocus.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.OverrideFocusItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.OverrideFocusItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.OverrideFocusLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.OverrideFocusLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.OverrideFocusShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.OverrideFocusShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.ShortTextTypeface = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.Size = new System.Drawing.Size(120, 96); this.kryptonCheckedListBoxExtended1.StateActiveBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateActiveBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCheckedNormal.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedNormal.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedNormal.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCheckedNormal.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedNormal.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedNormal.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCheckedNormalItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCheckedNormalItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCheckedNormalLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedNormalLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedNormalShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedNormalShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressed.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressed.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressed.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCheckedPressed.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressed.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressed.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCheckedPressedItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCheckedPressedItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCheckedPressedLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressedLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressedShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedPressedShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTracking.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTracking.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTracking.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCheckedTracking.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTracking.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTracking.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCheckedTrackingItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCheckedTrackingItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCheckedTrackingLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTrackingLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTrackingShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCheckedTrackingShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommon.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommon.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommon.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCommon.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommon.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateCommonBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCommonBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCommonItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCommonItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateCommonLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommonLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommonShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateCommonShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabled.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabled.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabled.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateDisabled.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabled.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabled.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateDisabledBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateDisabledBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateDisabledItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateDisabledItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateDisabledLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabledLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabledShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateDisabledShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormal.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormal.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormal.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateNormal.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormal.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormal.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateNormalBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateNormalBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateNormalItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateNormalItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateNormalLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormalLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormalShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateNormalShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressed.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressed.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressed.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StatePressed.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressed.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressed.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StatePressedItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StatePressedItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StatePressedLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressedLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressedShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StatePressedShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTracking.Item.Content.LongText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTracking.Item.Content.LongText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTracking.Item.Content.LongText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateTracking.Item.Content.ShortText.Color1 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTracking.Item.Content.ShortText.Color2 = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTracking.Item.Content.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.kryptonCheckedListBoxExtended1.StateTrackingItemBackgroundColourOne = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateTrackingItemBackgroundColourTwo = System.Drawing.Color.Empty; this.kryptonCheckedListBoxExtended1.StateTrackingLongTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTrackingLongTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTrackingShortTextColourOne = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.StateTrackingShortTextColourTwo = System.Drawing.SystemColors.ControlText; this.kryptonCheckedListBoxExtended1.TabIndex = 2; // // StandardControlsExtended // this.ClientSize = new System.Drawing.Size(1369, 636); this.Controls.Add(this.kryptonCheckedListBoxExtended1); this.Controls.Add(this.kryptonCheckButtonExtended1); this.Controls.Add(this.kryptonComboBoxExtended1); this.Name = "StandardControlsExtended"; this.Load += new System.EventHandler(this.StandardControlsExtended_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonComboBoxExtended1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Applies the theme. /// </summary> /// <param name="themeName">Name of the theme.</param> /// <param name="manager">The manager.</param> public static void ApplyTheme(string themeName, KryptonManager manager) { switch (themeName) { case @"Custom": ApplyTheme(PaletteModeManager.Custom, manager); break; case @"Professional - System": ApplyTheme(PaletteModeManager.ProfessionalSystem, manager); break; case @"Professional - Office 2003": ApplyTheme(PaletteModeManager.ProfessionalOffice2003, manager); break; case @"Office 2007 - Blue": ApplyTheme(PaletteModeManager.Office2007Blue, manager); break; case @"Office 2007 - Blue (Dark Mode)": ApplyTheme(PaletteModeManager.Office2007BlueDarkMode, manager); break; case @"Office 2007 - Blue (Light Mode)": ApplyTheme(PaletteModeManager.Office2007BlueLightMode, manager); break; case @"Office 2007 - Silver": ApplyTheme(PaletteModeManager.Office2007Silver, manager); break; case @"Office 2007 - Silver (Dark Mode)": ApplyTheme(PaletteModeManager.Office2007SilverDarkMode, manager); break; case @"Office 2007 - Silver (Light Mode)": ApplyTheme(PaletteModeManager.Office2007SilverLightMode, manager); break; case @"Office 2007 - White": ApplyTheme(PaletteModeManager.Office2007White, manager); break; case @"Office 2007 - Black": ApplyTheme(PaletteModeManager.Office2007Black, manager); break; case @"Office 2007 - Black (Dark Mode)": ApplyTheme(PaletteModeManager.Office2007BlackDarkMode, manager); break; case @"Office 2010 - Blue": ApplyTheme(PaletteModeManager.Office2010Blue, manager); break; case @"Office 2010 - Blue (Dark Mode)": ApplyTheme(PaletteModeManager.Office2010BlueDarkMode, manager); break; case @"Office 2010 - Blue (Light Mode)": ApplyTheme(PaletteModeManager.Office2010BlueLightMode, manager); break; case @"Office 2010 - Silver": ApplyTheme(PaletteModeManager.Office2010Silver, manager); break; case @"Office 2010 - Silver (Dark Mode)": ApplyTheme(PaletteModeManager.Office2010SilverDarkMode, manager); break; case @"Office 2010 - Silver (Light Mode)": ApplyTheme(PaletteModeManager.Office2010SilverLightMode, manager); break; case @"Office 2010 - White": ApplyTheme(PaletteModeManager.Office2010White, manager); break; case @"Office 2010 - Black": ApplyTheme(PaletteModeManager.Office2010Black, manager); break; case @"Office 2010 - Black (Dark Mode)": ApplyTheme(PaletteModeManager.Office2010BlackDarkMode, manager); break; /*case @"Office 2013": * ApplyTheme(PaletteModeManager.Office2013, manager); * break;*/ case @"Office 2013 - White": ApplyTheme(PaletteModeManager.Office2013White, manager); break; case @"Sparkle - Blue": ApplyTheme(PaletteModeManager.SparkleBlue, manager); break; case @"Sparkle - Blue (Dark Mode)": ApplyTheme(PaletteModeManager.SparkleBlueDarkMode, manager); break; case @"Sparkle - Blue (Light Mode)": ApplyTheme(PaletteModeManager.SparkleBlueLightMode, manager); break; case @"Sparkle - Orange": ApplyTheme(PaletteModeManager.SparkleOrange, manager); break; case @"Sparkle - Orange (Dark Mode)": ApplyTheme(PaletteModeManager.SparkleOrangeDarkMode, manager); break; case @"Sparkle - Orange (Light Mode)": ApplyTheme(PaletteModeManager.SparkleOrangeLightMode, manager); break; case @"Sparkle - Purple": ApplyTheme(PaletteModeManager.SparklePurple, manager); break; case @"Sparkle - Purple (Dark Mode)": ApplyTheme(PaletteModeManager.SparklePurpleDarkMode, manager); break; case @"Sparkle - Purple (Light Mode)": ApplyTheme(PaletteModeManager.SparklePurpleLightMode, manager); break; case @"Office 365 - Blue": ApplyTheme(PaletteModeManager.Office365Blue, manager); break; case @"Office 365 - Blue (Dark Mode)": ApplyTheme(PaletteModeManager.Office365BlueDarkMode, manager); break; case @"Office 365 - Blue (Light Mode)": ApplyTheme(PaletteModeManager.Office365BlueLightMode, manager); break; case @"Office 365 - Silver": ApplyTheme(PaletteModeManager.Office365Silver, manager); break; case @"Office 365 - Silver (Dark Mode)": ApplyTheme(PaletteModeManager.Office365SilverDarkMode, manager); break; case @"Office 365 - Silver (Light Mode)": ApplyTheme(PaletteModeManager.Office365SilverLightMode, manager); break; case @"Office 365 - White": ApplyTheme(PaletteModeManager.Office365White, manager); break; case @"Office 365 - Black": ApplyTheme(PaletteModeManager.Office365Black, manager); break; case @"Office 365 - Black (Dark Mode)": ApplyTheme(PaletteModeManager.Office365BlackDarkMode, manager); break; default: throw new ArgumentNullException(nameof(themeName)); } }
/// <summary> /// Returns the palette mode manager as string. /// </summary> /// <param name="paletteModeManager">The palette mode manager.</param> /// <param name="manager">The manager.</param> /// <returns>The chosen theme as a string.</returns> public static string ReturnPaletteModeManagerAsString(PaletteModeManager paletteModeManager, KryptonManager manager = null) { var paletteMode = manager?.GlobalPaletteMode ?? paletteModeManager; return(paletteMode switch { PaletteModeManager.Custom => "Custom", PaletteModeManager.ProfessionalSystem => "Professional - System", PaletteModeManager.ProfessionalOffice2003 => "Professional - Office 2003", PaletteModeManager.Office2007Blue => "Office 2007 - Blue", PaletteModeManager.Office2007BlueDarkMode => "Office 2007 - Blue (Dark Mode)", PaletteModeManager.Office2007BlueLightMode => "Office 2007 - Blue (Light Mode)", PaletteModeManager.Office2007Silver => "Office 2007 - Silver", PaletteModeManager.Office2007SilverDarkMode => "Office 2007 - Silver (Dark Mode)", PaletteModeManager.Office2007SilverLightMode => "Office 2007 - Silver (Light Mode)", PaletteModeManager.Office2007White => "Office 2007 - White", PaletteModeManager.Office2007Black => "Office 2007 - Black", PaletteModeManager.Office2007BlackDarkMode => "Office 2007 - Black (Dark Mode)", PaletteModeManager.Office2010Blue => "Office 2010 - Blue", PaletteModeManager.Office2010BlueDarkMode => "Office 2010 - Blue (Dark Mode)", PaletteModeManager.Office2010BlueLightMode => "Office 2010 - Blue (Light Mode)", PaletteModeManager.Office2010Silver => "Office 2010 - Silver", PaletteModeManager.Office2010SilverDarkMode => "Office 2010 - Silver (Dark Mode)", PaletteModeManager.Office2010SilverLightMode => "Office 2010 - Silver (Light Mode)", PaletteModeManager.Office2010White => "Office 2010 - White", PaletteModeManager.Office2010Black => "Office 2010 - Black", PaletteModeManager.Office2010BlackDarkMode => "Office 2010 - Black (Dark Mode)", //PaletteModeManager.Office2013 => "Office 2013", PaletteModeManager.Office2013White => "Office 2013 - White", PaletteModeManager.SparkleBlue => "Sparkle - Blue", PaletteModeManager.SparkleOrange => "Sparkle - Orange", PaletteModeManager.SparklePurple => "Sparkle - Purple", PaletteModeManager.Office365Blue => "Office 365 - Blue", PaletteModeManager.Office365BlueDarkMode => "Office 365 - Blue (Dark Mode)", PaletteModeManager.Office365BlueLightMode => "Office 365 - Blue (Light Mode)", PaletteModeManager.Office365Silver => "Office 365 - Silver", PaletteModeManager.Office365SilverDarkMode => "Office 365 - Silver (Dark Mode)", PaletteModeManager.Office365SilverLightMode => "Office 365 - Silver (Light Mode)", PaletteModeManager.Office365White => "Office 365 - White", PaletteModeManager.Office365Black => "Office 365 - Black", PaletteModeManager.Office365BlackDarkMode => "Office 365 - Black (Dark Mode)", _ => null });
/// <summary>Gets the palette mode.</summary> /// <param name="manager">The manager.</param> /// <returns>The current <see cref="PaletteMode"/>.</returns> public static PaletteMode GetPaletteMode(KryptonManager manager) => ReturnPaletteMode(manager.GlobalPaletteMode);
/// <summary> /// Gets the palette mode manager. /// </summary> /// <param name="manager">The manager.</param> /// <returns>The current <see cref="PaletteModeManager"/> mode.</returns> public static PaletteModeManager GetPaletteModeManager(KryptonManager manager) => manager.GlobalPaletteMode;
/// <summary> /// Applies the theme. /// </summary> /// <param name="mode">The mode.</param> /// <param name="manager">The manager.</param> private static void ApplyTheme(PaletteModeManager mode, KryptonManager manager) => manager.GlobalPaletteMode = mode;
/// <summary> /// Applies the theme. /// </summary> /// <param name="paletteMode">The palette mode.</param> /// <param name="manager">The manager.</param> private static void ApplyTheme(PaletteModeManager paletteMode, KryptonManager manager) { switch (paletteMode) { case PaletteModeManager.ProfessionalSystem: manager.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem; break; case PaletteModeManager.ProfessionalOffice2003: manager.GlobalPaletteMode = PaletteModeManager.ProfessionalOffice2003; break; case PaletteModeManager.Office2007Blue: manager.GlobalPaletteMode = PaletteModeManager.Office2007Blue; break; case PaletteModeManager.Office2007Silver: manager.GlobalPaletteMode = PaletteModeManager.Office2007Silver; break; case PaletteModeManager.Office2007White: manager.GlobalPaletteMode = PaletteModeManager.Office2007White; break; case PaletteModeManager.Office2007Black: manager.GlobalPaletteMode = PaletteModeManager.Office2007Black; break; case PaletteModeManager.Office2010Blue: manager.GlobalPaletteMode = PaletteModeManager.Office2010Blue; break; case PaletteModeManager.Office2010Silver: manager.GlobalPaletteMode = PaletteModeManager.Office2010Silver; break; case PaletteModeManager.Office2010White: manager.GlobalPaletteMode = PaletteModeManager.Office2010White; break; case PaletteModeManager.Office2010Black: manager.GlobalPaletteMode = PaletteModeManager.Office2010Black; break; case PaletteModeManager.Office2013: manager.GlobalPaletteMode = PaletteModeManager.Office2013; break; case PaletteModeManager.Office2013White: manager.GlobalPaletteMode = PaletteModeManager.Office2013White; break; case PaletteModeManager.Office365Black: manager.GlobalPaletteMode = PaletteModeManager.Office365Black; break; case PaletteModeManager.Office365Blue: manager.GlobalPaletteMode = PaletteModeManager.Office365Blue; break; case PaletteModeManager.Office365Silver: manager.GlobalPaletteMode = PaletteModeManager.Office365Silver; break; case PaletteModeManager.Office365White: manager.GlobalPaletteMode = PaletteModeManager.Office365White; break; case PaletteModeManager.SparkleBlue: manager.GlobalPaletteMode = PaletteModeManager.SparkleBlue; break; case PaletteModeManager.SparkleOrange: manager.GlobalPaletteMode = PaletteModeManager.SparkleOrange; break; case PaletteModeManager.SparklePurple: manager.GlobalPaletteMode = PaletteModeManager.SparklePurple; break; case PaletteModeManager.Custom: manager.GlobalPaletteMode = PaletteModeManager.Custom; break; default: break; } }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("a"); System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("b"); System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("c"); System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("d"); System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("e"); System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("f"); this.kryptonManager1 = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonPaletteChooserComboBox1 = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonPaletteChooserComboBox(); this.kryptonListView1 = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPaletteChooserComboBox1)).BeginInit(); this.SuspendLayout(); // // kryptonManager1 // this.kryptonManager1.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office365Black; // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kryptonPaletteChooserComboBox1); this.kryptonPanel1.Controls.Add(this.kryptonListView1); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1245, 672); this.kryptonPanel1.TabIndex = 1; // // kryptonPaletteChooserComboBox1 // this.kryptonPaletteChooserComboBox1.DropDownWidth = 121; this.kryptonPaletteChooserComboBox1.Items.AddRange(new object[] { "Global", "ProfessionalSystem", "ProfessionalOffice2003", "Office2007Blue", "Office2007Silver", "Office2007White", "Office2007Black", "Office2010Blue", "Office2010Silver", "Office2010White", "Office2010Black", "Office2013", "Office2013White", "Office365Black", "Office365Blue", "Office365Silver", "Office365White", "SparkleBlue", "SparkleOrange", "SparklePurple", "Custom" }); this.kryptonPaletteChooserComboBox1.Location = new System.Drawing.Point(138, 28); this.kryptonPaletteChooserComboBox1.Name = "kryptonPaletteChooserComboBox1"; this.kryptonPaletteChooserComboBox1.Size = new System.Drawing.Size(121, 21); this.kryptonPaletteChooserComboBox1.TabIndex = 1; this.kryptonPaletteChooserComboBox1.Text = "kryptonPaletteChooserComboBox1"; this.kryptonPaletteChooserComboBox1.PaletteChanged += new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonPaletteChooserComboBox.ChangePaletteEventHandler(this.kryptonPaletteChooserComboBox1_PaletteChanged); this.kryptonPaletteChooserComboBox1.SelectedIndexChanged += new System.EventHandler(this.kryptonPaletteChooserComboBox1_SelectedIndexChanged); // // kryptonListView1 // this.kryptonListView1.AlternateRowColour = System.Drawing.Color.FromArgb(((int)(((byte)(113)))), ((int)(((byte)(113)))), ((int)(((byte)(113))))); this.kryptonListView1.AlternateRowColourEnabled = true; this.kryptonListView1.AutoSizeLastColumn = true; this.kryptonListView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4 }); this.kryptonListView1.EnableDragDrop = false; this.kryptonListView1.EnableHeaderGlow = false; this.kryptonListView1.EnableHeaderHotTrack = false; this.kryptonListView1.EnableHeaderRendering = true; this.kryptonListView1.EnableSelectionBorder = false; this.kryptonListView1.EnableSorting = true; this.kryptonListView1.EnableVistaCheckBoxes = true; this.kryptonListView1.ForceLeftAlign = false; this.kryptonListView1.FullRowSelect = true; this.kryptonListView1.HideSelection = false; this.kryptonListView1.ItemHeight = 0; this.kryptonListView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] { listViewItem1, listViewItem2, listViewItem3, listViewItem4, listViewItem5, listViewItem6 }); this.kryptonListView1.LineAfter = -1; this.kryptonListView1.LineBefore = -1; this.kryptonListView1.Location = new System.Drawing.Point(492, 28); this.kryptonListView1.Name = "kryptonListView1"; this.kryptonListView1.OwnerDraw = true; this.kryptonListView1.PersistentColours = false; this.kryptonListView1.SelectEntireRowOnSubItem = true; this.kryptonListView1.Size = new System.Drawing.Size(741, 427); this.kryptonListView1.TabIndex = 0; this.kryptonListView1.UseCompatibleStateImageBehavior = false; this.kryptonListView1.UseKryptonRenderer = true; this.kryptonListView1.UseStyledColours = true; this.kryptonListView1.View = System.Windows.Forms.View.Details; // // Test // this.ClientSize = new System.Drawing.Size(1245, 672); this.Controls.Add(this.kryptonPanel1); this.Name = "Test"; ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonPaletteChooserComboBox1)).EndInit(); this.ResumeLayout(false); }
private void SetTheme(PaletteModeManager mode, KryptonManager manager) { manager.GlobalPaletteMode = mode; _themeSettingsManager.SetTheme(mode); }
/// <summary> /// Sets the value of GlobalManager to manager. /// </summary> /// <param name="manager">The value of GlobalManager.</param> public void SetGlobalManager(KryptonManager manager) { _themeSettings.GlobalManager = manager; SetSettingsModified(true); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues8 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues9 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues10 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); KryptonOutlookGrid.Classes.OutlookGridGroupCollection outlookGridGroupCollection2 = new KryptonOutlookGrid.Classes.OutlookGridGroupCollection(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues6 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MoreControls)); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues7 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kryptonDomainUpDown1 = new ComponentFactory.Krypton.Toolkit.KryptonDomainUpDown(); this.kryptonManager1 = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); this.kryptonOutlookGrid1 = new KryptonOutlookGrid.Classes.KryptonOutlookGrid(); this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.modernProgressBar1 = new KryptonExtendedToolkit.ExtendedToolkit.Controls.ModernProgressBar(); this.kryptonUACElevatedButton1 = new KryptonExtendedToolkit.ExtendedToolkit.Controls.KryptonUACElevatedButton(); this.kryptonCueComboBox1 = new KryptonExtendedToolkit.ExtendedToolkit.Controls.KryptonCueComboBox(); this.kryptonGrid1 = new ExtendedControls.ExtendedToolkit.Controls.KryptonGrid(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.outlookBar1 = new ExtendedControls.ExtendedToolkit.Controls.Navigator.Controls.OutlookBar(); this.roundedTextbox1 = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.RoundedTextbox(); this.circularProgressBar1 = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.CircularProgressBar(); this.colourComparer1 = new ExtendedControls.ExtendedToolkit.Controls.Colours.Controls.ColourComparer(); this.schemesColourEditorUserControl1 = new ExtendedControls.ExtendedToolkit.Controls.Colours.SchemesColourEditorUserControl(); this.kryptonLxLedControl1 = new ExtendedControls.ExtendedToolkit.Controls.Charting.KryptonLxLedControl(); this.monthView1 = new ExtendedControls.ExtendedToolkit.Calendar.Controls.MonthView(); this.colourEditorManager1 = new Core.Controls.Colours.ColourEditorManager(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonOutlookGrid1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonCueComboBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGrid1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonLxLedControl1)).BeginInit(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kryptonOutlookGrid1); this.kryptonPanel1.Controls.Add(this.modernProgressBar1); this.kryptonPanel1.Controls.Add(this.kryptonUACElevatedButton1); this.kryptonPanel1.Controls.Add(this.kryptonCueComboBox1); this.kryptonPanel1.Controls.Add(this.kryptonGrid1); this.kryptonPanel1.Controls.Add(this.outlookBar1); this.kryptonPanel1.Controls.Add(this.roundedTextbox1); this.kryptonPanel1.Controls.Add(this.circularProgressBar1); this.kryptonPanel1.Controls.Add(this.colourComparer1); this.kryptonPanel1.Controls.Add(this.schemesColourEditorUserControl1); this.kryptonPanel1.Controls.Add(this.kryptonLxLedControl1); this.kryptonPanel1.Controls.Add(this.monthView1); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1450, 777); this.kryptonPanel1.TabIndex = 0; // // kryptonButton2 // this.kryptonButton2.Location = new System.Drawing.Point(1057, 211); this.kryptonButton2.Name = "kryptonButton2"; this.kryptonButton2.Size = new System.Drawing.Size(158, 25); this.kryptonButton2.TabIndex = 80; popupPositionValues8.PlacementMode = ComponentFactory.Krypton.Toolkit.PlacementMode.Bottom; this.kryptonButton2.ToolTipValues.ToolTipPosition = popupPositionValues8; this.kryptonButton2.Values.Text = "Colour Chooser 2"; this.kryptonButton2.Click += new System.EventHandler(this.kryptonButton2_Click); // // kryptonButton1 // this.kryptonButton1.Location = new System.Drawing.Point(1057, 180); this.kryptonButton1.Name = "kryptonButton1"; this.kryptonButton1.Size = new System.Drawing.Size(158, 25); this.kryptonButton1.TabIndex = 79; popupPositionValues9.PlacementMode = ComponentFactory.Krypton.Toolkit.PlacementMode.Bottom; this.kryptonButton1.ToolTipValues.ToolTipPosition = popupPositionValues9; this.kryptonButton1.Values.Text = "Colour Chooser 1"; this.kryptonButton1.Click += new System.EventHandler(this.kryptonButton1_Click); // // kryptonDomainUpDown1 // this.kryptonDomainUpDown1.Location = new System.Drawing.Point(1057, 152); this.kryptonDomainUpDown1.Name = "kryptonDomainUpDown1"; this.kryptonDomainUpDown1.Size = new System.Drawing.Size(158, 22); this.kryptonDomainUpDown1.TabIndex = 70; this.kryptonDomainUpDown1.Text = "kryptonDomainUpDown1"; popupPositionValues10.PlacementMode = ComponentFactory.Krypton.Toolkit.PlacementMode.Bottom; this.kryptonDomainUpDown1.ToolTipValues.ToolTipPosition = popupPositionValues10; // // kryptonOutlookGrid1 // this.kryptonOutlookGrid1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column5, this.Column6, this.Column7, this.Column8, this.Column9, this.Column10 }); this.kryptonOutlookGrid1.FillMode = KryptonOutlookGrid.Classes.FillMode.GROUPSONLY; this.kryptonOutlookGrid1.GroupCollection = outlookGridGroupCollection2; this.kryptonOutlookGrid1.Location = new System.Drawing.Point(608, 252); this.kryptonOutlookGrid1.Name = "kryptonOutlookGrid1"; this.kryptonOutlookGrid1.PreviousSelectedGroupRow = -1; this.kryptonOutlookGrid1.ShowLines = false; this.kryptonOutlookGrid1.Size = new System.Drawing.Size(687, 145); this.kryptonOutlookGrid1.TabIndex = 11; // // Column5 // this.Column5.HeaderText = "Column5"; this.Column5.Name = "Column5"; // // Column6 // this.Column6.HeaderText = "Column6"; this.Column6.Name = "Column6"; // // Column7 // this.Column7.HeaderText = "Column7"; this.Column7.Name = "Column7"; // // Column8 // this.Column8.HeaderText = "Column8"; this.Column8.Name = "Column8"; // // Column9 // this.Column9.HeaderText = "Column9"; this.Column9.Name = "Column9"; // // Column10 // this.Column10.HeaderText = "Column10"; this.Column10.Name = "Column10"; // // modernProgressBar1 // this.modernProgressBar1.AutoSize = true; this.modernProgressBar1.BackColor = System.Drawing.Color.Transparent; this.modernProgressBar1.Location = new System.Drawing.Point(651, 189); this.modernProgressBar1.Name = "modernProgressBar1"; this.modernProgressBar1.Size = new System.Drawing.Size(548, 15); this.modernProgressBar1.TabIndex = 10; // // kryptonUACElevatedButton1 // this.kryptonUACElevatedButton1.Location = new System.Drawing.Point(340, 252); this.kryptonUACElevatedButton1.Name = "kryptonUACElevatedButton1"; this.kryptonUACElevatedButton1.Size = new System.Drawing.Size(135, 26); this.kryptonUACElevatedButton1.TabIndex = 9; popupPositionValues6.PlacementMode = ComponentFactory.Krypton.Toolkit.PlacementMode.Bottom; this.kryptonUACElevatedButton1.ToolTipValues.ToolTipPosition = popupPositionValues6; this.kryptonUACElevatedButton1.Values.Image = ((System.Drawing.Image)(resources.GetObject("kryptonUACElevatedButton1.Values.Image"))); this.kryptonUACElevatedButton1.Values.Text = "Elevate Now!"; // // kryptonCueComboBox1 // this.kryptonCueComboBox1.CueText = "Test"; this.kryptonCueComboBox1.DropDownWidth = 121; this.kryptonCueComboBox1.Location = new System.Drawing.Point(339, 210); this.kryptonCueComboBox1.Name = "kryptonCueComboBox1"; this.kryptonCueComboBox1.Size = new System.Drawing.Size(121, 21); this.kryptonCueComboBox1.TabIndex = 8; popupPositionValues7.PlacementMode = ComponentFactory.Krypton.Toolkit.PlacementMode.Bottom; this.kryptonCueComboBox1.ToolTipValues.ToolTipPosition = popupPositionValues7; // // kryptonGrid1 // dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(232)))), ((int)(((byte)(246))))); this.kryptonGrid1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; this.kryptonGrid1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216))))); this.kryptonGrid1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.kryptonGrid1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column1, this.Column2, this.Column3, this.Column4 }); dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Navy; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.kryptonGrid1.DefaultCellStyle = dataGridViewCellStyle4; this.kryptonGrid1.Location = new System.Drawing.Point(1076, 17); this.kryptonGrid1.Name = "kryptonGrid1"; this.kryptonGrid1.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.Transparent; this.kryptonGrid1.RowTemplate.DefaultCellStyle.SelectionForeColor = System.Drawing.Color.Navy; this.kryptonGrid1.Size = new System.Drawing.Size(240, 150); this.kryptonGrid1.TabIndex = 7; // // Column1 // this.Column1.HeaderText = "Column1"; this.Column1.Name = "Column1"; // // Column2 // this.Column2.HeaderText = "Column2"; this.Column2.Name = "Column2"; // // Column3 // this.Column3.HeaderText = "Column3"; this.Column3.Name = "Column3"; // // Column4 // this.Column4.HeaderText = "Column4"; this.Column4.Name = "Column4"; // // outlookBar1 // this.outlookBar1.ButtonColourHoveringBottom = System.Drawing.Color.Empty; this.outlookBar1.ButtonColourHoveringTop = System.Drawing.Color.Empty; this.outlookBar1.ButtonColourPassiveBottom = System.Drawing.Color.Empty; this.outlookBar1.ButtonColourPassiveTop = System.Drawing.Color.Empty; this.outlookBar1.ButtonColourSelectedAndHoveringBottom = System.Drawing.Color.Empty; this.outlookBar1.ButtonColourSelectedAndHoveringTop = System.Drawing.Color.Empty; this.outlookBar1.ButtonColourSelectedBottom = System.Drawing.Color.Empty; this.outlookBar1.ButtonColourSelectedTop = System.Drawing.Color.Empty; this.outlookBar1.ButtonHeight = 35; this.outlookBar1.ForeColourSelected = System.Drawing.Color.Empty; this.outlookBar1.Location = new System.Drawing.Point(525, 161); this.outlookBar1.MinimumSize = new System.Drawing.Size(16, 43); this.outlookBar1.Name = "outlookBar1"; this.outlookBar1.OutlookBarLineColour = System.Drawing.Color.Empty; this.outlookBar1.Renderer = ExtendedControls.ExtendedToolkit.Controls.Navigator.Controls.Renderer.Custom; this.outlookBar1.Size = new System.Drawing.Size(75, 43); this.outlookBar1.TabIndex = 6; this.outlookBar1.Text = "outlookBar1"; // // roundedTextbox1 // this.roundedTextbox1.BackColor = System.Drawing.Color.Transparent; this.roundedTextbox1.Brush = System.Drawing.Color.White; this.roundedTextbox1.Font = new System.Drawing.Font("Segoe UI", 11F); this.roundedTextbox1.ForeColor = System.Drawing.Color.Black; this.roundedTextbox1.Location = new System.Drawing.Point(340, 164); this.roundedTextbox1.Name = "roundedTextbox1"; this.roundedTextbox1.Size = new System.Drawing.Size(179, 40); this.roundedTextbox1.TabIndex = 5; this.roundedTextbox1.Text = "roundedTextbox1"; // // circularProgressBar1 // this.circularProgressBar1.AnimationFunction = WinFormAnimation.KnownAnimationFunctions.Liner; this.circularProgressBar1.AnimationSpeed = 500; this.circularProgressBar1.BackColor = System.Drawing.Color.Transparent; this.circularProgressBar1.Font = new System.Drawing.Font("Segoe UI", 72F, System.Drawing.FontStyle.Bold); this.circularProgressBar1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.circularProgressBar1.InnerColor = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216))))); this.circularProgressBar1.InnerMargin = 2; this.circularProgressBar1.InnerWidth = -1; this.circularProgressBar1.Location = new System.Drawing.Point(13, 164); this.circularProgressBar1.MarqueeAnimationSpeed = 2000; this.circularProgressBar1.Name = "circularProgressBar1"; this.circularProgressBar1.OuterColor = System.Drawing.Color.Gray; this.circularProgressBar1.OuterMargin = -25; this.circularProgressBar1.OuterWidth = 26; this.circularProgressBar1.ProgressColor = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216))))); this.circularProgressBar1.ProgressWidth = 25; this.circularProgressBar1.SecondaryFont = new System.Drawing.Font("Segoe UI", 36F); this.circularProgressBar1.Size = new System.Drawing.Size(320, 320); this.circularProgressBar1.StartAngle = 270; this.circularProgressBar1.SubscriptColor = System.Drawing.Color.FromArgb(((int)(((byte)(166)))), ((int)(((byte)(166)))), ((int)(((byte)(166))))); this.circularProgressBar1.SubscriptMargin = new System.Windows.Forms.Padding(10, -35, 0, 0); this.circularProgressBar1.SubscriptText = ".23"; this.circularProgressBar1.SuperscriptColor = System.Drawing.Color.FromArgb(((int)(((byte)(166)))), ((int)(((byte)(166)))), ((int)(((byte)(166))))); this.circularProgressBar1.SuperscriptMargin = new System.Windows.Forms.Padding(10, 35, 0, 0); this.circularProgressBar1.SuperscriptText = "°C"; this.circularProgressBar1.TabIndex = 4; this.circularProgressBar1.Text = "50"; this.circularProgressBar1.TextMargin = new System.Windows.Forms.Padding(8, 8, 0, 0); this.circularProgressBar1.Value = 68; // // colourComparer1 // this.colourComparer1.BackColor = System.Drawing.Color.Transparent; this.colourComparer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.colourComparer1.Location = new System.Drawing.Point(905, 17); this.colourComparer1.Name = "colourComparer1"; this.colourComparer1.PrimaryColour = System.Drawing.Color.White; this.colourComparer1.SecondaryColour = System.Drawing.Color.Silver; this.colourComparer1.ShowHexadecimalValues = true; this.colourComparer1.Size = new System.Drawing.Size(146, 146); this.colourComparer1.TabIndex = 3; // // schemesColourEditorUserControl1 // this.schemesColourEditorUserControl1.Location = new System.Drawing.Point(619, 13); this.schemesColourEditorUserControl1.Name = "schemesColourEditorUserControl1"; this.schemesColourEditorUserControl1.SelectedColour = System.Drawing.Color.Empty; this.schemesColourEditorUserControl1.Size = new System.Drawing.Size(280, 150); this.schemesColourEditorUserControl1.TabIndex = 2; // // kryptonLxLedControl1 // this.kryptonLxLedControl1.BackColor = System.Drawing.Color.Transparent; this.kryptonLxLedControl1.BackColour_1 = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216))))); this.kryptonLxLedControl1.BackColour_2 = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216))))); this.kryptonLxLedControl1.BevelRate = 0.5F; this.kryptonLxLedControl1.BorderColour = System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(157)))), ((int)(((byte)(189))))); this.kryptonLxLedControl1.FadedColour = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(232)))), ((int)(((byte)(246))))); this.kryptonLxLedControl1.FocusedBorderColour = System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(157)))), ((int)(((byte)(189))))); this.kryptonLxLedControl1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91))))); this.kryptonLxLedControl1.HighlightOpaque = ((byte)(75)); this.kryptonLxLedControl1.Location = new System.Drawing.Point(243, 12); this.kryptonLxLedControl1.Name = "kryptonLxLedControl1"; this.kryptonLxLedControl1.Size = new System.Drawing.Size(369, 145); this.kryptonLxLedControl1.TabIndex = 1; this.kryptonLxLedControl1.Text = "12:00"; // // monthView1 // this.monthView1.ArrowsColour = System.Drawing.SystemColors.Window; this.monthView1.ArrowsSelectedColour = System.Drawing.Color.Gold; this.monthView1.DayBackgroundColour = System.Drawing.Color.Empty; this.monthView1.DayGrayedText = System.Drawing.SystemColors.GrayText; this.monthView1.DaySelectedBackgroundColour = System.Drawing.SystemColors.Highlight; this.monthView1.DaySelectedColour = System.Drawing.SystemColors.WindowText; this.monthView1.DaySelectedTextColour = System.Drawing.SystemColors.HighlightText; this.monthView1.ItemPadding = new System.Windows.Forms.Padding(2); this.monthView1.Location = new System.Drawing.Point(12, 12); this.monthView1.MonthTitleColour = System.Drawing.SystemColors.ActiveCaption; this.monthView1.MonthTitleColourInactive = System.Drawing.SystemColors.InactiveCaption; this.monthView1.MonthTitleTextColour = System.Drawing.SystemColors.ActiveCaptionText; this.monthView1.MonthTitleTextColourInactive = System.Drawing.SystemColors.InactiveCaptionText; this.monthView1.Name = "monthView1"; this.monthView1.Size = new System.Drawing.Size(224, 145); this.monthView1.TabIndex = 0; this.monthView1.Text = "monthView1"; this.monthView1.TodayBorderColour = System.Drawing.Color.Maroon; // // MoreControls // this.ClientSize = new System.Drawing.Size(1450, 777); this.Controls.Add(this.kryptonPanel1); this.Name = "MoreControls"; ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonOutlookGrid1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonCueComboBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGrid1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonLxLedControl1)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SoftwareUpdater)); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonManager1 = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); this.kryptonPalette1 = new ComponentFactory.Krypton.Toolkit.KryptonPalette(this.components); this.klblCurrentState = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kuacbtnInstallUpdate = new KryptonExtendedToolkit.ExtendedToolkit.Controls.KryptonUACElevatedButton(); this.kbtnDownloadUpdate = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnCheckForUpdates = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnOptions = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.klblDownloadingFrom = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kllblDownloadingTo = new ComponentFactory.Krypton.Toolkit.KryptonLinkLabel(); this.klblUpdateType = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.klblUpdateDownloadSize = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.klblCurrentDownloadSpeed = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kbtnViewChecksums = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.pbDownloadProgress = new System.Windows.Forms.ProgressBar(); this.klblDownloadProgressPercenta = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.klblDownloadProgressPercenta); this.kryptonPanel1.Controls.Add(this.pbDownloadProgress); this.kryptonPanel1.Controls.Add(this.kbtnViewChecksums); this.kryptonPanel1.Controls.Add(this.klblCurrentDownloadSpeed); this.kryptonPanel1.Controls.Add(this.klblUpdateDownloadSize); this.kryptonPanel1.Controls.Add(this.klblUpdateType); this.kryptonPanel1.Controls.Add(this.kllblDownloadingTo); this.kryptonPanel1.Controls.Add(this.klblDownloadingFrom); this.kryptonPanel1.Controls.Add(this.kbtnOptions); this.kryptonPanel1.Controls.Add(this.kbtnCancel); this.kryptonPanel1.Controls.Add(this.kbtnCheckForUpdates); this.kryptonPanel1.Controls.Add(this.kbtnDownloadUpdate); this.kryptonPanel1.Controls.Add(this.kuacbtnInstallUpdate); this.kryptonPanel1.Controls.Add(this.klblCurrentState); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1059, 409); this.kryptonPanel1.TabIndex = 0; // // kryptonManager1 // this.kryptonManager1.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue; // // kryptonPalette1 // this.kryptonPalette1.CustomisedKryptonPaletteFilePath = ""; // // klblCurrentState // this.klblCurrentState.Location = new System.Drawing.Point(12, 12); this.klblCurrentState.Name = "klblCurrentState"; this.klblCurrentState.Size = new System.Drawing.Size(33, 26); this.klblCurrentState.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblCurrentState.TabIndex = 0; this.klblCurrentState.Values.Text = "{0}"; // // kuacbtnInstallUpdate // this.kuacbtnInstallUpdate.AutoSize = true; this.kuacbtnInstallUpdate.Location = new System.Drawing.Point(825, 251); this.kuacbtnInstallUpdate.Name = "kuacbtnInstallUpdate"; this.kuacbtnInstallUpdate.Size = new System.Drawing.Size(156, 30); this.kuacbtnInstallUpdate.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kuacbtnInstallUpdate.TabIndex = 1; this.kuacbtnInstallUpdate.Values.Image = ((System.Drawing.Image)(resources.GetObject("kryptonUACElevatedButton1.Values.Image"))); this.kuacbtnInstallUpdate.Values.Text = "Inst&all Update"; this.kuacbtnInstallUpdate.Click += new System.EventHandler(this.kuacbtnInstallUpdate_Click); // // kbtnDownloadUpdate // this.kbtnDownloadUpdate.AutoSize = true; this.kbtnDownloadUpdate.Location = new System.Drawing.Point(825, 251); this.kbtnDownloadUpdate.Name = "kbtnDownloadUpdate"; this.kbtnDownloadUpdate.Size = new System.Drawing.Size(156, 30); this.kbtnDownloadUpdate.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnDownloadUpdate.TabIndex = 1; this.kbtnDownloadUpdate.Values.Text = "&Download Update..."; this.kbtnDownloadUpdate.Click += new System.EventHandler(this.kbtnDownloadUpdate_Click); // // kbtnCheckForUpdates // this.kbtnCheckForUpdates.AutoSize = true; this.kbtnCheckForUpdates.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnCheckForUpdates.Location = new System.Drawing.Point(825, 251); this.kbtnCheckForUpdates.Name = "kbtnCheckForUpdates"; this.kbtnCheckForUpdates.Size = new System.Drawing.Size(156, 30); this.kbtnCheckForUpdates.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCheckForUpdates.TabIndex = 2; this.kbtnCheckForUpdates.Values.Text = "C&heck for Updates..."; this.kbtnCheckForUpdates.Click += new System.EventHandler(this.kbtnCheckForUpdates_Click); // // kbtnCancel // this.kbtnCancel.AutoSize = true; this.kbtnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnCancel.Location = new System.Drawing.Point(987, 251); this.kbtnCancel.Name = "kbtnCancel"; this.kbtnCancel.Size = new System.Drawing.Size(60, 30); this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.TabIndex = 3; this.kbtnCancel.Values.Text = "C&ancel"; // // kbtnOptions // this.kbtnOptions.AutoSize = true; this.kbtnOptions.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnOptions.Location = new System.Drawing.Point(750, 251); this.kbtnOptions.Name = "kbtnOptions"; this.kbtnOptions.Size = new System.Drawing.Size(69, 30); this.kbtnOptions.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnOptions.TabIndex = 4; this.kbtnOptions.Values.Text = "Op&tions"; // // klblDownloadingFrom // this.klblDownloadingFrom.Location = new System.Drawing.Point(12, 61); this.klblDownloadingFrom.Name = "klblDownloadingFrom"; this.klblDownloadingFrom.Size = new System.Drawing.Size(33, 26); this.klblDownloadingFrom.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblDownloadingFrom.TabIndex = 5; this.klblDownloadingFrom.Values.Text = "{0}"; // // kllblDownloadingTo // this.kllblDownloadingTo.Location = new System.Drawing.Point(12, 110); this.kllblDownloadingTo.Name = "kllblDownloadingTo"; this.kllblDownloadingTo.Size = new System.Drawing.Size(33, 26); this.kllblDownloadingTo.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kllblDownloadingTo.TabIndex = 6; this.kllblDownloadingTo.Values.Text = "{0}"; this.kllblDownloadingTo.LinkClicked += new System.EventHandler(this.kllblDownloadingTo_LinkClicked); // // klblUpdateType // this.klblUpdateType.Location = new System.Drawing.Point(12, 159); this.klblUpdateType.Name = "klblUpdateType"; this.klblUpdateType.Size = new System.Drawing.Size(33, 26); this.klblUpdateType.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblUpdateType.TabIndex = 7; this.klblUpdateType.Values.Text = "{0}"; // // klblUpdateDownloadSize // this.klblUpdateDownloadSize.Location = new System.Drawing.Point(406, 159); this.klblUpdateDownloadSize.Name = "klblUpdateDownloadSize"; this.klblUpdateDownloadSize.Size = new System.Drawing.Size(33, 26); this.klblUpdateDownloadSize.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblUpdateDownloadSize.TabIndex = 8; this.klblUpdateDownloadSize.Values.Text = "{0}"; // // klblCurrentDownloadSpeed // this.klblCurrentDownloadSpeed.Location = new System.Drawing.Point(790, 159); this.klblCurrentDownloadSpeed.Name = "klblCurrentDownloadSpeed"; this.klblCurrentDownloadSpeed.Size = new System.Drawing.Size(33, 26); this.klblCurrentDownloadSpeed.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblCurrentDownloadSpeed.TabIndex = 9; this.klblCurrentDownloadSpeed.Values.Text = "{0}"; // // kbtnViewChecksums // this.kbtnViewChecksums.AutoSize = true; this.kbtnViewChecksums.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnViewChecksums.Location = new System.Drawing.Point(611, 251); this.kbtnViewChecksums.Name = "kbtnViewChecksums"; this.kbtnViewChecksums.Size = new System.Drawing.Size(133, 30); this.kbtnViewChecksums.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnViewChecksums.TabIndex = 10; this.kbtnViewChecksums.Values.Text = "&View Checksums"; // // pbDownloadProgress // this.pbDownloadProgress.Location = new System.Drawing.Point(12, 205); this.pbDownloadProgress.Name = "pbDownloadProgress"; this.pbDownloadProgress.Size = new System.Drawing.Size(974, 26); this.pbDownloadProgress.TabIndex = 11; // // klblDownloadProgressPercenta // this.klblDownloadProgressPercenta.Location = new System.Drawing.Point(992, 205); this.klblDownloadProgressPercenta.Name = "klblDownloadProgressPercenta"; this.klblDownloadProgressPercenta.Size = new System.Drawing.Size(33, 26); this.klblDownloadProgressPercenta.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblDownloadProgressPercenta.TabIndex = 12; this.klblDownloadProgressPercenta.Target = this.pbDownloadProgress; this.klblDownloadProgressPercenta.Values.Text = "{0}"; // // SoftwareUpdater // this.ClientSize = new System.Drawing.Size(1059, 409); this.Controls.Add(this.kryptonPanel1); this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SoftwareUpdater"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "{0} Software Updater"; this.Load += new System.EventHandler(this.SoftwareUpdater_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ThemeSelector)); this.kpnlButtons = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kbtnRestoreToDefaults = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnOk = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnApply = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.pnlSeperator = new System.Windows.Forms.Panel(); this.kpnlContent = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kbtnTry = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnBrowse = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.ktxtCustomPath = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); this.klblCustomTheme = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kcmbPaletteTheme = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.palette = new ComponentFactory.Krypton.Toolkit.KryptonPalette(this.components); this.kman = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); ((System.ComponentModel.ISupportInitialize)(this.kpnlButtons)).BeginInit(); this.kpnlButtons.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kpnlContent)).BeginInit(); this.kpnlContent.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kcmbPaletteTheme)).BeginInit(); this.SuspendLayout(); // // kpnlButtons // this.kpnlButtons.Controls.Add(this.kbtnRestoreToDefaults); this.kpnlButtons.Controls.Add(this.kbtnCancel); this.kpnlButtons.Controls.Add(this.kbtnOk); this.kpnlButtons.Controls.Add(this.kbtnApply); this.kpnlButtons.Dock = System.Windows.Forms.DockStyle.Bottom; this.kpnlButtons.Location = new System.Drawing.Point(0, 146); this.kpnlButtons.Name = "kpnlButtons"; this.kpnlButtons.Size = new System.Drawing.Size(785, 54); this.kpnlButtons.TabIndex = 1; // // kbtnRestoreToDefaults // this.kbtnRestoreToDefaults.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.kbtnRestoreToDefaults.Enabled = false; this.kbtnRestoreToDefaults.Location = new System.Drawing.Point(16, 12); this.kbtnRestoreToDefaults.Name = "kbtnRestoreToDefaults"; this.kbtnRestoreToDefaults.Size = new System.Drawing.Size(163, 30); this.kbtnRestoreToDefaults.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnRestoreToDefaults.TabIndex = 3; this.kbtnRestoreToDefaults.Values.Text = "&Restore to Defaults"; this.kbtnRestoreToDefaults.Click += new System.EventHandler(this.kbtnRestoreToDefaults_Click); // // kbtnCancel // this.kbtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.kbtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.kbtnCancel.Location = new System.Drawing.Point(587, 12); this.kbtnCancel.Name = "kbtnCancel"; this.kbtnCancel.Size = new System.Drawing.Size(90, 30); this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.TabIndex = 2; this.kbtnCancel.Values.Text = "&Cancel"; this.kbtnCancel.Click += new System.EventHandler(this.kbtnCancel_Click); // // kbtnOk // this.kbtnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.kbtnOk.Location = new System.Drawing.Point(491, 12); this.kbtnOk.Name = "kbtnOk"; this.kbtnOk.Size = new System.Drawing.Size(90, 30); this.kbtnOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnOk.TabIndex = 1; this.kbtnOk.Values.Text = "&Ok"; this.kbtnOk.Click += new System.EventHandler(this.kbtnOk_Click); // // kbtnApply // this.kbtnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.kbtnApply.Enabled = false; this.kbtnApply.Location = new System.Drawing.Point(683, 12); this.kbtnApply.Name = "kbtnApply"; this.kbtnApply.Size = new System.Drawing.Size(90, 30); this.kbtnApply.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnApply.TabIndex = 0; this.kbtnApply.Values.Text = "A&pply"; this.kbtnApply.Click += new System.EventHandler(this.kbtnApply_Click); // // pnlSeperator // this.pnlSeperator.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.pnlSeperator.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnlSeperator.Location = new System.Drawing.Point(0, 143); this.pnlSeperator.Name = "pnlSeperator"; this.pnlSeperator.Size = new System.Drawing.Size(785, 3); this.pnlSeperator.TabIndex = 3; // // kpnlContent // this.kpnlContent.Controls.Add(this.kbtnTry); this.kpnlContent.Controls.Add(this.kbtnBrowse); this.kpnlContent.Controls.Add(this.ktxtCustomPath); this.kpnlContent.Controls.Add(this.klblCustomTheme); this.kpnlContent.Controls.Add(this.kcmbPaletteTheme); this.kpnlContent.Controls.Add(this.kryptonLabel1); this.kpnlContent.Dock = System.Windows.Forms.DockStyle.Fill; this.kpnlContent.Location = new System.Drawing.Point(0, 0); this.kpnlContent.Name = "kpnlContent"; this.kpnlContent.Size = new System.Drawing.Size(785, 143); this.kpnlContent.TabIndex = 4; // // kbtnTry // this.kbtnTry.AutoSize = true; this.kbtnTry.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnTry.Enabled = false; this.kbtnTry.Location = new System.Drawing.Point(733, 87); this.kbtnTry.Name = "kbtnTry"; this.kbtnTry.Size = new System.Drawing.Size(34, 30); this.kbtnTry.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnTry.TabIndex = 5; this.kbtnTry.Values.Text = "T&ry"; this.kbtnTry.Click += new System.EventHandler(this.kbtnTry_Click); // // kbtnBrowse // this.kbtnBrowse.AutoSize = true; this.kbtnBrowse.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnBrowse.Enabled = false; this.kbtnBrowse.Location = new System.Drawing.Point(744, 51); this.kbtnBrowse.Name = "kbtnBrowse"; this.kbtnBrowse.Size = new System.Drawing.Size(23, 30); this.kbtnBrowse.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnBrowse.TabIndex = 4; this.kbtnBrowse.Values.Text = ".&.."; this.kbtnBrowse.Click += new System.EventHandler(this.kbtnBrowse_Click); // // ktxtCustomPath // this.ktxtCustomPath.Enabled = false; this.ktxtCustomPath.Location = new System.Drawing.Point(248, 52); this.ktxtCustomPath.Name = "ktxtCustomPath"; this.ktxtCustomPath.Size = new System.Drawing.Size(490, 29); this.ktxtCustomPath.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ktxtCustomPath.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.ktxtCustomPath.TabIndex = 3; this.ktxtCustomPath.TextChanged += new System.EventHandler(this.ktxtCustomPath_TextChanged); // // klblCustomTheme // this.klblCustomTheme.Enabled = false; this.klblCustomTheme.Location = new System.Drawing.Point(38, 55); this.klblCustomTheme.Name = "klblCustomTheme"; this.klblCustomTheme.Size = new System.Drawing.Size(204, 26); this.klblCustomTheme.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblCustomTheme.TabIndex = 2; this.klblCustomTheme.Values.Text = "Custom Theme File Path:"; // // kcmbPaletteTheme // this.kcmbPaletteTheme.DropDownWidth = 216; this.kcmbPaletteTheme.IntegralHeight = false; this.kcmbPaletteTheme.Location = new System.Drawing.Point(147, 12); this.kcmbPaletteTheme.Name = "kcmbPaletteTheme"; this.kcmbPaletteTheme.Size = new System.Drawing.Size(216, 27); this.kcmbPaletteTheme.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcmbPaletteTheme.StateCommon.ComboBox.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near; this.kcmbPaletteTheme.TabIndex = 1; this.kcmbPaletteTheme.TextChanged += new System.EventHandler(this.kcmbPaletteTheme_TextChanged); // // kryptonLabel1 // this.kryptonLabel1.Location = new System.Drawing.Point(12, 12); this.kryptonLabel1.Name = "kryptonLabel1"; this.kryptonLabel1.Size = new System.Drawing.Size(128, 26); this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel1.TabIndex = 0; this.kryptonLabel1.Values.Text = "Palette Theme:"; // // palette // this.palette.CustomisedKryptonPaletteFilePath = null; // // ThemeSelector // this.ClientSize = new System.Drawing.Size(785, 200); this.Controls.Add(this.kpnlContent); this.Controls.Add(this.pnlSeperator); this.Controls.Add(this.kpnlButtons); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ThemeSelector"; this.Text = "Palette Theme Selector"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ThemeSelector_FormClosing); this.Load += new System.EventHandler(this.ThemeSelector_Load); ((System.ComponentModel.ISupportInitialize)(this.kpnlButtons)).EndInit(); this.kpnlButtons.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kpnlContent)).EndInit(); this.kpnlContent.ResumeLayout(false); this.kpnlContent.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kcmbPaletteTheme)).EndInit(); this.ResumeLayout(false); }
public static void SetPalette(KryptonForm kryptonForm, KryptonManager kryptonManager, IPalette newKryptonPalette, bool isSystemPalette, bool enableDropShadow) { KryptonPalette kryptonPalette = new KryptonPalette(); kryptonPalette.Import(((KryptonPalette)newKryptonPalette).Export(false, true)); //Make a copy kryptonManager.GlobalPalette = kryptonPalette; kryptonForm.UseDropShadow = enableDropShadow; if (isSystemPalette) { switch (((KryptonPalette)newKryptonPalette).BasePaletteMode) { case PaletteMode.Office2007Black: case PaletteMode.Office2010Black: case PaletteMode.Office365Black: //ColumnHeader - Normal - 0 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackHeaderNormal(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextHeaderNormal(null); //ColumnHeader - Warning - 1 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom1.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackHeaderWarning(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom1.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextHeaderWarning(null); //ColumnHeader - Error - 2 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackCellError(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextCellError(null); //ColumnHeader - Image - 3 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackCellImage(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextCellImage(null); //Cell - Editable - (Normal / Favorite) - 0 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellNormal(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellNormal(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Back.Color2 = DataGridViewHandler.ColorBackCellFavorite(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Content.Color2 = DataGridViewHandler.ColorTextCellFavorite(null); //Cell - ReadOnly - 0 (Normal / Favorite) ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellReadOnly(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellReadOnly(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Back.Color2 = DataGridViewHandler.ColorBackCellFavoriteReadOnly(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Content.Color2 = DataGridViewHandler.ColorTextCellFavoriteReadOnly(null); //Cell - Warning - 1 //Cell - Error - 2 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateNormal.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellError(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateNormal.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellError(null); //Cell - RegionFace - 3 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateNormal.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellImage(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateNormal.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellImage(null); break; case PaletteMode.Office2007Blue: case PaletteMode.Office2007Silver: case PaletteMode.Office2007White: case PaletteMode.Office2010Blue: case PaletteMode.Office2010Silver: case PaletteMode.Office2010White: case PaletteMode.Office2013White: case PaletteMode.Office365Blue: case PaletteMode.Office365Silver: case PaletteMode.Office365White: case PaletteMode.ProfessionalOffice2003: case PaletteMode.ProfessionalSystem: case PaletteMode.SparkleBlue: case PaletteMode.SparkleOrange: case PaletteMode.SparklePurple: //ColumnHeader - Normal - 0 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackHeaderNormal(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextHeaderNormal(null); //ColumnHeader - Warning - 1 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom1.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackHeaderWarning(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom1.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextHeaderWarning(null); //ColumnHeader - Error - 2 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackCellError(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextCellError(null); //ColumnHeader - Image - 3 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateCommon.HeaderColumn.Back.Color1 = DataGridViewHandler.ColorBackCellImage(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateCommon.HeaderColumn.Content.Color1 = DataGridViewHandler.ColorTextCellImage(null); //Cell - Editable - (Normal / Favorite) - 0 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellNormal(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellNormal(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Back.Color2 = DataGridViewHandler.ColorBackCellFavorite(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateNormal.DataCell.Content.Color2 = DataGridViewHandler.ColorTextCellFavorite(null); //Cell - ReadOnly - 0 (Normal / Favorite) ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellReadOnly(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellReadOnly(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Back.Color2 = DataGridViewHandler.ColorBackCellFavoriteReadOnly(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCommon.StateDisabled.DataCell.Content.Color2 = DataGridViewHandler.ColorTextCellFavoriteReadOnly(null); //Cell - Warning - 1 //Cell - Error - 2 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateNormal.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellError(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom2.StateNormal.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellError(null); //Cell - RegionFace - 3 ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateNormal.DataCell.Back.Color1 = DataGridViewHandler.ColorBackCellImage(null); ((KryptonPalette)kryptonManager.GlobalPalette).GridStyles.GridCustom3.StateNormal.DataCell.Content.Color1 = DataGridViewHandler.ColorTextCellImage(null); break; default: throw new NotImplementedException(); } } }