diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-02 19:58:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-02 19:58:50 +0200 |
commit | d03ce5c2271ef2d8f7f44003a6aa678149943f4a (patch) | |
tree | 02a96b61360af56fb298198c0e463a00491476f5 | |
parent | 85955c5f25032f546aaccd7820a63ca009e1fef1 (diff) | |
parent | ab6daed4676c559f8a4ef12dd8caa23c10723566 (diff) |
Merge pull request #31902 from YeldhamDev/ruler_icon
Add icon for the ruler tool
-rw-r--r-- | editor/icons/icon_ruler.svg | 5 | ||||
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/editor/icons/icon_ruler.svg b/editor/icons/icon_ruler.svg new file mode 100644 index 0000000000..a16eda000b --- /dev/null +++ b/editor/icons/icon_ruler.svg @@ -0,0 +1,5 @@ +<svg width="16" height="16" version="1.1" viewBox="0 0 4.2333 4.2333" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(0 -292.77)"> +<path transform="matrix(.26458 0 0 .26458 0 292.77)" d="m1 1v7.5 6.5h14l-14-14zm3 7 4 4h-4v-4z" fill="#e0e0e0"/> +</g> +</svg> diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 4dda512ceb..e4cd71fec0 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"); |