-
Notifications
You must be signed in to change notification settings - Fork 0
Use current display scale for icon fetching #1
Comments
wow, thanks for trying this out, it's a bit early :) What is your display scale? The code currently prefers 2x icons.. What is the compositor, is it running on hardware directly or windowed? |
My environment:
I haven't tried yet, but I can test with Wayfire as well. I'm a big fan of Plank from elementary OS, and desperately want something that runs on non-GNOME wayland. |
You can try something like this for now to get the more "perfect" icons (for the raster ones) for scale 1 rather than downscaling: --- i/shell/src/util/apps.rs
+++ w/shell/src/util/apps.rs
@@ -76,9 +76,7 @@ fn themed_icon(icon: &gio::ThemedIcon) -> Option<linicon::IconPath> {
let names = icon.get_names();
let name = names.iter().next()?;
// TODO: get current scale from caller instead of assuming 2
- icons_iter(name, dock::ICON_SIZE, 2)
- .chain(icons_iter(name, dock::ICON_SIZE * 2, 1))
- .chain(icons_iter(name, dock::ICON_SIZE, 1))
+ icons_iter(name, dock::ICON_SIZE, 1)
.chain(icons_iter(name, 512, 1))
.chain(icons_iter(name, 256, 1))
.chain(icons_iter(name, 128, 1)) |
Ooh thanks! That looks so much better. I don't know anything about Rust, but I'm going to try and poke at the code over the weekend. |
I'll leave this issue open as a reminder for myself to prioritize the |
Icons are pixelated or blurry

The text was updated successfully, but these errors were encountered: