public ZMusicMagicForm() { InitializeComponent(); AutoScaleMode = AutoScaleMode.Dpi; #if !DEBUG SetSplashScreen(); #endif CreateStandardControls(); this.vsToolStripExtender1 = new VisualStudioToolStripExtender(this.components); this.vsToolStripExtender1.DefaultRenderer = _toolStripProfessionalRenderer; var theme = new VS2015LightTheme(); this.dockpanel = new WeifenLuo.WinFormsUI.Docking.DockPanel(); this.dockpanel.Dock = DockStyle.Fill; this.dockpanel.DocumentStyle = DocumentStyle.DockingMdi; this.dockpanel.Theme = theme; this.EnableVSRenderer(VisualStudioToolStripExtender.VsVersion.Vs2015, theme); this.Controls.Add(this.dockpanel); this.Controls.SetChildIndex(this.dockpanel, 0); m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString); this.Text = formName; }
private new void ApplyTheme() { if (!ThemeManager.getInstance().ThemingActive) { connDock.Theme = ThemeManager.getInstance().DefaultTheme.Theme; return; } base.ApplyTheme(); try { connDock.Theme = ThemeManager.getInstance().ActiveTheme.Theme; } catch (Exception ex) { Runtime.MessageCollector.AddExceptionMessage("UI.Window.ConnectionWindow.ApplyTheme() failed", ex); } vsToolStripExtender = new VisualStudioToolStripExtender(components) { DefaultRenderer = _toolStripProfessionalRenderer }; vsToolStripExtender.SetStyle(cmenTab, ThemeManager.getInstance().ActiveTheme.Version, ThemeManager.getInstance().ActiveTheme.Theme); if (!ThemeManager.getInstance().ActiveAndExtended) { return; } connDock.DockBackColor = ThemeManager.getInstance().ActiveTheme.ExtendedPalette.getColor("Tab_Item_Background"); }
public CandleForm() { InitializeComponent(); var extender = new VisualStudioToolStripExtender(); extender.SetStyle(toolStrip1, VisualStudioToolStripExtender.VsVersion.Vs2015, new VS2015BlueTheme()); }
public BalanceForm() { InitializeComponent(); SetupColumns(); var extender = new VisualStudioToolStripExtender(); extender.SetStyle(tsBalance, VisualStudioToolStripExtender.VsVersion.Vs2015, new VS2015BlueTheme()); }
public MainForm() { InitializeComponent(); dockPanel.Theme = Theme; dockContent = GetContentFromPersistString; var extender = new VisualStudioToolStripExtender(); extender.SetStyle(tsMain, VisualStudioToolStripExtender.VsVersion.Vs2015, Theme); extender.SetStyle(stMain, VisualStudioToolStripExtender.VsVersion.Vs2015, Theme); }
private new void ApplyTheme() { if (ThemeManager.getInstance().ThemingActive) { base.ApplyTheme(); this.vsToolStripExtender = new WeifenLuo.WinFormsUI.Docking.VisualStudioToolStripExtender(this.components); vsToolStripExtender.DefaultRenderer = _toolStripProfessionalRenderer; vsToolStripExtender.SetStyle(cmenTab, ThemeManager.getInstance().ActiveTheme.Version, ThemeManager.getInstance().ActiveTheme.Theme); TabController.BackColor = ThemeManager.getInstance().ActiveTheme.ExtendedPalette.getColor("Tab_Item_Background"); TabController.TextColor = ThemeManager.getInstance().ActiveTheme.ExtendedPalette.getColor("Tab_Item_Foreground"); TabController.TextInactiveColor = ThemeManager.getInstance().ActiveTheme.ExtendedPalette.getColor("Tab_Item_Disabled_Foreground"); } }
private new void ApplyTheme() { if (!ThemeManager.getInstance().ThemingActive) { return; } base.ApplyTheme(); vsToolStripExtender = new VisualStudioToolStripExtender(components) { DefaultRenderer = _toolStripProfessionalRenderer }; vsToolStripExtender.SetStyle(cMenScreenshot, ThemeManager.getInstance().ActiveTheme.Version, ThemeManager.getInstance().ActiveTheme.Theme); }
public SvgInputDockPanel() { InitializeComponent(); this.AutoScaleMode = AutoScaleMode.Dpi; this.DockAreas = DockAreas.Document | DockAreas.Float; this.CloseButton = false; this._vsToolStripExtender = new VisualStudioToolStripExtender(this.components); _vsToolStripExtender.DefaultRenderer = _toolStripProfessionalRenderer; textEditor.DelayedTextChangedInterval = 1000; textEditor.DelayedEventsInterval = 500; textEditor.TextChangedDelayed += OnTextChangedDelayed; }
private void SetStyle() { m_theme = new VS2015LightTheme(); m_toolStripExtender = new VisualStudioToolStripExtender(); m_toolStripExtender.DefaultRenderer = new ToolStripProfessionalRenderer(); this.dockPanel.Theme = this.m_theme; var version = VisualStudioToolStripExtender.VsVersion.Vs2015; m_toolStripExtender.SetStyle(menuStrip, version, m_theme); m_toolStripExtender.SetStyle(toolStrip, version, m_theme); m_toolStripExtender.SetStyle(statusStrip, version, m_theme); if (dockPanel.Theme.ColorPalette != null) { statusStrip.BackColor = dockPanel.Theme.ColorPalette.MainWindowStatusBarDefault.Background; } }
public SvgInputDockPanel() { InitializeComponent(); this.AutoScaleMode = AutoScaleMode.Dpi; this.DockAreas = DockAreas.Document | DockAreas.Float; this.CloseButton = false; this._vsToolStripExtender = new VisualStudioToolStripExtender(this.components); _vsToolStripExtender.DefaultRenderer = _toolStripProfessionalRenderer; //string workingDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); string workingDir = Path.GetFullPath("..\\"); _svgFilePath = Path.Combine(workingDir, SvgFileName); _backFilePath = Path.Combine(workingDir, BackFileName); HighlightingManager.Manager.AddSyntaxModeFileProvider(new ResourceSyntaxModeProvider()); textEditor.ConvertTabsToSpaces = true; textEditor.IsReadOnly = false; textEditor.LineViewerStyle = LineViewerStyle.FullRow; textEditor.ShowEOLMarkers = false; textEditor.ShowHRuler = false; textEditor.ShowSpaces = false; textEditor.ShowTabs = false; textEditor.TabIndex = 0; // textEditor.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; textEditor.Encoding = Encoding.UTF8; textEditor.ShowMatchingBracket = true; textEditor.EnableFolding = true; textEditor.IsIconBarVisible = true; textEditor.TextEditorProperties.Font = new Font("Consolas", 12); textEditor.Document.HighlightingStrategy = HighlightingManager.Manager.FindHighlighter("XML"); textEditor.Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy(); textEditor.Document.FormattingStrategy = new XmlFormattingStrategy(); textEditor.Document.FoldingManager.UpdateFoldings(string.Empty, null); textEditor.Document.DocumentChanged += OnDocumentChanged; }
public SvgInputDockPanel() { InitializeComponent(); this.AutoScaleMode = AutoScaleMode.Dpi; this.DockAreas = DockAreas.Document | DockAreas.Float; this.CloseButton = false; if (this.components == null) { this.components = new System.ComponentModel.Container(); } this._vsToolStripExtender = new VisualStudioToolStripExtender(this.components); _vsToolStripExtender.DefaultRenderer = _toolStripProfessionalRenderer; HighlightingManager.Manager.AddSyntaxModeFileProvider(new ResourceSyntaxModeProvider()); textEditor.ConvertTabsToSpaces = true; textEditor.IsReadOnly = false; textEditor.LineViewerStyle = LineViewerStyle.FullRow; textEditor.ShowEOLMarkers = false; textEditor.ShowHRuler = false; textEditor.ShowSpaces = false; textEditor.ShowTabs = false; textEditor.TabIndex = 0; textEditor.Encoding = Encoding.UTF8; textEditor.ShowMatchingBracket = true; textEditor.EnableFolding = true; textEditor.IsIconBarVisible = true; // textEditor.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; textEditor.TextEditorProperties.Font = new Font("Consolas", 12); textEditor.Document.HighlightingStrategy = HighlightingManager.Manager.FindHighlighter("XML"); textEditor.Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy(); textEditor.Document.FormattingStrategy = new XmlFormattingStrategy(); textEditor.Document.FoldingManager.UpdateFoldings(string.Empty, null); textEditor.Document.DocumentChanged += OnDocumentChanged; }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.تمنمايشToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuItemSchema1 = new System.Windows.Forms.ToolStripMenuItem(); this.menuItemSchema2 = new System.Windows.Forms.ToolStripMenuItem(); this.dockPanel1 = new Atiran.Utility.Docking2.DockPanel(); this.vS2012LightTheme1 = new Atiran.Utility.Docking2.Theme.ThemeVS2012.VS2012LightTheme(); this.vS2005Theme1 = new Atiran.Utility.Docking2.Theme.ThemeVS2005.VS2005Theme(); this.vS2017LightTheme1 = new Atiran.Utility.Docking2.Theme.ThemeVS2017.VS2017LightTheme(); this.visualStudioToolStripExtender1 = new Atiran.Utility.Docking2.VisualStudioToolStripExtender(this.components); this.vS2017DarkTheme1 = new Atiran.Utility.Docking2.Theme.ThemeVS2017.VS2017DarkTheme(); this.menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dockPanel1)).BeginInit(); this.SuspendLayout(); // // button1 // this.button1.Dock = System.Windows.Forms.DockStyle.Top; this.button1.Location = new System.Drawing.Point(0, 24); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(909, 23); this.button1.TabIndex = 2; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Dock = System.Windows.Forms.DockStyle.Top; this.button2.Location = new System.Drawing.Point(0, 47); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(909, 23); this.button2.TabIndex = 4; this.button2.Text = "button2"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.تمنمايشToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(909, 24); this.menuStrip1.TabIndex = 6; this.menuStrip1.Text = "menuStrip1"; // // تمنمايشToolStripMenuItem // this.تمنمايشToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuItemSchema1, this.menuItemSchema2 }); this.تمنمايشToolStripMenuItem.Name = "تمنمايشToolStripMenuItem"; this.تمنمايشToolStripMenuItem.Size = new System.Drawing.Size(77, 20); this.تمنمايشToolStripMenuItem.Text = "طرح نمايش"; // // menuItemSchema1 // this.menuItemSchema1.Name = "menuItemSchema1"; this.menuItemSchema1.Size = new System.Drawing.Size(80, 22); this.menuItemSchema1.Text = "1"; this.menuItemSchema1.Click += new System.EventHandler(this.SetSchema); // // menuItemSchema2 // this.menuItemSchema2.Name = "menuItemSchema2"; this.menuItemSchema2.Size = new System.Drawing.Size(80, 22); this.menuItemSchema2.Text = "2"; this.menuItemSchema2.Click += new System.EventHandler(this.SetSchema); // // dockPanel1 // this.dockPanel1.BackColor = System.Drawing.SystemColors.Control; this.dockPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.dockPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.dockPanel1.DockBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(242))))); this.dockPanel1.Location = new System.Drawing.Point(0, 70); this.dockPanel1.Name = "dockPanel1"; this.dockPanel1.Padding = new System.Windows.Forms.Padding(6); this.dockPanel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.dockPanel1.RightToLeftLayout = true; this.dockPanel1.ShowAutoHideContentOnHover = false; this.dockPanel1.Size = new System.Drawing.Size(909, 364); this.dockPanel1.TabIndex = 8; this.dockPanel1.Theme = this.vS2017LightTheme1; // // visualStudioToolStripExtender1 // this.visualStudioToolStripExtender1.DefaultRenderer = null; // // formtest // this.ClientSize = new System.Drawing.Size(909, 434); this.Controls.Add(this.dockPanel1); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.menuStrip1); this.IsMdiContainer = true; this.MainMenuStrip = this.menuStrip1; this.Name = "formtest"; this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dockPanel1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }