When selecting an image file for the CustomIconPath, the icon is loaded as a bitmap and defaults to a low resolution even though the icon file has a high resolution.
This could probably be easily resolved changing the following lines:
Note: This is untested right now, it was just a thought.
The reason I though of this is because I am setting my profiles as different browsers, and MSEdge creates a Profile icon for each profile: %USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default\Edge Profile.ico
When selecting an image file for the CustomIconPath, the icon is loaded as a bitmap and defaults to a low resolution even though the icon file has a high resolution.
This could probably be easily resolved changing the following lines:
https://github.com/U-C-S/Hurl/blob/71b6b38f50e5dcece37a3f992614e5770225028c/Source/Hurl.Library/Models/Browser.cs#L41-L51
To
also the substring method of the ExePath could be changed to using Trim() for better readability
Notes for the -1, -1 size of the icon, please see this StackOverflow post: https://stackoverflow.com/questions/35081239/how-to-retrieve-the-largest-available-image-from-an-icon-file-using-c-sharp
Note: This is untested right now, it was just a thought.
The reason I though of this is because I am setting my profiles as different browsers, and MSEdge creates a Profile icon for each profile: %USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default\Edge Profile.ico