Skip to content

Commit

Permalink
make sprites visible for light themes
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Oct 24, 2023
1 parent 5effe55 commit 8987924
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/pronto/helpers/sprite_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ func add_icon(p_icon, p_name):
icon.tooltip_text = p_name
icon.name = p_name
icon.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST


var s = G.at("_pronto_editor_plugin").get_editor_interface().get_editor_settings()
icon.self_modulate = s.get("interface/theme/base_color").inverted()

icon.gui_input.connect(Callable(_icon_gui_input).bind(icon))
%container.add_child(icon)

Expand Down

0 comments on commit 8987924

Please sign in to comment.