From e43417cd68a7958c86eff5ec827e42af45237e52 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sun, 22 Mar 2026 18:30:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E4=BF=A9=E7=BB=84=E4=BB=B6=E6=94=B9?= =?UTF-8?q?=E5=88=B0=E4=B8=AD=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BuildTime.txt | 2 +- GitCommit.txt | 2 +- Gui/ShellComponents/Lock.cs | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/BuildTime.txt b/BuildTime.txt index 936c40b..f56512b 100644 --- a/BuildTime.txt +++ b/BuildTime.txt @@ -1 +1 @@ -2026-03-22 13:55:03 \ No newline at end of file +2026-03-22 18:25:04 \ No newline at end of file diff --git a/GitCommit.txt b/GitCommit.txt index ccbc055..5877de7 100644 --- a/GitCommit.txt +++ b/GitCommit.txt @@ -1 +1 @@ -126017b \ No newline at end of file +1907cdb \ No newline at end of file diff --git a/Gui/ShellComponents/Lock.cs b/Gui/ShellComponents/Lock.cs index 7fd6020..2bbba88 100644 --- a/Gui/ShellComponents/Lock.cs +++ b/Gui/ShellComponents/Lock.cs @@ -164,9 +164,12 @@ namespace CMLeonOS.Gui.ShellComponents RenderBackground(); - int boxesStartY = (int)(padding + Images.Icon_Key.Height + padding); + int contentHeight = 110; + int contentWidth = 160; + int startX = (width - contentWidth) / 2; + int startY = (height - contentHeight) / 2; - userTable = new Table(window, padding, boxesStartY, 160, 80); + userTable = new Table(window, startX, startY, contentWidth, 80); userTable.CellHeight = 25; userTable.Background = Color.White; userTable.Foreground = Color.Black; @@ -190,7 +193,7 @@ namespace CMLeonOS.Gui.ShellComponents wm.AddWindow(userTable); - passwordBox = new TextBox(window, padding, boxesStartY + 90, 160, 20); + passwordBox = new TextBox(window, startX, startY + 90, contentWidth, 20); passwordBox.Shield = true; passwordBox.PlaceholderText = "Password"; passwordBox.Submitted = LogOn;