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:
committed by
waddlesplash
parent
28dfca3e15
commit
f50963ad4e
@@ -269,7 +269,7 @@ public:
|
|||||||
BButton("close button", NULL, message),
|
BButton("close button", NULL, message),
|
||||||
fOverCloseRect(false)
|
fOverCloseRect(false)
|
||||||
{
|
{
|
||||||
SetExplicitMinSize(BSize(15, 15));
|
SetExplicitSize(BControlLook::ComposeIconSize(16));
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool HasHeightForWidth()
|
virtual bool HasHeightForWidth()
|
||||||
@@ -290,7 +290,8 @@ public:
|
|||||||
virtual void Draw(BRect updateRect)
|
virtual void Draw(BRect updateRect)
|
||||||
{
|
{
|
||||||
BRect frame = Bounds();
|
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);
|
rgb_color base = ui_color(B_CONTROL_BACKGROUND_COLOR);
|
||||||
|
|
||||||
if (Value() == B_CONTROL_ON && fOverCloseRect) {
|
if (Value() == B_CONTROL_ON && fOverCloseRect) {
|
||||||
|
|||||||
Reference in New Issue
Block a user