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 from b1aa779 to 8b5256b Compare June 30, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant