diff options
author | Marius Hanl <mariushanl@web.de> | 2023-04-07 17:44:38 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-04-07 17:44:38 +0200 |
commit | 817da41d55cc50da2bf819f3b2d0204ecb145d7a (patch) | |
tree | 7822804c5192d3b91008f86aec4a621aa467fdd9 /editor | |
parent | 02d0f090c0ab62adb9ebb8798dbd474f91b1d0a1 (diff) |
Fix some theme values affect the editor by setting a default value for the theme constant 'h_separation' for MenuBar and Button and a default value for the theme color 'background_color' for TextEdit
(cherry picked from commit c0905bc0af66c27f032466821ab1ea074d0e9804)
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_themes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 3e6b0ee07f..0d480c7896 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -859,6 +859,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_color("icon_pressed_color", "Button", icon_pressed_color); theme->set_color("icon_disabled_color", "Button", icon_disabled_color); + theme->set_constant("h_separation", "Button", 2 * EDSCALE); theme->set_constant("outline_size", "Button", 0 * EDSCALE); const float ACTION_BUTTON_EXTRA_MARGIN = 32 * EDSCALE; @@ -915,6 +916,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_color("icon_pressed_color", "MenuBar", icon_pressed_color); theme->set_color("icon_disabled_color", "MenuBar", icon_disabled_color); + theme->set_constant("h_separation", "MenuBar", 4 * EDSCALE); theme->set_constant("outline_size", "MenuBar", 0 * EDSCALE); // OptionButton @@ -1450,6 +1452,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_color("font_outline_color", "TextEdit", font_outline_color); theme->set_color("caret_color", "TextEdit", font_color); theme->set_color("selection_color", "TextEdit", selection_color); + theme->set_color("background_color", "TextEdit", Color(0, 0, 0, 0)); + theme->set_constant("line_spacing", "TextEdit", 4 * EDSCALE); theme->set_constant("outline_size", "TextEdit", 0 * EDSCALE); |