diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-03-07 13:42:42 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-13 22:22:05 +0100 |
commit | 84e9a79ace17094a3d0f7cde5af2f35ce2c8986f (patch) | |
tree | b615e78de7fff785e8d5e191b4401da99f44367d /editor/plugins | |
parent | a41a813af40387eb5ff93a0ecc21a8122d99d9fb (diff) |
Add missing handler for removing font sizes in Themes
(cherry picked from commit 5a3dbea3ed95b6b1ff0847daf1669aa88515801b)
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/theme_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp index 2519928ea3..c91d653692 100644 --- a/editor/plugins/theme_editor_plugin.cpp +++ b/editor/plugins/theme_editor_plugin.cpp @@ -2952,6 +2952,10 @@ void ThemeTypeEditor::_item_remove_cbk(int p_data_type, String p_item_name) { ur->add_undo_method(*edited_theme, "set_font", p_item_name, edited_type, Ref<Font>()); } } break; + case Theme::DATA_TYPE_FONT_SIZE: { + ur->add_do_method(*edited_theme, "clear_font_size", p_item_name, edited_type); + ur->add_undo_method(*edited_theme, "set_font_size", p_item_name, edited_type, edited_theme->get_font_size(p_item_name, edited_type)); + } break; case Theme::DATA_TYPE_ICON: { ur->add_do_method(*edited_theme, "clear_icon", p_item_name, edited_type); if (edited_theme->has_icon(p_item_name, edited_type)) { |