summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-12 13:42:54 +0100
committerGitHub <noreply@github.com>2021-03-12 13:42:54 +0100
commitadf233ed0436a0564db7682b4ce0931656d4c392 (patch)
tree0e7efb946d9e742cac2b92f93eec6be7e1f5e5f0 /editor
parentb5406a293d06ecdecaaf173b223f5f1cf8f120a5 (diff)
parent4c0ab0780936538bf9fb4bf2f11f61eafdce76d2 (diff)
Merge pull request #46918 from ray90514/debug
Fix Tree focus border disappears when Border Size is set to 0
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_themes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index fe748b81c3..030d36ff78 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -852,7 +852,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
Ref<StyleBoxFlat> style_tree_cursor = style_default->duplicate();
style_tree_cursor->set_draw_center(false);
- style_tree_cursor->set_border_width_all(border_width);
+ style_tree_cursor->set_border_width_all(MAX(1, border_width));
style_tree_cursor->set_border_color(contrast_color_1);
Ref<StyleBoxFlat> style_tree_title = style_default->duplicate();