App icon not showing up on KDE endeavor OS (Arch based) distro.
CodeCanna opened this issue · 2 comments
CodeCanna commented
Describe the bug
The app logo should appear in the app drawer when the application opens.
To Reproduce
Steps to reproduce the behavior:
- Run this application with
cargo run
on a KDE based system - You should see the app logo in the bottom menu bar, but its not showing up for me
Expected behavior
The app logo should appear in the app drawer/menubar
Desktop (please complete the following information):
- OS: EndeavorOS
- Browser N/A
- Version Latest
Additional context
This works on Linux Mint, Windows, and FreeBSD, the logo shows up on all of these.
The code for loading the logo
fn load_icon(path: &str) -> egui::IconData {
let (icon_rgba, icon_width, icon_height) = {
let image = image::open(path)
.expect("Failed to open icon path")
.into_rgba8();
let (width, height) = image.dimensions();
let rgba = image.into_raw();
(rgba, width, height)
};
egui::IconData {
rgba: icon_rgba,
width: icon_width,
height: icon_height,
}
}