summaryrefslogtreecommitdiff
path: root/scene/gui/file_dialog.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-09-01 19:09:33 +0200
committerGitHub <noreply@github.com>2022-09-01 19:09:33 +0200
commit8c7be63588bf3e4ef4b780ff57936c68db5939c7 (patch)
tree781068f8e33aa1704f4fe9d9f4a238397fbee8f1 /scene/gui/file_dialog.h
parentdcd74563b64fb45323c5d99e1382125488b863e8 (diff)
parent15fd025f900de9ff45e60e4b07d8839352d5a1f4 (diff)
Merge pull request #65192 from YuriSizov/control-customizable-cache-p2
Diffstat (limited to 'scene/gui/file_dialog.h')
-rw-r--r--scene/gui/file_dialog.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/scene/gui/file_dialog.h b/scene/gui/file_dialog.h
index 4945094086..5c892288b5 100644
--- a/scene/gui/file_dialog.h
+++ b/scene/gui/file_dialog.h
@@ -109,6 +109,25 @@ private:
bool invalidated = true;
+ struct ThemeCache {
+ Ref<Texture2D> parent_folder;
+ Ref<Texture2D> forward_folder;
+ Ref<Texture2D> back_folder;
+ Ref<Texture2D> reload;
+ Ref<Texture2D> toggle_hidden;
+ Ref<Texture2D> folder;
+ Ref<Texture2D> file;
+
+ Color folder_icon_modulate;
+ Color file_icon_modulate;
+ Color files_disabled;
+
+ Color icon_normal_color;
+ Color icon_hover_color;
+ Color icon_focus_color;
+ Color icon_pressed_color;
+ } theme_cache;
+
void update_dir();
void update_file_name();
void update_file_list();
@@ -143,7 +162,7 @@ private:
virtual void _post_popup() override;
protected:
- void _theme_changed();
+ virtual void _update_theme_item_cache() override;
void _notification(int p_what);
static void _bind_methods();