更新GUI登录UI,更新UILib

This commit is contained in:
2026-03-23 21:34:21 +08:00
parent 9162e2d69d
commit 9197dfbaa3
13 changed files with 332 additions and 102 deletions

View File

@@ -74,7 +74,7 @@ namespace CMLeonOS.Gui.UILib
}
}
private Color _background = Color.White;
private Color _background = UITheme.Surface;
internal Color Background
{
get
@@ -88,7 +88,7 @@ namespace CMLeonOS.Gui.UILib
}
}
private Color _foreground = Color.Black;
private Color _foreground = UITheme.TextPrimary;
internal Color Foreground
{
get
@@ -117,7 +117,8 @@ namespace CMLeonOS.Gui.UILib
int textX = iconSize + 8;
int textY = (Height / 2) - (16 / 2);
DrawFilledRectangle(iconX, iconY, iconSize, iconSize, Color.LightGray);
DrawFilledRectangle(iconX, iconY, iconSize, iconSize, _checked ? UITheme.AccentLight : UITheme.SurfaceMuted);
DrawRectangle(iconX, iconY, iconSize, iconSize, _checked ? UITheme.Accent : UITheme.SurfaceBorder);
if (_checked)
{
DrawImageAlpha(checkBitmap, iconX, iconY);
@@ -128,4 +129,4 @@ namespace CMLeonOS.Gui.UILib
WM.Update(this);
}
}
}
}