diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-03-08 08:57:24 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-03-08 08:57:24 +0100 |
| commit | 540c8eb095276795f5c7158ebca38ed5939911c6 (patch) | |
| tree | 033344b3442220d367328ce1d1214de334b404a7 | |
| parent | 23bbf6b37c8f11f8d2e5006cc552317171396333 (diff) | |
| parent | 5a3dbea3ed95b6b1ff0847daf1669aa88515801b (diff) | |
| download | redot-engine-540c8eb095276795f5c7158ebca38ed5939911c6.tar.gz | |
Merge pull request #74547 from YuriSizov/theme-wait-you-dropped-font-size
Add missing handler for removing font sizes in Themes
| -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)) { |
