Code cleanup

This commit is contained in:
Stone_Red
2026-06-16 20:14:15 +02:00
parent f049a43dfd
commit 5265f2b574
7 changed files with 21 additions and 18 deletions
+3 -3
View File
@@ -58,7 +58,7 @@ internal class DesktopProcess() : Process("Desktop Manager")
startButton = taskbar.CreateUIElement<Button>(b =>
{
b.Position = new Point(2, 2);
b.Size = new Size(50, taskbarH - 4);
b.Size = new Size(65, taskbarH - 4);
b.Text = "Start";
b.BackgroundColor = Color.FromArgb(0, 100, 180);
b.TextColor = Color.White;
@@ -158,13 +158,13 @@ internal class DesktopProcess() : Process("Desktop Manager")
// Build lookup of existing tracked windows
Dictionary<int, Button> tracked = [];
foreach (var (winId, btn) in windowButtons)
foreach ((int winId, Button? btn) in windowButtons)
{
tracked[winId] = btn;
}
// Add new buttons and reposition everything in one pass
int btnX = 56;
int btnX = startButton.Size.Width + 6;
windowButtons.Clear();
foreach (Window win in allWindows)
{