* UIStyle: 修改等待窗体与主题配色一致

This commit is contained in:
Sunny 2022-04-03 12:20:11 +08:00
parent 017c49a2f7
commit 4fb03a6fcb
5 changed files with 4 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -112,7 +112,7 @@ namespace Sunny.UI
} }
} }
public void ReSetDPIScale() public void ResetDPIScale()
{ {
IsScaled = false; IsScaled = false;
SetDPIScale(); SetDPIScale();

View File

@ -55,6 +55,7 @@ namespace Sunny.UI
thread = new Thread(delegate () thread = new Thread(delegate ()
{ {
form = new UIWaitForm(desc); form = new UIWaitForm(desc);
form.Render();
if (IsRun) Application.Run(form); if (IsRun) Application.Run(form);
}); });
@ -139,6 +140,7 @@ namespace Sunny.UI
thread = new Thread(delegate () thread = new Thread(delegate ()
{ {
form = new UIStatusForm(max, desc, decimalCount); form = new UIStatusForm(max, desc, decimalCount);
form.Render();
form.VisibleChanged += WaitForm_VisibleChanged; form.VisibleChanged += WaitForm_VisibleChanged;
Application.Run(form); Application.Run(form);
IsRun = false; IsRun = false;

View File

@ -105,7 +105,7 @@ namespace Sunny.UI
} }
} }
public void ReSetDPIScale() public void ResetDPIScale()
{ {
IsScaled = false; IsScaled = false;
SetDPIScale(); SetDPIScale();