Skip to content

Add window icon support - #51

Merged
bennekrouf merged 1 commit into
mainfrom
feat-window-icon
Sep 3, 2026
Merged

Add window icon support#51
bennekrouf merged 1 commit into
mainfrom
feat-window-icon

Conversation

@bennekrouf

Copy link
Copy Markdown
Owner

What changed

  • Added support for setting a window icon in the Rust desktop application.
  • Updated Cargo.toml to include the image crate for decoding the icon image.
  • Modified src/main.rs to include a function window_icon that loads and resizes the icon image from assets/icon.png and sets it as the window icon.

Why

  • To enhance the visual identity of the application by displaying a custom icon in the window title bar, taskbar, and other system areas.

How to test

  • Launch the application.
  • Observe the window title bar, taskbar button, and Start menu shortcut to ensure the custom icon is displayed correctly.
  • Verify that the icon appears sharp and is not pixelated or blurry.

Adds support for setting a custom window icon using the `image` crate.
@bennekrouf
bennekrouf merged commit 6f67613 into main Sep 3, 2026
1 of 2 checks passed
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