pandora
pandora copied to clipboard
Icons Don't scale
if you download svg files and use them as icons...
they don't scale down
I basicaly downloaded some svgs from game-icons and well that is how it looks
@pietru2004 this is a Godot bug - icon .svgs need to be 16x16 pixels. Try the same with
@icon("my-icon.svg") on custom scenes and you see a terrible surprise.
Erm
1 is there fix on horizon for that ?
2 can't you use/allow people to use expand icon property?
Example from button
or use set_icon_region or set_icon_max_width ? Under and above https://docs.godotengine.org/en/stable/classes/class_treeitem.html#class-treeitem-method-set-icon-modulate
@pietru2004 feel free to raise a pull request!
I would, but my problem is school year that just started and I am in final class I can try, but I can't promise anything
I tried it out and well
20 seams as good amount of max pixels
this is 24
I think it could be selectable between 16 and max 28/32 pixels in steps of 4
I think it would be the same level of ease of base implement as https://github.com/bitbrain/pandora/discussions/107 https://github.com/bitbrain/pandora/issues/110
@pietru2004 you may also need to take editor scale into account.
I guess it could use editor_scale*desired_pixel_size, so .5 would give 8 pixels and 2 would 32 if input is 16... I would ned to look for way to get interface scale
so from what I see there is EditorPlugin.get_editor_interface.
And on that you can run get_editor_scale()
I got once way to use interface to generate mesh preview...
so it could be like
ei.get_editor_scale()