From 563c761c8cf24281bc74b05f0c2318596d08938a Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Tue, 29 Dec 2015 12:09:41 +0100 Subject: [PATCH] Add tab close icon to the default theme --- scene/gui/tabs.cpp | 2 +- scene/resources/default_theme/default_theme.cpp | 1 + scene/resources/default_theme/tab_close.png | Bin 0 -> 398 bytes scene/resources/default_theme/theme_data.h | 5 +++++ 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 scene/resources/default_theme/tab_close.png diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 5f4215a1d50..25e3ad4a694 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -708,7 +708,7 @@ void Tabs::add_tab(const String& p_str,const Ref& p_icon) { t.text=p_str; t.icon=p_icon; - t.close_button = get_icon("Close","EditorIcons"); + t.close_button = get_icon("close"); tabs.push_back(t); diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index e642efebb6d..ce3c3c2f26e 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -717,6 +717,7 @@ void make_default_theme() { t->set_icon("increment_hilite","Tabs",make_icon( scroll_button_right_hl_png)); t->set_icon("decrement","Tabs",make_icon( scroll_button_left_png)); t->set_icon("decrement_hilite","Tabs",make_icon( scroll_button_left_hl_png)); + t->set_icon("close","Tabs",make_icon( tab_close_png)); t->set_font("font","Tabs", default_font ); diff --git a/scene/resources/default_theme/tab_close.png b/scene/resources/default_theme/tab_close.png new file mode 100644 index 0000000000000000000000000000000000000000..10e56d5bb8a881781fc4a0ea13272ac4267de625 GIT binary patch literal 398 zcmV;90df9`P)a(TajLJqW}@h!YYZ_-Bgy0S<{1Jx8&Bu!U1W&ZgN#z9b)T zmR6SSosm5@a8Q;~s=Xi8s<|3@u$i627)@0#{l}CNsp?aV(afyzwS{MkF&Y2`K+Jqg zM4tduRbND81z-oD>bh<*AxJ6Js(K|N?+y=`*0=*uWx=)pOjU10