Skip to content

Commit

Permalink
Merge pull request godotengine#46918 from ray90514/debug
Browse files Browse the repository at this point in the history
Fix Tree focus border disappears when Border Size is set to 0
  • Loading branch information
akien-mga authored Mar 12, 2021
2 parents b5406a2 + 4c0ab07 commit adf233e
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 @@ -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();
Expand Down

0 comments on commit adf233e

Please sign in to comment.