mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Rename FileDialog's folder icon custom color to folder_icon_modulate
				
					
				
			The custom color introduced in be8d569744
had the same name as the "folder" icon, which could cause conflicts
in the generated documentation.
The new name is also more self-explanatory.
			
			
This commit is contained in:
		
							parent
							
								
									99980d856b
								
							
						
					
					
						commit
						e1b9004b0f
					
				
					 6 changed files with 11 additions and 9 deletions
				
			
		|  | @ -257,7 +257,7 @@ void EditorFileDialog::_post_popup() { | |||
| 
 | ||||
| 	if (is_visible_in_tree()) { | ||||
| 		Ref<Texture> folder = get_icon("folder", "FileDialog"); | ||||
| 		const Color folder_color = get_color("folder", "FileDialog"); | ||||
| 		const Color folder_color = get_color("folder_icon_modulate", "FileDialog"); | ||||
| 		recent->clear(); | ||||
| 
 | ||||
| 		bool res = access == ACCESS_RESOURCES; | ||||
|  | @ -736,7 +736,7 @@ void EditorFileDialog::update_file_list() { | |||
| 	dir_access->list_dir_begin(); | ||||
| 
 | ||||
| 	Ref<Texture> folder = get_icon("folder", "FileDialog"); | ||||
| 	const Color folder_color = get_color("folder", "FileDialog"); | ||||
| 	const Color folder_color = get_color("folder_icon_modulate", "FileDialog"); | ||||
| 	List<String> files; | ||||
| 	List<String> dirs; | ||||
| 
 | ||||
|  | @ -1204,7 +1204,7 @@ void EditorFileDialog::_update_favorites() { | |||
| 
 | ||||
| 	String current = get_current_dir(); | ||||
| 	Ref<Texture> folder_icon = get_icon("Folder", "EditorIcons"); | ||||
| 	const Color folder_color = get_color("folder", "FileDialog"); | ||||
| 	const Color folder_color = get_color("folder_icon_modulate", "FileDialog"); | ||||
| 	favorites->clear(); | ||||
| 
 | ||||
| 	favorite->set_pressed(false); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hugo Locurcio
						Hugo Locurcio