From fbc0c39a37f162dff879ae9e8d4f6a8ccf3b46fe Mon Sep 17 00:00:00 2001 From: Macocian Alexandru Victor Date: Mon, 12 Jan 2026 01:18:30 +0100 Subject: [PATCH] Fix taskbar icon (#1271) --- Daybreak.Shared/Utils/NativeMethods.cs | 4 +++ Daybreak/Daybreak.csproj | 10 ++++++ Daybreak/Launch/Launcher.Main.cs | 2 ++ Daybreak/Launch/Launcher.Shared.cs | 48 ++++++++++++++++++++++++++ Daybreak/Launch/Launcher.cs | 3 -- 5 files changed, 64 insertions(+), 3 deletions(-) diff --git a/Daybreak.Shared/Utils/NativeMethods.cs b/Daybreak.Shared/Utils/NativeMethods.cs index d6b5ac39..288815c3 100644 --- a/Daybreak.Shared/Utils/NativeMethods.cs +++ b/Daybreak.Shared/Utils/NativeMethods.cs @@ -6,6 +6,10 @@ namespace Daybreak.Shared.Utils; public static class NativeMethods { + public const uint WM_SETICON = 0x0080; + public const nint ICON_BIG = 1; // 32x32 (taskbar icon) + public const nint ICON_SMALL = 0; // 16x16 (title bar icon) + public const int STD_OUTPUT_HANDLE = -11; public const int ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004; public const int ENABLE_PROCESSED_OUTPUT = 0x0001; diff --git a/Daybreak/Daybreak.csproj b/Daybreak/Daybreak.csproj index 6320aac1..e39931a7 100644 --- a/Daybreak/Daybreak.csproj +++ b/Daybreak/Daybreak.csproj @@ -129,6 +129,16 @@ + + + + + + + Never + + +