diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-10-19 18:05:19 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-10-19 18:14:14 +0200 |
commit | 215e036600809fd588ec67b8d39efe12ae1ff4c5 (patch) | |
tree | 2ca6a6cf9df7071a6026f50852a9f3e4894e6518 /editor/project_manager.cpp | |
parent | f8818f85e6c43cdf1277e8ae85eba19ca0a003b0 (diff) | |
download | redot-engine-215e036600809fd588ec67b8d39efe12ae1ff4c5.tar.gz |
Add bulk change guards to successive theme overrides in Editor and GUI
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r-- | editor/project_manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index de807c79e0..40c482eb90 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -993,9 +993,12 @@ void ProjectListItemControl::_notification(int p_what) { project_icon->set_texture(get_editor_theme_icon(SNAME("ProjectIconLoading"))); } + project_title->begin_bulk_theme_override(); project_title->add_theme_font_override("font", get_theme_font(SNAME("title"), EditorStringName(EditorFonts))); project_title->add_theme_font_size_override("font_size", get_theme_font_size(SNAME("title_size"), EditorStringName(EditorFonts))); project_title->add_theme_color_override("font_color", get_theme_color(SNAME("font_color"), SNAME("Tree"))); + project_title->end_bulk_theme_override(); + project_path->add_theme_color_override("font_color", get_theme_color(SNAME("font_color"), SNAME("Tree"))); project_unsupported_features->set_texture(get_editor_theme_icon(SNAME("NodeWarning"))); |