BButton: Remove button label margins
... to prevent label truncation on BeControlLook, BDH Calc, and some other places. Fixes #16570 Change-Id: I68d8b64a631e116d3180c96be1fb5681de86fda6 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6310 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
27b3dee8b3
commit
3e37877f10
@@ -155,10 +155,6 @@ BButton::Draw(BRect updateRect)
|
|||||||
base, flags);
|
base, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
// always leave some room around the label
|
|
||||||
float labelMargin = be_control_look->DefaultLabelSpacing() / 2;
|
|
||||||
rect.InsetBy(labelMargin, labelMargin);
|
|
||||||
|
|
||||||
const BBitmap* icon = IconBitmap(
|
const BBitmap* icon = IconBitmap(
|
||||||
(Value() == B_CONTROL_OFF
|
(Value() == B_CONTROL_OFF
|
||||||
? B_INACTIVE_ICON_BITMAP : B_ACTIVE_ICON_BITMAP)
|
? B_INACTIVE_ICON_BITMAP : B_ACTIVE_ICON_BITMAP)
|
||||||
|
|||||||
Reference in New Issue
Block a user