diff options
author | merumelu <merumelu@protonmail.com> | 2019-08-24 17:13:48 +0200 |
---|---|---|
committer | merumelu <merumelu@protonmail.com> | 2019-08-24 17:37:22 +0200 |
commit | eac0af5892a4cfa92e6cae1224f671a4d7bf9901 (patch) | |
tree | 8220ed22173541ff5c51e78898bcb5cd3970787d /editor | |
parent | f2777c04c3957984ac66f5c19b4b796b57ef790c (diff) |
Tree: fix and expose icon modulation
Diffstat (limited to 'editor')
-rw-r--r-- | editor/filesystem_dock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 84631f3e38..a729befe8e 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -63,7 +63,7 @@ bool FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory subdirectory_item->set_text(0, dname); subdirectory_item->set_icon(0, get_icon("Folder", "EditorIcons")); - subdirectory_item->set_icon_color(0, get_color("folder_icon_modulate", "FileDialog")); + subdirectory_item->set_icon_modulate(0, get_color("folder_icon_modulate", "FileDialog")); subdirectory_item->set_selectable(0, true); String lpath = p_dir->get_path(); subdirectory_item->set_metadata(0, lpath); @@ -214,7 +214,7 @@ void FileSystemDock::_update_tree(const Vector<String> &p_uncollapsed_paths, boo TreeItem *ti = tree->create_item(favorites); ti->set_text(0, text); ti->set_icon(0, icon); - ti->set_icon_color(0, color); + ti->set_icon_modulate(0, color); ti->set_tooltip(0, fave); ti->set_selectable(0, true); ti->set_metadata(0, fave); |