BControlLook::GetFrameInsets(): Fix button insets
The button frame is 3 pixels wide, but that includes one pixel that actually belongs to the background, which is accounted for by GetBackgroundInsets(). Removes the additional one pixel inset accidentally introduced earlier.
This commit is contained in:
parent
813c5772c9
commit
87f392c9f0
@ -1947,7 +1947,7 @@ BControlLook::GetFrameInsets(frame_type frameType, uint32 flags, float& _left,
|
||||
|
||||
switch (frameType) {
|
||||
case B_BUTTON_FRAME:
|
||||
inset = (flags & B_DEFAULT_BUTTON) != 0 ? 6 : 3;
|
||||
inset = (flags & B_DEFAULT_BUTTON) != 0 ? 5 : 2;
|
||||
break;
|
||||
case B_GROUP_FRAME:
|
||||
case B_MENU_FIELD_FRAME:
|
||||
|
Loading…
x
Reference in New Issue
Block a user