diff options
| author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-03-14 13:57:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 13:57:36 +0100 |
| commit | 258ea41ffa00a71bbb6ba9844840f18ba5802816 (patch) | |
| tree | b615e78de7fff785e8d5e191b4401da99f44367d /editor/plugins/theme_editor_plugin.cpp | |
| parent | 30e81fcc26ee4e9394abe2504c6dd613b06a85db (diff) | |
| parent | 84e9a79ace17094a3d0f7cde5af2f35ce2c8986f (diff) | |
Merge pull request #74884 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.1) - 2nd batch
Diffstat (limited to 'editor/plugins/theme_editor_plugin.cpp')
| -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)) { |