You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user