From 76d5af85cc04b6560e7dde4cb9116b8d6d638036 Mon Sep 17 00:00:00 2001 From: clasher113 Date: Sat, 27 Dec 2025 16:07:26 +0200 Subject: [PATCH] fix: checkbox hover color --- src/graphics/ui/elements/CheckBox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphics/ui/elements/CheckBox.cpp b/src/graphics/ui/elements/CheckBox.cpp index 22741e45d..8694dc085 100644 --- a/src/graphics/ui/elements/CheckBox.cpp +++ b/src/graphics/ui/elements/CheckBox.cpp @@ -25,7 +25,8 @@ void CheckBox::draw(const DrawContext& pctx, const Assets&) { batch->rect(pos.x, pos.y, size.x, size.y); } -void CheckBox::mouseRelease(int, int) { +void CheckBox::mouseRelease(int x, int y) { + UINode::mouseRelease(x, y); checked = !checked; if (consumer) { consumer(checked);