Skip to content

Commit

Permalink
Fix Tree focus border disappears when Border Size is set to 0
Browse files Browse the repository at this point in the history
(cherry picked from commit 4c0ab07)
  • Loading branch information
ray90514 authored and akien-mga committed Mar 12, 2021
1 parent ab3b7a5 commit b169a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor_themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,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();
Expand Down

0 comments on commit b169a16

Please sign in to comment.