diff --git a/src/main/kotlin/gg/essential/elementa/components/inspector/Inspector.kt b/src/main/kotlin/gg/essential/elementa/components/inspector/Inspector.kt index 0c5bb876..d483804e 100644 --- a/src/main/kotlin/gg/essential/elementa/components/inspector/Inspector.kt +++ b/src/main/kotlin/gg/essential/elementa/components/inspector/Inspector.kt @@ -82,11 +82,13 @@ class Inspector @JvmOverloads constructor( height = 14.pixels() } childOf titleBlock - SVGComponent.ofResource("/svg/click.svg").constrain { + UIImage.ofResourceCached("/textures/inspector/click.png").constrain { x = SiblingConstraint(10f) y = CenterConstraint() width = AspectConstraint(1f) - height = RelativeConstraint(1f).to(title) as HeightConstraint + height = 12.pixels + }.apply { + textureMinFilter = UIImage.TextureScalingMode.LINEAR }.onMouseClick { event -> event.stopPropagation() isClickSelecting = true diff --git a/src/main/resources/textures/inspector/click.png b/src/main/resources/textures/inspector/click.png new file mode 100644 index 00000000..abc2aa74 Binary files /dev/null and b/src/main/resources/textures/inspector/click.png differ