Skip to content

How to set the taskbar icon on Linux? #31

Answered by coderedart
TakataSanshiro asked this question in Q&A
Discussion options

You must be logged in to vote

ah, because image feature is not enabled by default. you also seem to be using set_icon_from_pixels which is different from set_icon.
add the following dependency to your project, this should enable image feature for glfw crate across your entire dependency tree (including egui_overlay.

[dependencies]
egui_window_glfw_passthrough = { workspace = true, features = ["image"] } # or glfw-passthrough crate. any of them will work

Anyway, I added an example to the repo now which shows how to use set_icon_from_pixels. You don't really need to enable any new features. Just load your image, convert it into rgba8 bytes and set it as the icon.
https://github.com/coderedart/egui_overlay/blob/master/ex…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@coderedart
Comment options

Answer selected by TakataSanshiro
@TakataSanshiro
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants