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

Code before:
			ofs = size.width;

			if (keying) {
				Ref<Texture2D> key;

				if (use_keying_next()) {
					key = get_editor_theme_icon(SNAME("KeyNext"));
				} else {
					key = get_editor_theme_icon(SNAME("Key"));
				}

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

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

				Color color2(1, 1, 1);
				if (keying_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, keying_rect.size));
					} else {
						draw_style_box(sb_hover, keying_rect);
					}
				}

				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);


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

Code after:
			if (rtl) {
				draw_string(font, Point2(size.width - ofs - text_limit, v_ofs + font->get_ascent(font_size)), label, HORIZONTAL_ALIGNMENT_RIGHT, text_limit, font_size, color);
			} else {
				draw_string(font, Point2(ofs, v_ofs + font->get_ascent(font_size)), label, HORIZONTAL_ALIGNMENT_LEFT, text_limit, font_size, color);
			}

			ofs = size.width;

			if (keying) {
				Ref<Texture2D> key;

				if (use_keying_next()) {
					key = get_editor_theme_icon(SNAME("KeyNext"));
				} else {
					key = get_editor_theme_icon(SNAME("Key"));
				}

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

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

				Color color2(1, 1, 1);
				if (keying_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, keying_rect.size));
					} else {
						draw_style_box(sb_hover, keying_rect);
					}
				}

				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;