How to set the taskbar icon on Linux? #31
-
Is this function? How to do it when using egui_overlay? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
did you try using glfw directly? we dont support viewport commands as multiple windows with overlay is a little complex. |
Beta Was this translation helpful? Give feedback.
-
error[E0308]: mismatched types |
Beta Was this translation helpful? Give feedback.
ah, because image feature is not enabled by default. you also seem to be using
set_icon_from_pixels
which is different fromset_icon
.add the following dependency to your project, this should enable image feature for glfw crate across your entire dependency tree (including egui_overlay.
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…