private void DockSavingLoading_Mainform_Load(object sendr, EventArgs e) { //Setup DockPanelSuite theme. //Has to be here so its applied before anything. VS2015LightTheme theme = new VS2015LightTheme(); MainDock.Theme = theme; try { _mDeserlise = GetContentFromPersistString; try { if (File.Exists(ApplicationFiles + "/configs/docksInfo.xml")) { MainDock.LoadFromXml(ApplicationFiles + "/configs/docksInfo.xml", _mDeserlise); } } catch (Exception) { //None. } } catch (Exception ex) { MessageBox.Show(Convert.ToString("Error Loading Docks: " + "\r\n" + ex.Message)); } }
/// <summary> /// Initializes a new instance of the <see cref="VisualStudioLightTheme"/>. /// </summary> public VisualStudioLightTheme() { mApplicationTheme = new VS2015LightTheme(); mColorPalette = new VisualStudioLightPalette(); mMetrics = new VisualStudioLightMetrics(); mResources = new VisualStudioLightResources(); }
public void ApplyVisualStyle(string visualStyle) { if (visualStyle == "Classic") { var theme = new VS2005Theme(); dockPanel.Theme = theme; theme.ApplyTo(dockPanel); ToolStripManager.Renderer = VisualStyles.SystemToolStripRenderers.ToolStripSquaredEdgesRenderer; ToolStripManager.VisualStylesEnabled = false; } else if (visualStyle == "Light") { var theme = new VS2015LightTheme(); dockPanel.Theme = theme; theme.ApplyTo(dockPanel); ToolStripManager.VisualStylesEnabled = true; ToolStripManager.Renderer = new VisualStyles.VS2012ToolStripRenderer(); } else // Blue { var theme = new VS2015BlueTheme(); dockPanel.Theme = theme; theme.ApplyTo(dockPanel); ToolStripManager.VisualStylesEnabled = true; ToolStripManager.Renderer = new VisualStyles.VS2015ToolStripRenderer(); } }
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; }
public FetchXmlBuilder() { InitializeComponent(); // Tips to handle all errors from // https://stackoverflow.com/questions/5762526/how-can-i-make-something-that-catches-all-unhandled-exceptions-in-a-winforms-a // Add the event handler for handling non-UI thread exceptions to the event. //AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(Error_UnhandledException); ai = new AppInsights(aiEndpoint, aiKey, Assembly.GetExecutingAssembly(), "FetchXML Builder"); var theme = new VS2015LightTheme(); dockContainer.Theme = theme; dockContainer.Theme.Skin.DockPaneStripSkin.TextFont = Font; //dockContainer.DockBackColor = SystemColors.Window; MetadataExtensions.attributeProperties = MetadataExtensions.attributeProperties.Union(new string[] { "DisplayName", "AttributeType", "IsValidForRead", "AttributeOf", "IsManaged", "IsCustomizable", "IsCustomAttribute", "IsValidForAdvancedFind", "IsPrimaryId", "IsPrimaryName", "OptionSet", "SchemaName", "Targets", "IsLogical", "EntityLogicalName" }).ToArray(); LoadSetting(); }
/// <summary> /// コンストラクタ /// </summary> public MainMDIForm() { _log.Info(this.Text + " Initialize"); InitializeComponent(); //①見た目をMaterial風Skinに設定 _log.Debug("MaterialSkin表示設定"); MaterialSkinManager materialSkinManager = MaterialSkinManager.Instance; materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT; materialSkinManager.ColorScheme = new ColorScheme( Primary.Blue800, Primary.Blue900, Primary.Blue500, Accent.LightBlue200, TextShade.WHITE ); //②MDIコンテナ表示の設定 _log.Debug("MDIコンテナ表示設定"); this.IsMdiContainer = true; var theme = new VS2015LightTheme(); theme.Measures.DockPadding = 0; theme.Measures.SplitterSize = 2; this.uxMainDockPanel.Theme = theme; }
private void SetTheme() { if (XrmToolBox.Options.Instance.Theme != null) { switch (XrmToolBox.Options.Instance.Theme) { case "Blue theme": { var theme = new VS2015BlueTheme(); dpMain.Theme = theme; } break; case "Light theme": { var theme = new VS2015LightTheme(); dpMain.Theme = theme; } break; case "Dark theme": { var theme = new VS2015DarkTheme(); dpMain.Theme = theme; } break; } } }
public FrmMain() { InitializeComponent(); var theme = new VS2015LightTheme(); dockPanel1.Theme = theme; }
private void InitializeDockPanel() { // Workaround for crash, when form is MDI // https://github.com/jacobslusser/ScintillaNET/issues/85 Scintilla.SetDestroyHandleBehavior(true); Theme = new VS2015LightTheme(); ShowDocumentIcon = false; ActiveContentChanged += FilesDock_ActiveContentChanged; ContentRemoved += FilesDock_ContentRemoved; }
public PAC() { InitializeComponent(); var theme = new VS2015LightTheme(); dockContainer.Theme = theme; scopeControl = new ScopeControl(this); sarifControl = new SarifControl(this); azureLogin = new AzureLoginDialog(this); solutionSelector = new SolutionDialog(this); }
private void InitializeComponent() { this.vS2015LightTheme1 = new WeifenLuo.WinFormsUI.Docking.VS2015LightTheme(); this.SuspendLayout(); // // LevelViewer // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.ClientSize = new System.Drawing.Size(292, 266); this.Name = "LevelViewer"; this.ResumeLayout(false); }
public FormDockingTest() { InitializeComponent(); this.IsMdiContainer = true; var theme = new VS2015LightTheme(); this.dockPanel1.Theme = theme; Form2 f2 = new Form2(); f2.Show(dockPanel1, DockState.DockLeft); }
public PluginTraceViewer() { InitializeComponent(); var theme = new VS2015LightTheme(); dockContainer.Theme = theme; gridControl = new GridControl(this); filterControl = new FilterControl(this); statsControl = new StatsControl(this); traceControl = new TraceControl(); exceptionControl = new ExceptionControl(); }
protected void Init() { Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); //this.Text = this.Text + " - v" + About.VersionNumber; var theme = new VS2015LightTheme(); this.dockPanel.Theme = theme; Trace.Listeners.Add(new OutputTraceListener(OutputPanel)); OutputPanel.Show(this.dockPanel, DockState.DockBottom); CheckDirectoryPath(); }
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 MuuntEditor() { InitializeComponent(); ThemeBase theme = new VS2015DarkTheme(); if (FormThemes.ActivePreset == FormThemes.Preset.White) { theme = new VS2015LightTheme(); } this.dockPanel1.Theme = theme; this.dockPanel1.BackColor = FormThemes.BaseTheme.FormBackColor; this.BackColor = FormThemes.BaseTheme.FormBackColor; Plugins.Add(new TrackMuuntLoader()); ObjectSelected += OnObjectSelected; }
public Form1() { InitializeComponent(); var theme = new VS2015LightTheme(); this.dockPanel1.Theme = theme; this.IsMdiContainer = true; myForms.FileExplorer fe = new myForms.FileExplorer(dockPanel1); fe.Show(dockPanel1, DockState.DockLeft); myForms.ReconTools rt = new myForms.ReconTools(dockPanel1); rt.Show(dockPanel1, DockState.DockRight); //for (int i = 0; i < 10; i++) //{ // VisualizeSubsForm vs = new VisualizeSubsForm("\\test.txt"); // vs.Show(dockPanel1, DockState.Document); //} //myForms.PingTester pt = new myForms.PingTester(); //pt.Show(dockPanel1, DockState.Document); }
private void InitializePanels() { _dockPanel = new DockPanel(); _vS2015LightTheme = new VS2015LightTheme(); _vS2015BlueTheme = new VS2015BlueTheme(); _vS2015DarkTheme = new VS2015DarkTheme(); _currentTheme = _optionSettings.Theme; ThemeBase currentTheme = _vS2015LightTheme; switch (_currentTheme) { case DockingTheme.LightTheme: currentTheme = _vS2015LightTheme; break; case DockingTheme.BlueTheme: currentTheme = _vS2015BlueTheme; break; case DockingTheme.DarkTheme: currentTheme = _vS2015DarkTheme; break; } _dockPanel.Dock = DockStyle.Fill; _dockPanel.DockBackColor = Color.White; _dockPanel.DockBottomPortion = 300D; _dockPanel.DockLeftPortion = 300D; _dockPanel.DockRightPortion = 300D; _dockPanel.DockTopPortion = 150D; _dockPanel.Font = new Font("Tahoma", 12F, FontStyle.Regular, GraphicsUnit.World, 0); _dockPanel.Location = new Point(0, 49); _dockPanel.Name = "dockPanel"; _dockPanel.Padding = new Padding(6); _dockPanel.RightToLeftLayout = true; _dockPanel.ShowAutoHideContentOnHover = true; _dockPanel.Size = new Size(this.Width - 10, this.Height - 10); _dockPanel.TabIndex = 0; _dockPanel.Theme = currentTheme; _dockPanel.DocumentStyle = DocumentStyle.DockingWindow; _dockPanel.ShowDocumentIcon = true; _dockPanel.AllowEndUserDocking = false; _dockPanel.AllowEndUserNestedDocking = false; this.Controls.Add(_dockPanel); _vS2015LightTheme.Skin.DockPaneStripSkin.TextFont = new Font("Segoe UI", 16F, FontStyle.Regular, GraphicsUnit.World, 0); _vS2015BlueTheme.Skin.DockPaneStripSkin.TextFont = new Font("Segoe UI", 16F, FontStyle.Regular, GraphicsUnit.World, 0); _vS2015DarkTheme.Skin.DockPaneStripSkin.TextFont = new Font("Segoe UI", 16F, FontStyle.Regular, GraphicsUnit.World, 0); _debugPanel = new DebugDockPanel(); _debugPanel.Text = "Debugging"; _debugPanel.Show(_dockPanel, DockState.DockBottomAutoHide); //_testPanel = new TestDockPanel(); //_testPanel.Text = "Test"; //_testPanel.Show(_dockPanel, DockState.Document); _inputPanel = new SvgInputDockPanel(); _inputPanel.Text = "Svg Input"; _inputPanel.Show(_dockPanel, DockState.Document); _settingsPanel = new SettingsDockPanel(); _settingsPanel.Text = "Settings"; _settingsPanel.Show(_inputPanel.Pane, null); var dockPanels = new DockPanelContent[] { _debugPanel, _inputPanel, _settingsPanel }; foreach (var dockPanel in dockPanels) { dockPanel.InitializePanel(this, _optionSettings, currentTheme); } _dockPanel.ActiveContentChanged += OnDockPanelActiveContentChanged; _dockPanel.ActiveDocumentChanged += OnDockPanelActiveDocumentChanged; _dockPanel.ActivePaneChanged += OnDockPanelActivePaneChanged; _inputPanel.Activate(); }
public LayoutEditor() { InitializeComponent(); chkAutoKey.Enabled = false; chkAutoKey.ForeColor = FormThemes.BaseTheme.FormForeColor; CustomMapper = new LayoutCustomPaneMapper(); Textures = new Dictionary <string, STGenericTexture>(); ThemeBase theme = new VS2015DarkTheme(); if (FormThemes.ActivePreset == FormThemes.Preset.White) { theme = new VS2015LightTheme(); } this.dockPanel1.Theme = theme; this.dockPanel1.BackColor = FormThemes.BaseTheme.FormBackColor; this.BackColor = FormThemes.BaseTheme.FormBackColor; redoToolStripMenuItem.Enabled = false; undoToolStripMenuItem.Enabled = false; viewportBackColorCB.Items.Add("Back Color : Default"); viewportBackColorCB.Items.Add("Back Color : Custom"); orthographicViewToolStripMenuItem.Checked = true; editorModeCB.Items.Add("Normal"); editorModeCB.Items.Add("Animation"); editorModeCB.SelectedIndex = 0; foreach (var type in Enum.GetValues(typeof(Runtime.LayoutEditor.DebugShading)).Cast <Runtime.LayoutEditor.DebugShading>()) { debugShading.Items.Add(type); } debugShading.SelectedItem = Runtime.LayoutEditor.Shading; displayNullPanesToolStripMenuItem.Checked = Runtime.LayoutEditor.DisplayNullPane; displayyBoundryPanesToolStripMenuItem.Checked = Runtime.LayoutEditor.DisplayBoundryPane; displayPicturePanesToolStripMenuItem.Checked = Runtime.LayoutEditor.DisplayPicturePane; displayWindowPanesToolStripMenuItem.Checked = Runtime.LayoutEditor.DisplayWindowPane; renderInGamePreviewToolStripMenuItem.Checked = Runtime.LayoutEditor.IsGamePreview; displayGridToolStripMenuItem.Checked = Runtime.LayoutEditor.DisplayGrid; displayTextPanesToolStripMenuItem.Checked = Runtime.LayoutEditor.DisplayTextPane; transformChildrenToolStripMenuItem.Checked = Runtime.LayoutEditor.TransformChidlren; viewPartsAsNullPanesToolStripMenuItem.Checked = Runtime.LayoutEditor.PartsAsNullPanes; ObjectSelected += OnObjectSelected; ObjectChanged += OnObjectChanged; if (Runtime.LayoutEditor.BackgroundColor != Color.FromArgb(130, 130, 130)) { viewportBackColorCB.SelectedIndex = 1; } else { viewportBackColorCB.SelectedIndex = 0; } }
public LightTheme() { PanelTheme = new VS2015LightTheme(); MenuTheme = new MenuTheme.LightTheme(); }
public Pad2DMainPanel() { Theme = new VS2015LightTheme(); bool loaded = false; if (File.Exists("layout2d.xml")) { try { LoadFromXml("layout2d.xml", (x) => { var tps = Assembly.GetExecutingAssembly().GetTypes(); var fr = tps.First(z => z.FullName.Contains(x)); var ret = Activator.CreateInstance(fr) as IDockContent; if (ret is Viewer2DDockPanel vv) { view = vv; } if (ret is OtherOperationsDockPanel oo) { other = oo; } if (ret is PropertiesListDockPanel p1) { prop = p1; } if (ret is NFPOperationsDockPanel _nfp) { nfp = _nfp; } if (ret is PointsListDockPanel pll) { points = pll; } if (ret is PolyBoolListDockPanel pbb) { pbPanel = pbb; } if (ret is ClipperOperationsDockPanel clp) { clipper = clp; } if (ret is DebugDockPanel dbg) { debug = dbg; } if (ret is HelpersListDockPanel hlp) { helpersListPanel = hlp; } return(ret); }); loaded = true; } catch (Exception ex) { } } if (!loaded) { pbPanel = new PolyBoolListDockPanel(); other = new OtherOperationsDockPanel(); clipper = new ClipperOperationsDockPanel(); nfp = new NFPOperationsDockPanel(); debug = new DebugDockPanel(); points = new PointsListDockPanel(); pbPanel.Show(this, DockState.DockBottom); clipper.Show(this, DockState.DockBottom); nfp.Show(this, DockState.DockBottom); debug.Show(this, DockState.DockBottom); points.Show(this, DockState.DockBottom); helpersListPanel = new HelpersListDockPanel(); view = new Viewer2DDockPanel(); view.Show(this, DockState.Document); helpersListPanel.Show(this, DockState.DockRight); prop = new PropertiesListDockPanel(); prop.Show(this, DockState.DockBottom); other.Show(this, DockState.DockBottom); } }