Skip to content

feat: use different application icon for debug builds - #2495

Open
JC-Chung wants to merge 1 commit into
sourcegit-scm:developfrom
JC-Chung:feat/different-icon-for-debug-builds
Open

feat: use different application icon for debug builds#2495
JC-Chung wants to merge 1 commit into
sourcegit-scm:developfrom
JC-Chung:feat/different-icon-for-debug-builds

Conversation

@JC-Chung

Copy link
Copy Markdown
Contributor

What

Use a distinct icon (AppDev.ico) for non-Release builds so debug and release binaries can be easily told apart in the file explorer and taskbar — including when both versions are pinned to the taskbar.

Changes

  • src/SourceGit.csproj:
    • ApplicationIcon is now conditional (App.ico for Release, AppDev.ico otherwise)
    • DEV_BUILD constant is defined for non-Release builds
    • Both App.ico and AppDev.ico are included as AvaloniaResource
  • src/App.axaml.cs: Apply AppDev.ico to all windows at startup via Window.WindowOpenedEvent class handler when DEV_BUILD is defined
  • src/AppDev.ico: Color-adjusted version of App.ico (hue modified using GIMP). Feel free to replace with a custom design.

The official Release build (-c Release) is unaffected.

@JC-Chung
JC-Chung force-pushed the feat/different-icon-for-debug-builds branch 2 times, most recently from 8b5256b to d8b4cb9 Compare July 6, 2026 02:21
@JC-Chung
JC-Chung force-pushed the feat/different-icon-for-debug-builds branch from d8b4cb9 to ee123bc Compare July 23, 2026 06:15
@JC-Chung
JC-Chung force-pushed the feat/different-icon-for-debug-builds branch from ee123bc to df3cd71 Compare September 1, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant