Skip to content

Conversation

VictoriousRaptor
Copy link
Contributor

Program plugin can't get icons for some uwp programs because of complex icon filenames or path finding issue. Tried to fix it.

@onesounds onesounds added the bug Something isn't working label Oct 20, 2022
Copy link
Member

@taooceros taooceros left a comment

Choose a reason for hiding this comment

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

Check comment and we can merge after that. Could you share an example that the logo won't be loaded so I can give it a test?

// Just ignore all qualifiers
// select like logo.[xxx_yyy].png
// https://learn.microsoft.com/en-us/windows/uwp/app-resources/tailor-resources-lang-scale-contrast
var selected = files.FirstOrDefault(file =>
Copy link
Member

Choose a reason for hiding this comment

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

maybe we should prefer $44\times44$ if possible to reduce image size? Though it's not a big deal if it is hard.

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's easy but I found some apps don't have a 44x44 logo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Try to find closest to 44x44 in the new commit. It seems to work well.

@VictoriousRaptor
Copy link
Contributor Author

Check comment and we can merge after that. Could you share an example that the logo won't be loaded so I can give it a test?

windows security center

@VictoriousRaptor VictoriousRaptor changed the title Fix UWP icon missing issue [Program Plugin] Fix UWP icon missing issue Oct 30, 2022
@taooceros
Copy link
Member

@VictoriousRaptor What do you think about just use the icoPath property instead of the callback to let ImageLoader loads the image? I think it's no difference than a specific logo (we can adjust the imageloader a bit to load the actual image but currently icon also works I think).

@VictoriousRaptor
Copy link
Contributor Author

@VictoriousRaptor What do you think about just use the icoPath property instead of the callback to let ImageLoader loads the image? I think it's no difference than a specific logo (we can adjust the imageloader a bit to load the actual image but currently icon also works I think).

Don't quite know how the current callback works. What is the purpose of this change?

@taooceros
Copy link
Member

@VictoriousRaptor What do you think about just use the icoPath property instead of the callback to let ImageLoader loads the image? I think it's no difference than a specific logo (we can adjust the imageloader a bit to load the actual image but currently icon also works I think).

Don't quite know how the current callback works. What is the purpose of this change?

As you have commented. Let the imageloader loads the icon?

The current callback handles that separately, but I think it is unnecessary since there is a logo image there.

@VictoriousRaptor
Copy link
Contributor Author

@VictoriousRaptor What do you think about just use the icoPath property instead of the callback to let ImageLoader loads the image? I think it's no difference than a specific logo (we can adjust the imageloader a bit to load the actual image but currently icon also works I think).

Don't quite know how the current callback works. What is the purpose of this change?

As you have commented. Let the imageloader loads the icon?

The current callback handles that separately, but I think it is unnecessary since there is a logo image there.

I think it's fine. But current callback make the image plated so we need to beware of that.

@taooceros
Copy link
Member

yeah I am ok with the current change. Let's leave it to the future~

Copy link
Member

@taooceros taooceros left a comment

Choose a reason for hiding this comment

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

LGTM! Sorry for the late testing....

@VictoriousRaptor VictoriousRaptor merged commit a2c2da0 into Flow-Launcher:dev Nov 11, 2022
@VictoriousRaptor VictoriousRaptor deleted the FixProgramIcons branch November 11, 2022 09:28
@jjw24 jjw24 added this to the 1.10.0 milestone Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants