From c07b3c05c06f7b32dc52f936895f4fc9f33a5c87 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 14 八月 2024 14:13:45 +0800 Subject: [PATCH] 界面微调 --- Desktop/HStation.Desktop.Xhs.Core/MainForm.Designer.cs | 73 +++++++++++++++++++++--------------- 1 files changed, 43 insertions(+), 30 deletions(-) diff --git a/Desktop/HStation.Desktop.Xhs.Core/MainForm.Designer.cs b/Desktop/HStation.Desktop.Xhs.Core/MainForm.Designer.cs index cb7454b..57298df 100644 --- a/Desktop/HStation.Desktop.Xhs.Core/MainForm.Designer.cs +++ b/Desktop/HStation.Desktop.Xhs.Core/MainForm.Designer.cs @@ -33,7 +33,7 @@ tileNavPane = new DevExpress.XtraBars.Navigation.TileNavPane(); nbTitle = new DevExpress.XtraBars.Navigation.NavButton(); nbProjectMgr = new DevExpress.XtraBars.Navigation.NavButton(); - nbBimfaceMgr = new DevExpress.XtraBars.Navigation.NavButton(); + nbModelMgr = new DevExpress.XtraBars.Navigation.NavButton(); nbSystemConfig = new DevExpress.XtraBars.Navigation.NavButton(); nbMin = new DevExpress.XtraBars.Navigation.NavButton(); nbNormal = new DevExpress.XtraBars.Navigation.NavButton(); @@ -52,7 +52,7 @@ tabbedView1 = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView(components); flyoutPanel1 = new DevExpress.Utils.FlyoutPanel(); flyoutPanelControl1 = new DevExpress.Utils.FlyoutPanelControl(); - svgImg32 = new DevExpress.Utils.SvgImageCollection(components); + svgImg32Model = new DevExpress.Utils.SvgImageCollection(components); ((System.ComponentModel.ISupportInitialize)tileNavPane).BeginInit(); ((System.ComponentModel.ISupportInitialize)documentManager1).BeginInit(); ((System.ComponentModel.ISupportInitialize)barManager1).BeginInit(); @@ -61,14 +61,15 @@ ((System.ComponentModel.ISupportInitialize)flyoutPanel1).BeginInit(); flyoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)flyoutPanelControl1).BeginInit(); - ((System.ComponentModel.ISupportInitialize)svgImg32).BeginInit(); + ((System.ComponentModel.ISupportInitialize)svgImg32Model).BeginInit(); SuspendLayout(); // // tileNavPane // + tileNavPane.AllowGlyphSkinning = true; tileNavPane.Buttons.Add(nbTitle); tileNavPane.Buttons.Add(nbProjectMgr); - tileNavPane.Buttons.Add(nbBimfaceMgr); + tileNavPane.Buttons.Add(nbModelMgr); tileNavPane.Buttons.Add(nbSystemConfig); tileNavPane.Buttons.Add(nbMin); tileNavPane.Buttons.Add(nbNormal); @@ -83,8 +84,9 @@ tileNavPane.DefaultCategory.Tile.DropDownOptions.BeakColor = Color.Empty; tileNavPane.Dock = DockStyle.Top; tileNavPane.Location = new Point(0, 0); + tileNavPane.Margin = new Padding(4, 5, 4, 5); tileNavPane.Name = "tileNavPane"; - tileNavPane.Size = new Size(1189, 53); + tileNavPane.Size = new Size(1699, 84); tileNavPane.TabIndex = 0; tileNavPane.Text = "tileNavPane1"; tileNavPane.ElementClick += tileNavPane_ElementClick; @@ -107,19 +109,20 @@ nbProjectMgr.Name = "nbProjectMgr"; nbProjectMgr.ElementClick += nbProjectMgr_ElementClick; // - // nbBimfaceMgr + // nbModelMgr // - nbBimfaceMgr.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; - nbBimfaceMgr.Caption = "妯″瀷绠$悊"; - nbBimfaceMgr.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbBimfaceMgr.ImageOptions.SvgImage"); - nbBimfaceMgr.ImageOptions.SvgImageSize = new Size(24, 24); - nbBimfaceMgr.Name = "nbBimfaceMgr"; - nbBimfaceMgr.ElementClick += nbBimfaceMgr_ElementClick; + nbModelMgr.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; + nbModelMgr.Caption = "妯″瀷绠$悊"; + nbModelMgr.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbModelMgr.ImageOptions.SvgImage"); + nbModelMgr.ImageOptions.SvgImageSize = new Size(24, 24); + nbModelMgr.Name = "nbModelMgr"; + nbModelMgr.ElementClick += nbModelMgr_ElementClick; // // nbSystemConfig // nbSystemConfig.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; nbSystemConfig.Caption = "绯荤粺閰嶇疆"; + nbSystemConfig.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbSystemConfig.ImageOptions.SvgImage"); nbSystemConfig.Name = "nbSystemConfig"; nbSystemConfig.ElementClick += nbSystemConfig_ElementClick; // @@ -205,15 +208,17 @@ barDockControlTop.Dock = DockStyle.Top; barDockControlTop.Location = new Point(0, 0); barDockControlTop.Manager = barManager1; - barDockControlTop.Size = new Size(1189, 0); + barDockControlTop.Margin = new Padding(4, 5, 4, 5); + barDockControlTop.Size = new Size(1699, 0); // // barDockControlBottom // barDockControlBottom.CausesValidation = false; barDockControlBottom.Dock = DockStyle.Bottom; - barDockControlBottom.Location = new Point(0, 710); + barDockControlBottom.Location = new Point(0, 1117); barDockControlBottom.Manager = barManager1; - barDockControlBottom.Size = new Size(1189, 30); + barDockControlBottom.Margin = new Padding(4, 5, 4, 5); + barDockControlBottom.Size = new Size(1699, 46); // // barDockControlLeft // @@ -221,15 +226,17 @@ barDockControlLeft.Dock = DockStyle.Left; barDockControlLeft.Location = new Point(0, 0); barDockControlLeft.Manager = barManager1; - barDockControlLeft.Size = new Size(0, 710); + barDockControlLeft.Margin = new Padding(4, 5, 4, 5); + barDockControlLeft.Size = new Size(0, 1117); // // barDockControlRight // barDockControlRight.CausesValidation = false; barDockControlRight.Dock = DockStyle.Right; - barDockControlRight.Location = new Point(1189, 0); + barDockControlRight.Location = new Point(1699, 0); barDockControlRight.Manager = barManager1; - barDockControlRight.Size = new Size(0, 710); + barDockControlRight.Margin = new Padding(4, 5, 4, 5); + barDockControlRight.Size = new Size(0, 1117); // // dockManager1 // @@ -246,6 +253,7 @@ // tabbedView1 // tabbedView1.DocumentProperties.AllowPin = true; + tabbedView1.Style = DevExpress.XtraBars.Docking2010.Views.DockingViewStyle.Light; tabbedView1.DocumentSelected += tabbedView1_DocumentSelected; tabbedView1.DocumentAdded += tabbedView1_DocumentAdded; tabbedView1.DocumentActivated += tabbedView1_DocumentActivated; @@ -255,12 +263,14 @@ // flyoutPanel1.AnimationRate = 100; flyoutPanel1.Controls.Add(flyoutPanelControl1); - flyoutPanel1.Location = new Point(494, 133); + flyoutPanel1.Location = new Point(706, 209); + flyoutPanel1.Margin = new Padding(4, 5, 4, 5); flyoutPanel1.Name = "flyoutPanel1"; flyoutPanel1.Options.CloseOnOuterClick = true; flyoutPanel1.OptionsBeakPanel.BeakLocation = DevExpress.Utils.BeakPanelBeakLocation.Top; + flyoutPanel1.OptionsButtonPanel.ButtonPanelHeight = 47; flyoutPanel1.ParentForm = this; - flyoutPanel1.Size = new Size(200, 100); + flyoutPanel1.Size = new Size(286, 157); flyoutPanel1.TabIndex = 5; // // flyoutPanelControl1 @@ -269,27 +279,30 @@ flyoutPanelControl1.Dock = DockStyle.Fill; flyoutPanelControl1.FlyoutPanel = flyoutPanel1; flyoutPanelControl1.Location = new Point(0, 0); + flyoutPanelControl1.Margin = new Padding(4, 5, 4, 5); flyoutPanelControl1.Name = "flyoutPanelControl1"; - flyoutPanelControl1.Size = new Size(200, 100); + flyoutPanelControl1.Size = new Size(286, 157); flyoutPanelControl1.TabIndex = 0; // - // svgImg32 + // svgImg32Model // - svgImg32.ImageSize = new Size(32, 32); - svgImg32.Add("bold", "image://svgimages/outlook inspired/bold.svg"); + svgImg32Model.ImageSize = new Size(32, 32); + svgImg32Model.Add("actions_book", "image://svgimages/icon builder/actions_book.svg"); + svgImg32Model.Add("charttype_stepline", "image://svgimages/chart/charttype_stepline.svg"); + svgImg32Model.Add("bletter", "image://svgimages/outlook inspired/bletter.svg"); // // MainForm // - AutoScaleDimensions = new SizeF(7F, 14F); + AutoScaleDimensions = new SizeF(10F, 22F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(1189, 740); + ClientSize = new Size(1699, 1163); Controls.Add(flyoutPanel1); Controls.Add(tileNavPane); Controls.Add(barDockControlLeft); Controls.Add(barDockControlRight); Controls.Add(barDockControlBottom); Controls.Add(barDockControlTop); - Margin = new Padding(3, 2, 3, 2); + Margin = new Padding(4, 3, 4, 3); Name = "MainForm"; Text = "Form1"; WindowState = FormWindowState.Maximized; @@ -306,7 +319,7 @@ ((System.ComponentModel.ISupportInitialize)flyoutPanel1).EndInit(); flyoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)flyoutPanelControl1).EndInit(); - ((System.ComponentModel.ISupportInitialize)svgImg32).EndInit(); + ((System.ComponentModel.ISupportInitialize)svgImg32Model).EndInit(); ResumeLayout(false); PerformLayout(); } @@ -331,10 +344,10 @@ private DevExpress.XtraBars.Navigation.NavButton nbClose; private DevExpress.XtraBars.Docking.DockManager dockManager1; private DevExpress.XtraBars.Navigation.NavButton nbProjectMgr; - private DevExpress.XtraBars.Navigation.NavButton nbBimfaceMgr; + private DevExpress.XtraBars.Navigation.NavButton nbModelMgr; private DevExpress.Utils.FlyoutPanel flyoutPanel1; private DevExpress.Utils.FlyoutPanelControl flyoutPanelControl1; - private DevExpress.Utils.SvgImageCollection svgImg32; + private DevExpress.Utils.SvgImageCollection svgImg32Model; private DevExpress.XtraBars.Navigation.NavButton nbSystemConfig; } } -- Gitblit v1.9.3