Paint增加保存,重写StartMenu的UI,修复部分渲染bug

This commit is contained in:
2026-03-24 18:42:49 +08:00
parent fc61afb6a7
commit d044e97cea
8 changed files with 363 additions and 76 deletions

View File

@@ -155,6 +155,27 @@ namespace CMLeonOS.Gui.UILib
private int originalWidth;
private int originalHeight;
private void RefreshWindowTree()
{
wm.Update(this);
RenderDecoration();
foreach (Window child in wm.Windows)
{
if (child.RelativeTo == this)
{
if (child is Control control)
{
control.Render();
}
else
{
wm.Update(child);
}
}
}
}
private void StartOpenAnimation()
{
int targetY = Y;
@@ -170,6 +191,7 @@ namespace CMLeonOS.Gui.UILib
EasingType = EasingType.Sine,
EasingDirection = EasingDirection.Out
};
animation.Completed = RefreshWindowTree;
animation.Start();
}