diff --git a/addons/SimpleTODO/SimpleTODO.gd b/addons/SimpleTODO/SimpleTODO.gd index 9e77eca..7cf4173 100644 --- a/addons/SimpleTODO/SimpleTODO.gd +++ b/addons/SimpleTODO/SimpleTODO.gd @@ -10,7 +10,7 @@ func get_plugin_name(): return "TODO" func get_plugin_icon(): - return get_editor_interface().get_base_control().get_icon("Node", "EditorIcons") + return get_editor_interface().get_base_control().get_theme_icon("Node", "EditorIcons") func has_main_screen() -> bool: return true diff --git a/addons/SimpleTODO/TODOColumn.gd b/addons/SimpleTODO/TODOColumn.gd index cf4fa5c..d5f02d6 100644 --- a/addons/SimpleTODO/TODOColumn.gd +++ b/addons/SimpleTODO/TODOColumn.gd @@ -27,9 +27,9 @@ var mirror_counter func set_minimized(val): minimized = val - minimize_button.icon = get_icon("ArrowDown" if minimized else "ArrowUp", "EditorIcons") + minimize_button.icon = get_theme_icon("ArrowDown" if minimized else "ArrowUp", "EditorIcons") if mirror_header: - mirror_header.get_node("Minimize").icon = get_icon("ArrowDown" if minimized else "ArrowUp", "EditorIcons") + mirror_header.get_node("Header/Minimize").icon = get_theme_icon("ArrowDown" if minimized else "ArrowUp", "EditorIcons") top_separator.visible = !val scroll_container.visible = !val @@ -41,15 +41,15 @@ signal delete func _ready() -> void: set_process(false) item_placement_holder = main.item_placement_holder - delete_button.icon = get_icon("Remove", "EditorIcons") + delete_button.icon = get_theme_icon("Remove", "EditorIcons") counter.rect_min_size.x = delete_button.get_minimum_size().x set_minimized(false) mirror_header = PanelContainer.new() main.column_mirror.add_child(mirror_header) - mirror_header.add_stylebox_override("panel", get_stylebox("panel")) + mirror_header.add_theme_stylebox_override("panel", get_theme_stylebox("panel")) mirror_header.add_child(preload("res://addons/SimpleTODO/ColumnHeader.tscn").instance()) - mirror_header.get_child(0).get_node("Minimize").icon = get_icon("ArrowDown" if minimized else "ArrowUp", "EditorIcons") + mirror_header.get_child(0).get_node("Minimize").icon = get_theme_icon("ArrowDown" if minimized else "ArrowUp", "EditorIcons") mirror_header.get_child(0).get_node("Name").editable = false mirror_counter = mirror_header.get_child(0).get_node("Counter") main.connect_scrollbar(self, "update_mirror") diff --git a/addons/SimpleTODO/TODOItem.gd b/addons/SimpleTODO/TODOItem.gd index c1a61bf..1dbed5d 100644 --- a/addons/SimpleTODO/TODOItem.gd +++ b/addons/SimpleTODO/TODOItem.gd @@ -20,7 +20,7 @@ func _ready() -> void: item_placement_holder = main.item_placement_holder next_parent_column = parent_column - get_node("Button").icon = get_icon("Remove", "EditorIcons") + get_node("Button").icon = get_theme_icon("Remove", "EditorIcons") call_deferred("text_changed") func delete_pressed() -> void: