Skip to content

Commit 06d34c0

Browse files
committed
Fix close button not turning correct color on hover
1 parent 8a2e322 commit 06d34c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/scripts/gui.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,7 @@ local function create_window(player, entity)
12581258
style = "frame_action_button",
12591259
mouse_button_filter = { "left" },
12601260
sprite = "utility/close",
1261-
hovered_sprite = "utility/close_black",
1262-
clicked_sprite = "utility/close_black",
1261+
invert_colors_of_picture_when_hovered_or_toggled = true,
12631262
name = WINDOW_ID .. "_close",
12641263
handler = handle_close
12651264
}

0 commit comments

Comments
 (0)