Style changes only

This commit is contained in:
John Scipione 2013-02-17 17:51:58 -05:00
parent da08cea0e3
commit 8236628b59
3 changed files with 18 additions and 17 deletions

View File

@ -327,5 +327,3 @@ resource(205, "kActionGo") archive BBitmap {
$"0000000000000000000000000000000000000000000000000000000000000000"
}
};

View File

@ -227,6 +227,7 @@ TabContainerView::AddTab(TabView* tab, int32 index)
_ValidateTabVisibility();
}
TabView*
TabContainerView::RemoveTab(int32 index)
{
@ -330,9 +331,8 @@ TabContainerView::SelectTab(TabView* tab)
if (fSelectedTab != NULL)
index = GroupLayout()->IndexOfItem(tab->LayoutItem());
if (!tab->LayoutItem()->IsVisible()) {
if (!tab->LayoutItem()->IsVisible())
SetFirstVisibleTabIndex(index);
}
fController->TabSelected(index);
}
@ -539,4 +539,3 @@ TabContainerView::_SendFakeMouseMoved()
if (Bounds().Contains(where))
_MouseMoved(where, B_INSIDE_VIEW, NULL);
}

View File

@ -93,25 +93,28 @@ TabView::Draw(BRect updateRect)
{
BRect frame(fLayoutItem->Frame());
if (fIsFront) {
// Extend the front tab outward left/right in order to merge
// the frames of adjacent tabs.
if (!fIsFirst)
frame.left--;
if (!fIsLast)
frame.right++;
// Extend the front tab outward left/right in order to merge
// the frames of adjacent tabs.
if (!fIsFirst)
frame.left--;
if (!fIsLast)
frame.right++;
frame.bottom++;
frame.bottom++;
}
DrawBackground(fContainerView, frame, updateRect, fIsFirst, fIsLast,
fIsFront);
if (fIsFront) {
frame.top += 3.0f;
if (!fIsFirst)
frame.left++;
if (!fIsLast)
frame.right--;
frame.top += 3.0f;
if (!fIsFirst)
frame.left++;
if (!fIsLast)
frame.right--;
} else
frame.top += 6.0f;
float spacing = be_control_look->DefaultLabelSpacing();
frame.InsetBy(spacing, spacing / 2);
DrawContents(fContainerView, frame, updateRect, fIsFirst, fIsLast,
@ -126,6 +129,7 @@ TabView::DrawBackground(BView* owner, BRect frame, const BRect& updateRect,
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
uint32 borders = BControlLook::B_TOP_BORDER
| BControlLook::B_BOTTOM_BORDER;
if (isFirst)
borders |= BControlLook::B_LEFT_BORDER;
if (isLast)