/// <summary> /// Initializes a new instance of the <see cref="VisualStudioDarkTheme"/>. /// </summary> public VisualStudioDarkTheme() { mApplicationTheme = new VS2015DarkTheme(); mColorPalette = new VisualStudioDarkPalette(); mMetrics = new VisualStudioDarkMetrics(); mResources = new VisualStudioDarkResources(); }
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 LayoutEditor() { IsSaving = false; InitializeComponent(); Textures = new Dictionary <string, STGenericTexture>(); var theme = new VS2015DarkTheme(); this.dockPanel1.Theme = theme; this.dockPanel1.BackColor = FormThemes.BaseTheme.FormBackColor; this.BackColor = FormThemes.BaseTheme.FormBackColor; viewportBackColorCB.Items.Add("Back Color : Default"); viewportBackColorCB.Items.Add("Back Color : Custom"); viewportBackColorCB.SelectedIndex = 0; orthographicViewToolStripMenuItem.Checked = true; foreach (var type in Enum.GetValues(typeof(Runtime.LayoutEditor.DebugShading)).Cast <Runtime.LayoutEditor.DebugShading>()) { debugShading.Items.Add(type); } debugShading.SelectedItem = Runtime.LayoutEditor.Shading; ObjectSelected += OnObjectSelected; ObjectChanged += OnObjectChanged; }
public MainForm() { InitializeComponent(); this.dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel(); var theme = new VS2015DarkTheme(); this.dockPanel.Theme = theme; this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.Controls.Add(this.dockPanel); dockPanel.UpdateDockWindowZOrder(DockStyle.Left, true); if (false) { TINRS_Tuesday_TestFrame tf = new TINRS_Tuesday_TestFrame(); tf.Show(this.dockPanel, DockState.Document); tf.Text = "Tuesday"; } if (false) { TINRS_Tuesday_Lights lf = new TINRS_Tuesday_Lights(); lf.Show(this.dockPanel, DockState.Document); lf.Text = "Tuesday Lights"; } // tf.Focus(); if (false) { WobblerTestFrame wf = new WobblerTestFrame(); wf.Show(this.dockPanel, DockState.Document); wf.Text = "Wobbler"; } // WobblerSetup ws = new WobblerSetup(); // ws.Show(this.dockPanel, DockState.Document); //ws.Text = "Wobbler Setup"; if (true) { EdgeCutterTestFrame ef = new EdgeCutterTestFrame(); ef.Show(this.dockPanel, DockState.Document); ef.Text = "EdgeCutter"; } // BigFishTestFrame bf = new BigFishTestFrame(); // bf.Show(this.dockPanel, DockState.Document); // bf.Text = "BigFish"; }
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 VixenPreviewSetup3() { InitializeComponent(); Icon = Resources.Icon_Vixen3; menuStrip.Renderer = new ThemeToolStripRenderer(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); undoButton.Image = Tools.GetIcon(Resources.arrow_undo, iconSize); undoButton.DisplayStyle = ToolStripItemDisplayStyle.Image; redoButton.Image = Tools.GetIcon(Resources.arrow_redo, iconSize); redoButton.DisplayStyle = ToolStripItemDisplayStyle.Image; redoButton.ButtonType = UndoButtonType.RedoButton; tlpToolBar.BorderStyle = BorderStyle.FixedSingle; ThemeUpdateControls.UpdateControls(this); panel10.BackColor = Color.Black; foreach (Control c in panel10.Controls) { c.BackColor = Color.Black; } dockPanel.BackColor = ThemeColorTable.BackgroundColor; var theme = new VS2015DarkTheme(); dockPanel.Theme = theme; label9.ForeColor = Color.Turquoise; label10.ForeColor = Color.LimeGreen; label11.ForeColor = Color.White; label12.ForeColor = Color.HotPink; label13.ForeColor = Color.Yellow; this.ShowInTaskbar = false; undoToolStripMenuItem.Enabled = false; redoToolStripMenuItem.Enabled = false; }
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 VixenPreviewSetup3() { InitializeComponent(); Icon = Resources.Icon_Vixen3; var scaleFactor = ScalingTools.GetScaleFactor(); menuStrip.Renderer = new ThemeToolStripRenderer(); int imageSize = (int)(16 * scaleFactor); menuStrip.ImageScalingSize = new Size(imageSize, imageSize); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(24 * scaleFactor); undoButton.Image = Tools.GetIcon(Resources.arrow_undo, iconSize); undoButton.DisplayStyle = ToolStripItemDisplayStyle.Image; redoButton.Image = Tools.GetIcon(Resources.arrow_redo, iconSize); redoButton.DisplayStyle = ToolStripItemDisplayStyle.Image; redoButton.ButtonType = UndoButtonType.RedoButton; btnBulbIncrease.Image = Tools.GetIcon(Resources.buttonBulbBigger, iconSize); btnBulbDecrease.Image = Tools.GetIcon(Resources.buttonBulbSmaller, iconSize); btnAddCustomProp.Image = Tools.GetIcon(Resources.Prop_Add, iconSize); btnCustomPropEditor.Image = Tools.GetIcon(Resources.Prop_Edit, iconSize); btnCustomPropLibrary.Image = Tools.GetIcon(Resources.folder_explore, iconSize); btnAddCustomProp.Text = string.Empty; btnCustomPropEditor.Text = string.Empty; btnCustomPropLibrary.Text = string.Empty; buttonAlignLeft.Image = Tools.GetIcon(Resources.buttonAlignLeft_BackgroundImage, iconSize); buttonAlignBottom.Image = Tools.GetIcon(Resources.buttonAlignBottom_BackgroundImage, iconSize); buttonAlignHorizMid.Image = Tools.GetIcon(Resources.buttonAlignHorizMid_BackgroundImage, iconSize); buttonAlignRight.Image = Tools.GetIcon(Resources.buttonAlignRight_BackgroundImage, iconSize); buttonAlignTop.Image = Tools.GetIcon(Resources.buttonAlignTop_BackgroundImage, iconSize); buttonAlignVertMid.Image = Tools.GetIcon(Resources.buttonAlignVertMid_BackgroundImage, iconSize); buttonDistributeHorizontal.Image = Tools.GetIcon(Resources.buttonDistributeHorizontal_BackgroundImage, iconSize); buttonDistributeVertical.Image = Tools.GetIcon(Resources.buttonDistributeVertical_BackgroundImage, iconSize); buttonMatchProperties.Image = Tools.GetIcon(Resources.buttonMatchProperties_BackgroundImage, iconSize); buttonAlignLeft.Text = string.Empty; buttonAlignBottom.Text = string.Empty; buttonAlignHorizMid.Text = string.Empty; buttonAlignRight.Text = string.Empty; buttonAlignTop.Text = string.Empty; buttonAlignVertMid.Text = string.Empty; buttonDistributeHorizontal.Text = string.Empty; buttonDistributeVertical.Text = string.Empty; buttonMatchProperties.Text = string.Empty; tlpToolBar.BorderStyle = BorderStyle.FixedSingle; ThemeUpdateControls.UpdateControls(this); panel10.BackColor = Color.Black; foreach (Control c in panel10.Controls) { c.BackColor = Color.Black; } dockPanel.BackColor = ThemeColorTable.BackgroundColor; var theme = new VS2015DarkTheme(); dockPanel.Theme = theme; label9.ForeColor = Color.Turquoise; label10.ForeColor = Color.LimeGreen; label11.ForeColor = Color.White; label12.ForeColor = Color.HotPink; label13.ForeColor = Color.Yellow; this.ShowInTaskbar = false; undoToolStripMenuItem.Enabled = false; redoToolStripMenuItem.Enabled = false; trackerZoom.Maximum = Environment.Is64BitProcess ? 400 : 200; }
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 DarkTheme() { PanelTheme = new VS2015DarkTheme(); MenuTheme = new MenuTheme.DarkTheme(); }
public DockPanelCustom() { var theme = new VS2015DarkTheme(); this.Theme = theme; }