godot-editor-icons-previewer icon indicating copy to clipboard operation
godot-editor-icons-previewer copied to clipboard

Icons not populating in v4.4

Open anatolbogun opened this issue 1 year ago • 3 comments

Hi, this is the first time I tried your plugin, and it works well, but I had to make a one-line change in Godot v4.4.dev3.official [f4af8201b]. (I haven't tried if earlier versions are also affected.)

I had to change this line to

var godot_theme = get_editor_interface().get_editor_theme()

and after a restart, it worked fine.

Unrelated, but I also added a const DEFAULT_ICON_SIZE = 64, var icon_size = DEFAULT_ICON_SIZE and set the range value in _ready to icon_size, those 16 pixel icons are tiny.

And I commented out icon_size = MIN_ICON_SIZE in _on_window_popup_hide(), so that the selected icon size persists when I reopen the window.

Just my personal preference, and feel free to ignore that. It's just a single user feedback.

Thanks for your plugin, it's really helpful.

anatolbogun avatar Oct 11 '24 06:10 anatolbogun