* UITitlePage:解决标题栏闪烁

This commit is contained in:
Sunny 2021-05-27 10:08:42 +08:00
parent d83cc8dda6
commit b1602f3434
6 changed files with 10 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -137,6 +137,11 @@ namespace Sunny.UI
private void UIDatetimePicker_ButtonClick(object sender, EventArgs e)
{
if (DateTime.TryParse(Text, out DateTime dt))
Value = dt;
else
Value = DateTime.Now;
item.Date = Value;
item.ShowToday = ShowToday;
item.PrimaryColor = RectColor;

View File

@ -42,7 +42,7 @@
this.PageTitle.Padding = new System.Windows.Forms.Padding(6, 0, 0, 0);
this.PageTitle.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
this.PageTitle.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
this.PageTitle.Size = new System.Drawing.Size(993, 35);
this.PageTitle.Size = new System.Drawing.Size(1475, 35);
this.PageTitle.Symbol = 0;
this.PageTitle.SymbolSize = 24;
this.PageTitle.TabIndex = 0;
@ -59,14 +59,15 @@
this.PagePanel.Name = "PagePanel";
this.PagePanel.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
this.PagePanel.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
this.PagePanel.Size = new System.Drawing.Size(993, 239);
this.PagePanel.Size = new System.Drawing.Size(1475, 852);
this.PagePanel.TabIndex = 1;
this.PagePanel.Text = null;
this.PagePanel.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
//
// UITitlePage
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(993, 274);
this.ClientSize = new System.Drawing.Size(1475, 887);
this.Controls.Add(this.PagePanel);
this.Controls.Add(this.PageTitle);
this.Name = "UITitlePage";

View File

@ -103,6 +103,7 @@ namespace Sunny.UI
{
public UITitle()
{
SetStyleFlags(true, false);
fillColor = Color.FromArgb(76, 76, 76);
foreColor = Color.White;
}