diff --git a/Bin/net40/SunnyUI.Demo.exe b/Bin/net40/SunnyUI.Demo.exe index f98190eb..3ebfc904 100644 Binary files a/Bin/net40/SunnyUI.Demo.exe and b/Bin/net40/SunnyUI.Demo.exe differ diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index 257a87d9..dee5e3a2 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index 2f311ee8..4ef646ab 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index de500e3a..bd901aa2 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI.Net5.Demo/Controls/FDataGridView.Designer.cs b/SunnyUI.Net5.Demo/Controls/FDataGridView.Designer.cs index 5273ee8f..29b4e6a4 100644 --- a/SunnyUI.Net5.Demo/Controls/FDataGridView.Designer.cs +++ b/SunnyUI.Net5.Demo/Controls/FDataGridView.Designer.cs @@ -42,7 +42,7 @@ // this.PagePanel.Controls.Add(this.uiDataGridView1); this.PagePanel.Controls.Add(this.uiPagination1); - this.PagePanel.Size = new System.Drawing.Size(861, 415); + this.PagePanel.Size = new System.Drawing.Size(1526, 657); // // uiDataGridView1 // @@ -57,7 +57,7 @@ this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F); + dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; @@ -67,7 +67,7 @@ this.uiDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F); + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(200)))), ((int)(((byte)(255))))); dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); @@ -75,7 +75,7 @@ this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle3; this.uiDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.uiDataGridView1.EnableHeadersVisualStyles = false; - this.uiDataGridView1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiDataGridView1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); this.uiDataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); this.uiDataGridView1.Location = new System.Drawing.Point(0, 0); this.uiDataGridView1.MultiSelect = false; @@ -87,22 +87,23 @@ this.uiDataGridView1.SelectedIndex = -1; this.uiDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.uiDataGridView1.ShowRect = false; - this.uiDataGridView1.Size = new System.Drawing.Size(861, 380); + this.uiDataGridView1.Size = new System.Drawing.Size(1526, 622); this.uiDataGridView1.TabIndex = 0; // // uiPagination1 // - this.uiPagination1.ActivePage = 50; + this.uiPagination1.ActivePage = 20; this.uiPagination1.CausesValidation = false; this.uiPagination1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.uiPagination1.Font = new System.Drawing.Font("微软雅黑", 12F); - this.uiPagination1.Location = new System.Drawing.Point(0, 380); + this.uiPagination1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + this.uiPagination1.Location = new System.Drawing.Point(0, 622); this.uiPagination1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPagination1.MinimumSize = new System.Drawing.Size(1, 1); this.uiPagination1.Name = "uiPagination1"; this.uiPagination1.PagerCount = 11; this.uiPagination1.PageSize = 50; this.uiPagination1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; - this.uiPagination1.Size = new System.Drawing.Size(861, 35); + this.uiPagination1.Size = new System.Drawing.Size(1526, 35); this.uiPagination1.TabIndex = 1; this.uiPagination1.Text = "uiDataGridPage1"; this.uiPagination1.TotalCount = 40000; @@ -112,7 +113,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(861, 450); + this.ClientSize = new System.Drawing.Size(1526, 692); this.Name = "FDataGridView"; this.Symbol = 61646; this.Text = "DataGridView"; diff --git a/SunnyUI.Net5.Demo/Controls/FDataGridView.resx b/SunnyUI.Net5.Demo/Controls/FDataGridView.resx index 1af7de15..f298a7be 100644 --- a/SunnyUI.Net5.Demo/Controls/FDataGridView.resx +++ b/SunnyUI.Net5.Demo/Controls/FDataGridView.resx @@ -1,64 +1,4 @@ - - - + diff --git a/SunnyUI/Controls/UIButton.resx b/SunnyUI/Controls/UIButton.resx new file mode 100644 index 00000000..1af7de15 --- /dev/null +++ b/SunnyUI/Controls/UIButton.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SunnyUI/Controls/UIDataGridView.cs b/SunnyUI/Controls/UIDataGridView.cs index 39dcb0c5..6617eb96 100644 --- a/SunnyUI/Controls/UIDataGridView.cs +++ b/SunnyUI/Controls/UIDataGridView.cs @@ -338,9 +338,15 @@ namespace Sunny.UI public void SetStyleColor(UIBaseStyle uiColor) { - //标题行颜色 + //列头部颜色 ColumnHeadersDefaultCellStyle.BackColor = uiColor.TitleColor; ColumnHeadersDefaultCellStyle.ForeColor = uiColor.TitleForeColor; + ColumnHeadersDefaultCellStyle.SelectionBackColor = uiColor.TitleColor; + + //行头部颜色 + RowHeadersDefaultCellStyle.BackColor = uiColor.PlainColor; + RowHeadersDefaultCellStyle.ForeColor = uiColor.TitleForeColor; + RowHeadersDefaultCellStyle.SelectionBackColor = uiColor.TitleColor; //数据行选中颜色 DefaultCellStyle.SelectionBackColor = uiColor.GridSelectedColor;