移植更新:桌面环境的Event Log移植功能

This commit is contained in:
2026-03-13 21:30:02 +08:00
parent 80413769f0
commit 518de24414
6 changed files with 7 additions and 7 deletions

View File

@@ -1 +1 @@
2026-03-08 22:18:30
2026-03-13 19:25:57

View File

@@ -1 +1 @@
2138a4b
8041376

View File

@@ -63,7 +63,7 @@ namespace CMLeonOS.Gui.ShellComponents.Dock
window.MoveAndResize((int)(wm.ScreenWidth / 2 - newDockWidth / 2), window.Y, newDockWidth, window.Height);
}
window.Clear(Color.FromArgb(130, 202, 255));
window.Clear(Color.FromArgb(211, 211, 211));
int x = 0;
foreach (var icon in Icons)

View File

@@ -116,8 +116,6 @@ namespace CMLeonOS.Gui.ShellComponents
Logger.Logger.Instance.Info("Lock", $"User found: {foundUser.Username}, Admin: {foundUser.Admin}");
string hashedInputPassword = UserSystem.HashPasswordSha256(password);
Logger.Logger.Instance.Info("Lock", $"Password hash: {hashedInputPassword}");
Logger.Logger.Instance.Info("Lock", $"Stored password hash: {foundUser.Password}");
if (foundUser.Password != hashedInputPassword)
{

View File

@@ -68,6 +68,8 @@ namespace CMLeonOS.Logger
{
WriteToConsole(entry);
}
CMLeonOS.Logger.Log.Emit(level, source, message);
}
public void Debug(string source, string message)

View File

@@ -62,7 +62,7 @@ namespace CMLeonOS
public override void Run()
{
CMLeonOS.Logger.Logger.Instance.Info($"Command_{command}", $"Executing command: {command} {args}");
CMLeonOS.Logger.Logger.Instance.Debug($"Command_{command}", $"Executing command: {command} {args}");
try
{
@@ -73,7 +73,7 @@ namespace CMLeonOS
CMLeonOS.Logger.Logger.Instance.Error($"Command_{command}", $"Command failed: {e.ToString()}");
}
CMLeonOS.Logger.Logger.Instance.Info($"Command_{command}", $"Command completed: {command}");
CMLeonOS.Logger.Logger.Instance.Debug($"Command_{command}", $"Command completed: {command}");
}
}
}