Skip to content

Commit c4297d8

Browse files
committed
Merge pull request godotengine#105197 from bruvzg/inspector_no_focus_draw
Remove focus draw for editor inspector elements.
2 parents aad0bdd + 6808f66 commit c4297d8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

editor/editor_inspector.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,6 @@ void EditorProperty::_notification(int p_what) {
420420
draw_style_box(bg_stylebox, bottom_child_rect);
421421
}
422422

423-
Ref<StyleBox> focus_sb = get_theme_stylebox(SNAME("Focus"), EditorStringName(EditorStyles));
424-
if (focus_sb.is_valid() && has_focus()) {
425-
draw_style_box(focus_sb, Rect2(Vector2(), get_size()));
426-
}
427-
428423
Color color;
429424
if (draw_warning || draw_prop_warning) {
430425
color = get_theme_color(is_read_only() ? SNAME("readonly_warning_color") : SNAME("warning_color"));
@@ -1580,11 +1575,6 @@ void EditorInspectorCategory::_notification(int p_what) {
15801575

15811576
draw_style_box(sb, Rect2(Vector2(), get_size()));
15821577

1583-
Ref<StyleBox> focus_sb = get_theme_stylebox(SNAME("Focus"), EditorStringName(EditorStyles));
1584-
if (focus_sb.is_valid() && has_focus()) {
1585-
draw_style_box(focus_sb, Rect2(Vector2(), get_size()));
1586-
}
1587-
15881578
Ref<Font> font = get_theme_font(SNAME("bold"), EditorStringName(EditorFonts));
15891579
int font_size = get_theme_font_size(SNAME("bold_size"), EditorStringName(EditorFonts));
15901580

@@ -1832,12 +1822,6 @@ void EditorInspectorSection::_notification(int p_what) {
18321822
}
18331823
draw_rect(header_rect, c);
18341824

1835-
// Draw focus.
1836-
Ref<StyleBox> focus_sb = get_theme_stylebox(SNAME("Focus"), EditorStringName(EditorStyles));
1837-
if (focus_sb.is_valid() && has_focus()) {
1838-
draw_style_box(focus_sb, Rect2(Vector2(), get_size()));
1839-
}
1840-
18411825
// Draw header title, folding arrow and count of revertable properties.
18421826
{
18431827
int outer_margin = Math::round(2 * EDSCALE);

0 commit comments

Comments
 (0)