summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorDaniel J. Ramirez <djrmuv@gmail.com>2017-11-20 13:03:22 -0600
committerDaniel J. Ramirez <djrmuv@gmail.com>2017-11-20 13:03:22 -0600
commite5de5b4908fd31954c36662da83c7cf3f60fe2fb (patch)
treea8db1a32386c7ba06902d1c2d105f747e881ed3f /scene/gui
parent82ad05a20ef4420122b18eadf3835c4a8a49ba19 (diff)
Visual fixes
Added some icons (Including the onion one) Fixed text editor ellipsis style and editor tabs
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index c9af7eed0d..21842d4d58 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -1238,7 +1238,9 @@ void TextEdit::_notification(int p_what) {
char_ofs += char_w;
if (j == str.length() - 1 && is_folded(line)) {
- cache.folded_eol_icon->draw(ci, Point2(char_ofs + char_margin, ofs_y), Color(1, 1, 1, 1), true);
+ int yofs = (get_row_height() - cache.folded_eol_icon->get_height()) / 2;
+ int xofs = cache.folded_eol_icon->get_width() / 2;
+ cache.folded_eol_icon->draw(ci, Point2(char_ofs + char_margin + xofs, ofs_y + yofs), Color(1, 1, 1, 1));
}
}
@@ -3937,7 +3939,7 @@ void TextEdit::_update_caches() {
cache.tab_icon = get_icon("tab");
cache.folded_icon = get_icon("GuiTreeArrowRight", "EditorIcons");
cache.can_fold_icon = get_icon("GuiTreeArrowDown", "EditorIcons");
- cache.folded_eol_icon = get_icon("GuiTabMenu", "EditorIcons");
+ cache.folded_eol_icon = get_icon("GuiEllipsis", "EditorIcons");
text.set_font(cache.font);
}