Merge pull request #3159 from neikeq/tab_close_icon
Add tab close icon to the default theme
This commit is contained in:
commit
52e18accf2
@ -708,7 +708,7 @@ void Tabs::add_tab(const String& p_str,const Ref<Texture>& p_icon) {
|
|||||||
t.text=p_str;
|
t.text=p_str;
|
||||||
t.icon=p_icon;
|
t.icon=p_icon;
|
||||||
|
|
||||||
t.close_button = get_icon("Close","EditorIcons");
|
t.close_button = get_icon("close");
|
||||||
|
|
||||||
tabs.push_back(t);
|
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("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","Tabs",make_icon( scroll_button_left_png));
|
||||||
t->set_icon("decrement_hilite","Tabs",make_icon( scroll_button_left_hl_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 );
|
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 New Issue
Block a user