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

Code before:
					draw_texture(checkbox, check_rect.position + Point2(padding, size.height - checkbox->get_height()) / 2, color2);
				}
				int check_ofs = checkbox->get_width() + get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				ofs += check_ofs;
				text_limit -= check_ofs;
			} else {
				check_rect = Rect2();
			}

			if (can_revert && !is_read_only()) {
				Ref<Texture2D> reload_icon = get_editor_theme_icon(SNAME("ReloadSmall"));
				text_limit -= reload_icon->get_width() + half_padding + get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				revert_rect = Rect2(ofs + text_limit, 0, reload_icon->get_width() + padding + (1 * EDSCALE), size.height);

				Point2 rtl_pos;
				if (rtl) {
					rtl_pos = Point2(size.width - revert_rect.position.x - (reload_icon->get_width() + padding + (1 * EDSCALE)), revert_rect.position.y);
				}

				Color color2(1, 1, 1);
				if (revert_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, revert_rect.size));
					} else {
						draw_style_box(sb_hover, revert_rect);
					}
				}
				if (rtl) {
					draw_texture(reload_icon, rtl_pos + Point2(padding, size.height - reload_icon->get_height()) / 2, color2);
				} else {
					draw_texture(reload_icon, revert_rect.position + Point2(padding, size.height - reload_icon->get_height()) / 2, color2);
				}
			} else {
				revert_rect = Rect2();
			}

			if (!pin_hidden && pinned) {
				Ref<Texture2D> pinned_icon = get_editor_theme_icon(SNAME("Pin"));
				int margin_w = get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				int total_icon_w = margin_w + pinned_icon->get_width();
				int text_w = font->get_string_size(label, rtl ? HORIZONTAL_ALIGNMENT_RIGHT : HORIZONTAL_ALIGNMENT_LEFT, text_limit - total_icon_w, font_size).x;
				int y = (size.height - pinned_icon->get_height()) / 2;
				if (rtl) {
					draw_texture(pinned_icon, Vector2(size.width - ofs - text_w - total_icon_w, y), color);
				} else {
					draw_texture(pinned_icon, Vector2(ofs + text_w + margin_w, y), color);

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

Code after:
					}
				}
				if (rtl) {
					draw_texture(checkbox, rtl_pos + Point2(padding, size.height - checkbox->get_height()) / 2, color2);
				} else {
					draw_texture(checkbox, check_rect.position + Point2(padding, size.height - checkbox->get_height()) / 2, color2);
				}
				int check_ofs = checkbox->get_width() + padding + get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				ofs += check_ofs;
				text_limit -= check_ofs;
			} else {
				check_rect = Rect2();
			}

			if (can_revert && !is_read_only()) {
				Ref<Texture2D> reload_icon = get_editor_theme_icon(SNAME("ReloadSmall"));
				text_limit -= reload_icon->get_width() + half_padding + get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				revert_rect = Rect2(ofs + text_limit, 0, reload_icon->get_width() + padding + (1 * EDSCALE), size.height);

				Point2 rtl_pos;
				if (rtl) {
					rtl_pos = Point2(size.width - revert_rect.position.x - (reload_icon->get_width() + padding + (1 * EDSCALE)), revert_rect.position.y);
				}

				Color color2(1, 1, 1);
				if (revert_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, revert_rect.size));
					} else {
						draw_style_box(sb_hover, revert_rect);
					}
				}
				if (rtl) {
					draw_texture(reload_icon, rtl_pos + Point2(padding, size.height - reload_icon->get_height()) / 2, color2);
				} else {
					draw_texture(reload_icon, revert_rect.position + Point2(padding, size.height - reload_icon->get_height()) / 2, color2);
				}
				text_limit -= half_padding;
			} else {
				revert_rect = Rect2();
			}

			if (!pin_hidden && pinned) {
				Ref<Texture2D> pinned_icon = get_editor_theme_icon(SNAME("Pin"));
				int margin_w = get_theme_constant(SNAME("h_separation"), SNAME("Tree"));
				int total_icon_w = margin_w + pinned_icon->get_width();