summaryrefslogtreecommitdiffstats
path: root/scene/theme
diff options
context:
space:
mode:
authorvPumpking <121762735+vPumpking@users.noreply.github.com>2024-02-22 18:34:46 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-10-04 11:12:33 +0200
commit62edb4eee8b6c061ec098718e19dc4680da97fad (patch)
tree426c3af05159de610d414e22aeba298645db00a3 /scene/theme
parent5ccbf6e4c794a4e47456edd9434b75fcd6096a2f (diff)
downloadredot-engine-62edb4eee8b6c061ec098718e19dc4680da97fad.tar.gz
Add filename filter field to FileDialog
Added possibility to filter files and folders through a text entry.
Diffstat (limited to 'scene/theme')
-rw-r--r--scene/theme/default_theme.cpp1
-rw-r--r--scene/theme/icons/toggle_filename_filter.svg1
2 files changed, 2 insertions, 0 deletions
diff --git a/scene/theme/default_theme.cpp b/scene/theme/default_theme.cpp
index 0c211be9f9..caf44ac392 100644
--- a/scene/theme/default_theme.cpp
+++ b/scene/theme/default_theme.cpp
@@ -689,6 +689,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_icon("forward_folder", "FileDialog", icons["arrow_right"]);
theme->set_icon("reload", "FileDialog", icons["reload"]);
theme->set_icon("toggle_hidden", "FileDialog", icons["visibility_visible"]);
+ theme->set_icon("toggle_filename_filter", "FileDialog", icons["toggle_filename_filter"]);
theme->set_icon("folder", "FileDialog", icons["folder"]);
theme->set_icon("file", "FileDialog", icons["file"]);
theme->set_icon("create_folder", "FileDialog", icons["folder_create"]);
diff --git a/scene/theme/icons/toggle_filename_filter.svg b/scene/theme/icons/toggle_filename_filter.svg
new file mode 100644
index 0000000000..351cc44ced
--- /dev/null
+++ b/scene/theme/icons/toggle_filename_filter.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><g fill="#e0e0e0"><path d="m13.297.714h-13.013a.454.454 0 0 0 -.318.779l4.615 4.507v7.086a.45.45 0 0 0 .738.354l3.511-2.812a.454.454 0 0 0 .17-.354v-4.274l4.614-4.506a.454.454 0 0 0 -.317-.779z"/><path d="m11.085832 14.18196c3.399443 1.97457 6.855925-2.441094 4.074102-5.1815164-2.781825-2.7404217-7.2642008.6646174-5.2597994 4.0134654l-1.9001346 1.871854 1.1856973 1.168051zm1.699723-4.4945981c2.236109 0 2.236109 3.3042441 0 3.3042441-2.236108 0-2.236108-3.3042441 0-3.3042441z"/></g></svg> \ No newline at end of file