Add tab close icon to the default theme
This commit is contained in:
parent
30c12297dc
commit
563c761c8c
4 changed files with 7 additions and 1 deletions
|
@ -708,7 +708,7 @@ void Tabs::add_tab(const String& p_str,const Ref<Texture>& 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);
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
BIN
scene/resources/default_theme/tab_close.png
Normal file
BIN
scene/resources/default_theme/tab_close.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 398 B |
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue