From 87f392c9f03449368b8ff162293b3eea0e7320ea Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 30 Dec 2013 04:11:26 +0100 Subject: [PATCH] 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. --- src/kits/interface/ControlLook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/ControlLook.cpp b/src/kits/interface/ControlLook.cpp index fc1c7dc7d9..1a8865dcc5 100644 --- a/src/kits/interface/ControlLook.cpp +++ b/src/kits/interface/ControlLook.cpp @@ -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: