void TBarView::Draw(BRect) { BRect bounds(Bounds()); rgb_color hilite = tint_color(ViewColor(), B_DARKEN_1_TINT); SetHighColor(hilite); if (AcrossTop()) StrokeLine(bounds.LeftBottom(), bounds.RightBottom()); else if (AcrossBottom()) StrokeLine(bounds.LeftTop(), bounds.RightTop()); if (fVertical && fState == kExpandoState) { SetHighColor(hilite); BRect frame(fExpando->Frame()); StrokeLine(BPoint(frame.left, frame.top - 1), BPoint(frame.right, frame.top -1)); } }
void TBarView::Draw(BRect) { BRect bounds(Bounds()); rgb_color hilite = tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_DARKEN_1_TINT); rgb_color light = tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_LIGHTEN_2_TINT); SetHighColor(hilite); if (AcrossTop()) StrokeLine(bounds.LeftBottom(), bounds.RightBottom()); else if (AcrossBottom()) StrokeLine(bounds.LeftTop(), bounds.RightTop()); if (Vertical() && Expando()) { SetHighColor(hilite); BRect frame(fExpando->Frame()); StrokeLine(frame.LeftTop() + BPoint(0, -1), frame.RightTop() + BPoint(0, -1)); } }