Sfoglia il codice sorgente

Merge pull request #3140 from neikeq/fix_refresh_icon

Add reload icon to FileDialog's default theme
Juan Linietsky 9 anni fa
parent
commit
4dba503fc3

+ 1 - 1
scene/gui/file_dialog.cpp

@@ -49,7 +49,7 @@ void FileDialog::_notification(int p_what) {
 
 	if (p_what==NOTIFICATION_ENTER_TREE) {
 
-		refresh->set_icon(get_icon("Reload","EditorIcons"));
+		refresh->set_icon(get_icon("reload"));
 	}
 	
 	if (p_what==NOTIFICATION_DRAW) {

+ 5 - 1
scene/resources/default_theme/default_theme.cpp

@@ -543,7 +543,11 @@ void make_default_theme() {
 	t->set_constant("close_v_ofs","WindowDialog", 20 );
 	t->set_constant("titlebar_height","WindowDialog", 18 );
 	t->set_constant("title_height","WindowDialog", 20 );
-
+	
+	
+	// File Dialog
+	
+	t->set_icon("reload","FileDialog",make_icon( icon_reload_png ));
 
 
 	// Popup

BIN
scene/resources/default_theme/icon_reload.png


File diff suppressed because it is too large
+ 1 - 0
scene/resources/default_theme/theme_data.h


Some files were not shown because too many files changed in this diff