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

Make buttons toolbar custom hot images more robust #546

Closed
grimes2 opened this issue Apr 23, 2022 · 6 comments · Fixed by #548
Closed

Make buttons toolbar custom hot images more robust #546

grimes2 opened this issue Apr 23, 2022 · 6 comments · Fixed by #548

Comments

@grimes2
Copy link

grimes2 commented Apr 23, 2022

The Default Button Hot Image isn't working anymore.
2022-04-23 14_07_24-Greenshot

@grimes2
Copy link
Author

grimes2 commented Apr 23, 2022

Here the fcb file:
Button7.zip
EDIT: I think now, there is no default hot image for the buttons.

@reupen
Copy link
Owner

reupen commented Apr 23, 2022

Hi,

The default icons have never had hot versions, perhaps you had custom ones before?

I am seeing a couple of problems with custom hot images though:

  • .ico files don't work
  • PNG files misbehave if they aren't the correct size

However, those were both problems in 1.7.0 as far as I can see. If you're seeing a difference from 1.7.0 could you compare with a portable installation?

Thanks

@grimes2
Copy link
Author

grimes2 commented Apr 23, 2022

Added pngs of light oxygen set with size 20x20 pixel as hot image. Looks good on hover.

@reupen
Copy link
Owner

reupen commented Apr 24, 2022

That's good – are you seeing a regression from 1.7.0, then? (I need to improve the general logic around custom images in any case.)

@grimes2
Copy link
Author

grimes2 commented Apr 24, 2022

As far as I can see, there is no regression. In Version 1.7.0, I have used custom images for both normal and hot: 22x22 px pngs. The normal svg buttons in 2.0.0 alpha 1 are awesome, so I use them. The 22x22 px png for hot are too big and are cut, so I resized to 20x20 px. Please enable svg support for custom images. It seems, that Windows Imaging Component (WIC) doesn't support ico. You can drop it from the format list.

@reupen
Copy link
Owner

reupen commented Apr 24, 2022

As far as I can see, there is no regression.

OK – I'll repurpose this issue for fixing ICO files and making things a bit more graceful when hot images are the wrong size.

The normal svg buttons in 2.0.0 alpha 1 are awesome

Thanks!

Please enable svg support for custom images.

There's no native SVG support at the moment, I'm afraid (the SVGs for the default icons are converted to ICO files first). SVG support could be added using a library, though it would make more sense following #421.

It seems, that Windows Imaging Component (WIC) doesn't support ico. You can drop it from the format list.

ICO and BMP files aren't (meant to be) loaded through WIC there – ICO seems fine for non-hot images so not sure what's going wrong for hot ones, but I'll fix it.

@reupen reupen changed the title Button Hot Image not working Make buttons toolbar custom hot images more robush Apr 24, 2022
@reupen reupen changed the title Make buttons toolbar custom hot images more robush Make buttons toolbar custom hot images more robust Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants