Skip to content

Commit

Permalink
Fix button texture for small buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
nea89o committed Feb 26, 2024
1 parent cfc36bd commit 025aa24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ButtonComponent(
element: GuiComponent,
insets: Int,
val onClick: Runnable
) : PanelComponent(element, insets, DefaultBackgroundRenderer.BUTTON) {
) : PanelComponent(element, insets, DefaultBackgroundRenderer.DARK_RECT) {
override fun mouseEvent(mouseEvent: MouseEvent, context: GuiImmediateContext): Boolean {
if (context.isHovered && mouseEvent is Click) {
val (mouseButton, mouseState) = mouseEvent
Expand Down

0 comments on commit 025aa24

Please sign in to comment.