Remove focus draw for editor inspector elements.
This commit is contained in:
@@ -420,11 +420,6 @@ void EditorProperty::_notification(int p_what) {
|
||||
draw_style_box(bg_stylebox, bottom_child_rect);
|
||||
}
|
||||
|
||||
Ref<StyleBox> focus_sb = get_theme_stylebox(SNAME("Focus"), EditorStringName(EditorStyles));
|
||||
if (focus_sb.is_valid() && has_focus()) {
|
||||
draw_style_box(focus_sb, Rect2(Vector2(), get_size()));
|
||||
}
|
||||
|
||||
Color color;
|
||||
if (draw_warning || draw_prop_warning) {
|
||||
color = get_theme_color(is_read_only() ? SNAME("readonly_warning_color") : SNAME("warning_color"));
|
||||
@@ -1580,11 +1575,6 @@ void EditorInspectorCategory::_notification(int p_what) {
|
||||
|
||||
draw_style_box(sb, Rect2(Vector2(), get_size()));
|
||||
|
||||
Ref<StyleBox> focus_sb = get_theme_stylebox(SNAME("Focus"), EditorStringName(EditorStyles));
|
||||
if (focus_sb.is_valid() && has_focus()) {
|
||||
draw_style_box(focus_sb, Rect2(Vector2(), get_size()));
|
||||
}
|
||||
|
||||
Ref<Font> font = get_theme_font(SNAME("bold"), EditorStringName(EditorFonts));
|
||||
int font_size = get_theme_font_size(SNAME("bold_size"), EditorStringName(EditorFonts));
|
||||
|
||||
@@ -1832,12 +1822,6 @@ void EditorInspectorSection::_notification(int p_what) {
|
||||
}
|
||||
draw_rect(header_rect, c);
|
||||
|
||||
// Draw focus.
|
||||
Ref<StyleBox> focus_sb = get_theme_stylebox(SNAME("Focus"), EditorStringName(EditorStyles));
|
||||
if (focus_sb.is_valid() && has_focus()) {
|
||||
draw_style_box(focus_sb, Rect2(Vector2(), get_size()));
|
||||
}
|
||||
|
||||
// Draw header title, folding arrow and count of revertable properties.
|
||||
{
|
||||
int outer_margin = Math::round(2 * EDSCALE);
|
||||
|
||||
Reference in New Issue
Block a user