public void UpdateUIStyle() { FTabs.Style = UIStyleUtils.GetTabStripStyle1(Designer.UIStyle); FTabs.Height = Designer.UIStyle == UIStyle.VisualStudio2005 ? 25 : 27; Plugins.UpdateUIStyle(); ParentControl_Resize(this, EventArgs.Empty); }
/// <inheritdoc/> public override void UpdateUIStyle() { base.UpdateUIStyle(); FToolbar.Style = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle); mnuContext.Style = FToolbar.Style; FSplitter.BackColor = UIStyleUtils.GetControlColor(Designer.UIStyle); }
public TableMenuBase(Designer designer) : base() { FDesigner = designer; Style = UIStyleUtils.GetDotNetBarStyle(designer.UIStyle); mnuContextRoot = new ButtonItem(); base.Items.Add(mnuContextRoot); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { UIStyle style = (UIStyle)comboBox1.SelectedIndex; Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(style); Config.UIStyle = style; previewControl1.UIStyle = style; Refresh(); }
public override void UpdateUIStyle() { base.UpdateUIStyle(); btnColor.SetStyle(Designer.UIStyle); Color controlColor = UIStyleUtils.GetControlColor(Designer.UIStyle); cbxName.ComboBoxEx.DisabledBackColor = controlColor; cbxSize.ComboBoxEx.DisabledBackColor = controlColor; }
private void CmbShowType_SelectedIndexChanged(object sender, EventArgs e) { UIStyle style = (UIStyle)btnChangeSkin.SelectedIndex; Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(style); Config.UIStyle = style; previewControl1.UIStyle = style; Refresh(); }
public void UpdateUIStyle() { FControlContainer.ColorSchemeStyle = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle); FControlContainer.Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(Designer.UIStyle); Color color = UIStyleUtils.GetControlColor(Designer.UIStyle); FStructure.BackColor = color; FHorzRuler.BackColor = color; FVertRuler.BackColor = color; FWorkspace.BackColor = UIStyleUtils.GetAppWorkspaceColor(Designer.UIStyle); BackColor = color; }
/// <inheritdoc/> public override void UpdateUIStyle() { base.UpdateUIStyle(); FToolbar.Style = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle); cbxObjects.Style = FToolbar.Style; Color color = UIStyleUtils.GetControlColor(Designer.UIStyle); Grid.BackColor = color; Grid.LineColor = color; Grid.HelpBackColor = color; ParentControl.BackColor = color; cbxObjects.IsStandalone = Designer.UIStyle != UIStyle.VisualStudio2005 && Designer.UIStyle != UIStyle.Office2003; }
protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (UIStyleUtils.IsOffice2007Scheme(Config.UIStyle)) { // draw shadow around page ShadowPaintInfo pi = new ShadowPaintInfo(); pi.Graphics = e.Graphics; pi.Rectangle = FContent.Bounds; pi.Size = 6; ShadowPainter.Paint2(pi); } }
public void SetStyle(UIStyle style) { eTabStripStyle st = UIStyleUtils.GetTabStripStyle1(style); if (st == eTabStripStyle.VS2005Dock) { st = eTabStripStyle.VS2005; } FTabs.Style = st; Color color = UIStyleUtils.GetControlColor(style); pnTransparency.BackColor = color; BackColor = color; FTabs.BackColor = color; }
/// <summary> /// Initializes a new instance of the <b>ComponentMenuBase</b> class with default settings. /// </summary> /// <param name="designer">The reference to a report designer.</param> public ComponentMenuBase(Designer designer) : base() { FDesigner = designer; Style = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle); mnuContextRoot = new ButtonItem(); base.Items.Add(mnuContextRoot); miName = CreateMenuItem(""); miEdit = CreateMenuItem(Res.Get("ComponentMenu,Component,Edit"), Designer.cmdEdit.Invoke); miEdit.BeginGroup = true; miCut = CreateMenuItem(Res.GetImage(5), Res.Get("Designer,Menu,Edit,Cut"), Designer.cmdCut.Invoke); miCut.BeginGroup = true; miCopy = CreateMenuItem(Res.GetImage(6), Res.Get("Designer,Menu,Edit,Copy"), Designer.cmdCopy.Invoke); miPaste = CreateMenuItem(Res.GetImage(7), Res.Get("Designer,Menu,Edit,Paste"), Designer.cmdPaste.Invoke); miDelete = CreateMenuItem(Res.GetImage(51), Res.Get("Designer,Menu,Edit,Delete"), Designer.cmdDelete.Invoke); miBringToFront = CreateMenuItem(Res.GetImage(14), Res.Get("Designer,Toolbar,Layout,BringToFront"), Designer.cmdBringToFront.Invoke); miBringToFront.BeginGroup = true; miSendToBack = CreateMenuItem(Res.GetImage(15), Res.Get("Designer,Toolbar,Layout,SendToBack"), Designer.cmdSendToBack.Invoke); miEdit.Visible = Designer.cmdEdit.Enabled; miCut.Enabled = Designer.cmdCut.Enabled; miCopy.Enabled = Designer.cmdCopy.Enabled; miPaste.Enabled = Designer.cmdPaste.Enabled; miDelete.Enabled = Designer.cmdDelete.Enabled; miBringToFront.Enabled = Designer.cmdBringToFront.Enabled; miSendToBack.Enabled = Designer.cmdSendToBack.Enabled; SelectedObjectCollection selection = Designer.SelectedObjects; miName.Text = (selection.Count == 1 ? selection[0].Name : String.Format(Res.Get("Designer,ToolWindow,Properties,NObjectsSelected"), selection.Count)) + ":"; miName.FontBold = true; miName.HotFontBold = true; Items.AddRange(new BaseItem[] { miName, miEdit, miCut, miCopy, miPaste, miDelete, miBringToFront, miSendToBack }); }
private void UpdateUIStyle() { eDotNetBarStyle style = UIStyleUtils.GetDotNetBarStyle(UIStyle); toolBar.Style = style; // Do this to paint slider control correctly if style is not Office 2007 if (UIStyle == UIStyle.VisualStudio2005) { UIStyleUtils.GetDotNetBarStyle(UIStyle.Office2007Silver); } else if (UIStyle == UIStyle.Office2003) { UIStyleUtils.GetDotNetBarStyle(UIStyle.Office2007Blue); } statusBar.Style = style; tabControl.Style = UIStyleUtils.GetTabStripStyle(UIStyle); outlineControl.Style = UIStyle; foreach (PreviewTab tab in FDocuments) { tab.Style = UIStyle; } }
/// <inheritdoc/> public void UpdateUIStyle() { Style = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle); }
private void UpdateEditColors() { FEdit.Gutter.BrushColor = UIStyleUtils.GetControlColor(Designer.UIStyle); FEdit.Gutter.PenColor = FEdit.Gutter.BrushColor; }