diff options
| author | Yuri Sizov <yuris@humnom.net> | 2023-09-08 21:00:10 +0200 |
|---|---|---|
| committer | Yuri Sizov <yuris@humnom.net> | 2023-09-11 13:45:23 +0200 |
| commit | 2924bfd4d3c6dbdf01df3263000070634826f0a9 (patch) | |
| tree | 779d2aa57557af3c2fe2828e6a3a570a32e7a61b /scene/gui/panel.cpp | |
| parent | 8c1817f755b63a69378774d8d0f74499f663afe2 (diff) | |
| download | redot-engine-2924bfd4d3c6dbdf01df3263000070634826f0a9.tar.gz | |
Register theme properties with ThemeDB
Diffstat (limited to 'scene/gui/panel.cpp')
| -rw-r--r-- | scene/gui/panel.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scene/gui/panel.cpp b/scene/gui/panel.cpp index 1377bcdb51..8096191933 100644 --- a/scene/gui/panel.cpp +++ b/scene/gui/panel.cpp @@ -29,12 +29,7 @@ /**************************************************************************/ #include "panel.h" - -void Panel::_update_theme_item_cache() { - Control::_update_theme_item_cache(); - - theme_cache.panel_style = get_theme_stylebox(SNAME("panel")); -} +#include "scene/theme/theme_db.h" void Panel::_notification(int p_what) { switch (p_what) { @@ -45,6 +40,10 @@ void Panel::_notification(int p_what) { } } +void Panel::_bind_methods() { + BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, Panel, panel_style, "panel"); +} + Panel::Panel() { // Has visible stylebox, so stop by default. set_mouse_filter(MOUSE_FILTER_STOP); |
