diff options
author | Yuri Sizov <yuris@humnom.net> | 2021-07-16 21:32:58 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2021-07-16 21:32:58 +0300 |
commit | d82ec336d99cb8728402d3c279a0f4d344b060db (patch) | |
tree | da3d6014ff83b114caaba7a0a9bae05b36ba29e9 /editor/plugins/theme_editor_preview.h | |
parent | 60add98a4cff0d27c6aa2f52042555eccb86ed70 (diff) | |
download | redot-engine-d82ec336d99cb8728402d3c279a0f4d344b060db.tar.gz |
Fix control picker in the Theme editor
Diffstat (limited to 'editor/plugins/theme_editor_preview.h')
-rw-r--r-- | editor/plugins/theme_editor_preview.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/plugins/theme_editor_preview.h b/editor/plugins/theme_editor_preview.h index efb7e424d4..4e1b149e70 100644 --- a/editor/plugins/theme_editor_preview.h +++ b/editor/plugins/theme_editor_preview.h @@ -60,6 +60,13 @@ class ThemeEditorPreview : public VBoxContainer { Control *picker_overlay; Control *hovered_control = nullptr; + struct ThemeCache { + Ref<StyleBox> preview_picker_overlay; + Color preview_picker_overlay_color; + Ref<StyleBox> preview_picker_label; + Ref<Font> preview_picker_font; + } theme_cache; + double time_left = 0; void _propagate_redraw(Control *p_at); @@ -71,6 +78,7 @@ class ThemeEditorPreview : public VBoxContainer { void _draw_picker_overlay(); void _gui_input_picker_overlay(const Ref<InputEvent> &p_event); + void _reset_picker_overlay(); protected: HBoxContainer *preview_toolbar; |