Repository: godotengine/godot
File: editor/inspector/editor_inspector.cpp (C++)

Code before:
				}

			} else {
				keying_rect = Rect2();
			}

			if (deletable) {
				Ref<Texture2D> close;

				close = get_editor_theme_icon(SNAME("Close"));

				ofs -= close->get_width() + half_padding + get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				delete_rect = Rect2(ofs, 0, close->get_width() + padding, size.height);

				Point2 rtl_pos;
				if (rtl) {
					rtl_pos = Point2(size.width - delete_rect.position.x - (close->get_width() + padding), delete_rect.position.y);
				}

				Color color2(1, 1, 1);
				if (delete_hover) {
					color2.r *= 1.2;
					color2.g *= 1.2;
					color2.b *= 1.2;

					Ref<StyleBox> sb_hover = get_theme_stylebox(SceneStringName(hover), "FlatButton");
					if (rtl) {
						draw_style_box(sb_hover, Rect2(rtl_pos, delete_rect.size));
					} else {
						draw_style_box(sb_hover, delete_rect);
					}
				}

				if (rtl) {
					draw_texture(close, rtl_pos + Point2(padding, size.height - close->get_height()) / 2, color2);
				} else {
					draw_texture(close, delete_rect.position + Point2(padding, size.height - close->get_height()) / 2, color2);
				}
			} else {
				delete_rect = Rect2();
			}
		} break;
		case NOTIFICATION_ENTER_TREE: {
			EditorInspector *inspector = get_parent_inspector();
			if (inspector) {
				inspector = inspector->get_root_inspector();
			}
			set_shortcut_context(inspector);

			if (has_borders) {
				get_parent()->connect(SceneStringName(theme_changed), callable_mp(this, &EditorProperty::_update_property_bg));

Review comment (suggestion):
```suggestion
					Ref<StyleBox> sb_hover = get_theme_stylebox(SceneStringName(hover), SceneStringName(FlatButton));
```

Code after:
				}

				if (rtl) {
					draw_texture(key, rtl_pos + Point2(padding, size.height - key->get_height()) / 2, color2);
				} else {
					draw_texture(key, keying_rect.position + Point2(padding, size.height - key->get_height()) / 2, color2);
				}

			} else {
				keying_rect = Rect2();
			}

			if (deletable) {
				Ref<Texture2D> close;

				close = get_editor_theme_icon(SNAME("Close"));

				ofs -= close->get_width() + half_padding + get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				delete_rect = Rect2(ofs, 0, close->get_width() + padding, size.height);

				Point2 rtl_pos;
				if (rtl) {
					rtl_pos = Point2(size.width - delete_rect.position.x - (close->get_width() + padding), delete_rect.position.y);
				}

				Color color2(1, 1, 1);
				if (delete_hover) {
					color2.r *= 1.2;
					color2.g *= 1.2;
					color2.b *= 1.2;

					Ref<StyleBox> sb_hover = get_theme_stylebox(SceneStringName(hover), SceneStringName(FlatButton));
					if (rtl) {
						draw_style_box(sb_hover, Rect2(rtl_pos, delete_rect.size));
					} else {
						draw_style_box(sb_hover, delete_rect);
					}
				}

				if (rtl) {
					draw_texture(close, rtl_pos + Point2(padding, size.height - close->get_height()) / 2, color2);
				} else {
					draw_texture(close, delete_rect.position + Point2(padding, size.height - close->get_height()) / 2, color2);
				}
			} else {
				delete_rect = Rect2();
			}
		} break;
		case NOTIFICATION_ENTER_TREE: {
			EditorInspector *inspector = get_parent_inspector();
			if (inspector) {