From ab6daed4676c559f8a4ef12dd8caa23c10723566 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Mon, 2 Sep 2019 11:45:03 -0300 Subject: [PATCH] Add icon for the ruler tool --- editor/icons/icon_ruler.svg | 5 +++++ editor/plugins/canvas_item_editor_plugin.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 editor/icons/icon_ruler.svg diff --git a/editor/icons/icon_ruler.svg b/editor/icons/icon_ruler.svg new file mode 100644 index 00000000000..a16eda000bd --- /dev/null +++ b/editor/icons/icon_ruler.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 4dda512ceb7..e4cd71fec02 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -3663,7 +3663,7 @@ void CanvasItemEditor::_notification(int p_what) { snap_config_menu->set_icon(get_icon("GuiMiniTabMenu", "EditorIcons")); skeleton_menu->set_icon(get_icon("Bone", "EditorIcons")); pan_button->set_icon(get_icon("ToolPan", "EditorIcons")); - ruler_button->set_icon(get_icon("LineEdit", "EditorIcons")); //Needs a new icon. + ruler_button->set_icon(get_icon("Ruler", "EditorIcons")); pivot_button->set_icon(get_icon("EditPivot", "EditorIcons")); select_handle = get_icon("EditorHandle", "EditorIcons"); anchor_handle = get_icon("EditorControlAnchor", "EditorIcons");