Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improv(app-list): get app icons from icon theme #542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leb-kuchen
Copy link
Contributor

cosmic-launcher and cosmic-app-libary use widget::icon_from_name, so those have different app icons, which does not look good and is confusing.

@@ -181,8 +181,7 @@ impl DockItem {

let app_icon = AppletIconData::new(applet);

let cosmic_icon = IconSource::from_unknown(desktop_info.icon().unwrap_or_default())
.as_cosmic_icon()
let cosmic_icon = cosmic::widget::icon::from_name(desktop_info.icon().unwrap_or_default())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe IconSource::from_unknown is actually correct. Some icons are absolute paths. Maybe app library and launcher should be updated instead. Is the app tray showing the wrong icon?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not applying the icon theme, here Qogir-ubuntu.
image
It could be checked if the path is absolute or IconSource could be improved.

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.

2 participants