WebPositive: scale close button of find bar

Fixes: #20177
Change-Id: If442ab9b0bdc7238cba08e99523cadabae474d5c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11263
Reviewed-by: nephele nephele <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Máximo Castañeda
2026-07-16 14:34:44 +00:00
committed by waddlesplash
parent 28dfca3e15
commit f50963ad4e
+3 -2
View File
@@ -269,7 +269,7 @@ public:
BButton("close button", NULL, message),
fOverCloseRect(false)
{
SetExplicitMinSize(BSize(15, 15));
SetExplicitSize(BControlLook::ComposeIconSize(16));
}
virtual bool HasHeightForWidth()
@@ -290,7 +290,8 @@ public:
virtual void Draw(BRect updateRect)
{
BRect frame = Bounds();
BRect closeRect(frame.InsetByCopy(4, 4));
int inset = BControlLook::ComposeSpacing(B_USE_SMALL_SPACING) / 2;
BRect closeRect(frame.InsetByCopy(inset, inset));
rgb_color base = ui_color(B_CONTROL_BACKGROUND_COLOR);
if (Value() == B_CONTROL_ON && fOverCloseRect) {