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

Code before:
			int text_limit = text_size - ofs;
			int half_padding = EDITOR_GET("interface/theme/base_spacing");
			int padding = half_padding * 2;

			if (checkable) {
				Ref<Texture2D> checkbox;
				if (checked) {
					checkbox = get_editor_theme_icon(SNAME("GuiChecked"));
				} else {
					checkbox = get_editor_theme_icon(SNAME("GuiUnchecked"));
				}

				check_rect = Rect2(ofs, 0, checkbox->get_width() + padding, size.height);

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

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

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

Code after:
				// for project settings feature tag overrides.
				color.a = 0.5;
			}

			int ofs = get_theme_constant(SNAME("font_offset"));
			int text_limit = text_size - ofs;
			int half_padding = EDITOR_GET("interface/theme/base_spacing");
			int padding = half_padding * 2;

			if (checkable) {
				Ref<Texture2D> checkbox;
				if (checked) {
					checkbox = get_editor_theme_icon(SNAME("GuiChecked"));
				} else {
					checkbox = get_editor_theme_icon(SNAME("GuiUnchecked"));
				}

				check_rect = Rect2(ofs, 0, checkbox->get_width() + padding, size.height);

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

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