summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorMicky <micheledevita2@gmail.com>2024-03-08 23:07:08 +0100
committerMicky <micheledevita2@gmail.com>2024-06-06 13:43:07 +0200
commit5749007f47cffb1081bcb41626fa4c5ad3b1113c (patch)
tree45bf0f1d19c6ec1fc433649011db5a4777e0db95 /editor
parentffc41fb76df5922321cdd98cce12715a039629b0 (diff)
downloadredot-engine-5749007f47cffb1081bcb41626fa4c5ad3b1113c.tar.gz
Add pre-4.3 Editor theme color names for compatibility
Diffstat (limited to 'editor')
-rw-r--r--editor/themes/editor_theme_manager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp
index 6849d87923..54e0929c60 100644
--- a/editor/themes/editor_theme_manager.cpp
+++ b/editor/themes/editor_theme_manager.cpp
@@ -446,6 +446,9 @@ void EditorThemeManager::_create_shared_styles(const Ref<EditorTheme> &p_theme,
p_theme->set_color("success_color", EditorStringName(Editor), p_config.success_color);
p_theme->set_color("warning_color", EditorStringName(Editor), p_config.warning_color);
p_theme->set_color("error_color", EditorStringName(Editor), p_config.error_color);
+#ifndef DISABLE_DEPRECATED // Used before 4.3.
+ p_theme->set_color("disabled_highlight_color", EditorStringName(Editor), p_config.highlight_disabled_color);
+#endif
// Only used when the Draw Extra Borders editor setting is enabled.
p_config.extra_border_color_1 = Color(0.5, 0.5, 0.5);
@@ -475,6 +478,12 @@ void EditorThemeManager::_create_shared_styles(const Ref<EditorTheme> &p_theme,
p_theme->set_color("font_readonly_color", EditorStringName(Editor), p_config.font_readonly_color);
p_theme->set_color("font_placeholder_color", EditorStringName(Editor), p_config.font_placeholder_color);
p_theme->set_color("font_outline_color", EditorStringName(Editor), p_config.font_outline_color);
+#ifndef DISABLE_DEPRECATED // Used before 4.3.
+ p_theme->set_color("readonly_font_color", EditorStringName(Editor), p_config.font_readonly_color);
+ p_theme->set_color("disabled_font_color", EditorStringName(Editor), p_config.font_disabled_color);
+ p_theme->set_color("readonly_color", EditorStringName(Editor), p_config.font_readonly_color);
+ p_theme->set_color("highlighted_font_color", EditorStringName(Editor), p_config.font_hover_color); // Closest equivalent.
+#endif
// Icon colors.
@@ -2056,6 +2065,9 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
p_theme->set_color("prop_category", EditorStringName(Editor), prop_category_color);
p_theme->set_color("prop_section", EditorStringName(Editor), prop_section_color);
p_theme->set_color("prop_subsection", EditorStringName(Editor), prop_subsection_color);
+#ifndef DISABLE_DEPRECATED // Used before 4.3.
+ p_theme->set_color("property_color", EditorStringName(Editor), prop_category_color);
+#endif
// EditorInspectorCategory.