From 6a52fccf85a3b4be8e384b58814b17a72cb98448 Mon Sep 17 00:00:00 2001 From: Mo_Ink <64246616+Mo-Ink@users.noreply.github.com> Date: Mon, 18 Jan 2021 16:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SeewoHelper/Forms/AboutWindow.cs | 2 +- SeewoHelper/Forms/AboutWindow.designer.cs | 30 ++++++++++++++--------- SeewoHelper/Forms/WindowMain.Designer.cs | 2 +- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/SeewoHelper/Forms/AboutWindow.cs b/SeewoHelper/Forms/AboutWindow.cs index 76491aa..41b6f42 100644 --- a/SeewoHelper/Forms/AboutWindow.cs +++ b/SeewoHelper/Forms/AboutWindow.cs @@ -25,7 +25,7 @@ private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs private void AboutWindow_Load(object sender, EventArgs e) { Program.Logger.Add("开始加载 AboutWindow"); - textBoxContributors.Text = string.Join(", ", Constants.Contributors); + textBoxContributors.Text = string.Join("\r\n", Constants.Contributors); labelVersion.Text = "应用版本:" + Constants.Version.ToString(3); Program.Logger.Add("AboutWindow 加载完成"); } diff --git a/SeewoHelper/Forms/AboutWindow.designer.cs b/SeewoHelper/Forms/AboutWindow.designer.cs index 45f643f..c9568e6 100644 --- a/SeewoHelper/Forms/AboutWindow.designer.cs +++ b/SeewoHelper/Forms/AboutWindow.designer.cs @@ -90,7 +90,7 @@ private void InitializeComponent() this.tableLayoutPanelPage2.RowCount = 2; this.tableLayoutPanelPage2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.tableLayoutPanelPage2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 75F)); - this.tableLayoutPanelPage2.Size = new System.Drawing.Size(364, 205); + this.tableLayoutPanelPage2.Size = new System.Drawing.Size(367, 209); this.tableLayoutPanelPage2.TabIndex = 1; // // labelContributors @@ -102,7 +102,7 @@ private void InitializeComponent() this.labelContributors.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); this.labelContributors.Location = new System.Drawing.Point(3, 0); this.labelContributors.Name = "labelContributors"; - this.labelContributors.Size = new System.Drawing.Size(358, 51); + this.labelContributors.Size = new System.Drawing.Size(361, 52); this.labelContributors.Style = Sunny.UI.UIStyle.Custom; this.labelContributors.TabIndex = 1; this.labelContributors.Text = "贡献者"; @@ -110,10 +110,14 @@ private void InitializeComponent() // // textBoxContributors // + this.textBoxContributors.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxContributors.AutoScroll = true; this.textBoxContributors.Cursor = System.Windows.Forms.Cursors.IBeam; this.textBoxContributors.FillColor = System.Drawing.Color.White; this.textBoxContributors.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.textBoxContributors.Location = new System.Drawing.Point(4, 56); + this.textBoxContributors.Location = new System.Drawing.Point(4, 57); this.textBoxContributors.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxContributors.Maximum = 2147483647D; this.textBoxContributors.Minimum = -2147483648D; @@ -122,8 +126,10 @@ private void InitializeComponent() this.textBoxContributors.Name = "textBoxContributors"; this.textBoxContributors.Padding = new System.Windows.Forms.Padding(5); this.textBoxContributors.ReadOnly = true; - this.textBoxContributors.Size = new System.Drawing.Size(356, 144); + this.textBoxContributors.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.textBoxContributors.Size = new System.Drawing.Size(359, 147); this.textBoxContributors.TabIndex = 2; + this.textBoxContributors.TextAlignment = System.Drawing.ContentAlignment.TopCenter; // // tabPage1 // @@ -146,14 +152,14 @@ private void InitializeComponent() this.tableLayoutPanelPage1.Controls.Add(this.labelVersion, 0, 1); this.tableLayoutPanelPage1.Controls.Add(this.labelTitle, 0, 0); this.tableLayoutPanelPage1.ForeColor = System.Drawing.Color.White; - this.tableLayoutPanelPage1.Location = new System.Drawing.Point(0, 4); + this.tableLayoutPanelPage1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanelPage1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.tableLayoutPanelPage1.Name = "tableLayoutPanelPage1"; this.tableLayoutPanelPage1.RowCount = 3; this.tableLayoutPanelPage1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); this.tableLayoutPanelPage1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); this.tableLayoutPanelPage1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); - this.tableLayoutPanelPage1.Size = new System.Drawing.Size(367, 205); + this.tableLayoutPanelPage1.Size = new System.Drawing.Size(367, 209); this.tableLayoutPanelPage1.TabIndex = 1; // // linkLabelGithub @@ -163,14 +169,14 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.linkLabelGithub.AutoSize = true; + this.linkLabelGithub.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); this.linkLabelGithub.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); this.linkLabelGithub.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); this.linkLabelGithub.LinkBehavior = System.Windows.Forms.LinkBehavior.AlwaysUnderline; this.linkLabelGithub.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.linkLabelGithub.Location = new System.Drawing.Point(3, 136); + this.linkLabelGithub.Location = new System.Drawing.Point(3, 138); this.linkLabelGithub.Name = "linkLabelGithub"; - this.linkLabelGithub.Size = new System.Drawing.Size(361, 69); - this.linkLabelGithub.Style = Sunny.UI.UIStyle.Custom; + this.linkLabelGithub.Size = new System.Drawing.Size(361, 71); this.linkLabelGithub.TabIndex = 1; this.linkLabelGithub.TabStop = true; this.linkLabelGithub.Text = "Github"; @@ -185,9 +191,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.labelVersion.AutoSize = true; this.labelVersion.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); - this.labelVersion.Location = new System.Drawing.Point(3, 68); + this.labelVersion.Location = new System.Drawing.Point(3, 69); this.labelVersion.Name = "labelVersion"; - this.labelVersion.Size = new System.Drawing.Size(361, 68); + this.labelVersion.Size = new System.Drawing.Size(361, 69); this.labelVersion.Style = Sunny.UI.UIStyle.Custom; this.labelVersion.TabIndex = 1; this.labelVersion.Text = "应用版本:"; @@ -202,7 +208,7 @@ private void InitializeComponent() this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 23F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); this.labelTitle.Location = new System.Drawing.Point(3, 0); this.labelTitle.Name = "labelTitle"; - this.labelTitle.Size = new System.Drawing.Size(361, 68); + this.labelTitle.Size = new System.Drawing.Size(361, 69); this.labelTitle.Style = Sunny.UI.UIStyle.Custom; this.labelTitle.TabIndex = 1; this.labelTitle.Text = "SeewoHelper"; diff --git a/SeewoHelper/Forms/WindowMain.Designer.cs b/SeewoHelper/Forms/WindowMain.Designer.cs index 9826210..d96476d 100644 --- a/SeewoHelper/Forms/WindowMain.Designer.cs +++ b/SeewoHelper/Forms/WindowMain.Designer.cs @@ -89,7 +89,7 @@ private void InitializeComponent() this.listViewSubjectStorageInfosColumnHeaderPath, this.listViewSubjectStorageInfosColumnHeaderKeywords}); this.listViewSubjectStorageInfos.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.listViewSubjectStorageInfos.ForeColor = System.Drawing.Color.White; + this.listViewSubjectStorageInfos.ForeColor = System.Drawing.Color.Black; this.listViewSubjectStorageInfos.FullRowSelect = true; this.listViewSubjectStorageInfos.HideSelection = false; this.listViewSubjectStorageInfos.Location = new System.Drawing.Point(4, 41);