Update the Color Box border color in Appearance and put a TODO in.

This commit is contained in:
John Scipione
2012-07-15 17:36:03 -04:00
parent 8c4773f75b
commit c3c5b8e8ae
@@ -40,19 +40,23 @@ ColorWhichItem::DrawItem(BView *owner, BRect frame, bool complete)
owner->FillRect(frame);
}
rgb_color black = {0, 0, 0, 255};
rgb_color border = (rgb_color){ 184, 184, 184, 255 };
BRect colorRect(frame);
colorRect.InsetBy(2, 2);
colorRect.right = colorRect.left + colorRect.Height();
owner->SetHighColor(fColor);
owner->FillRect(colorRect);
owner->SetHighColor(black);
owner->SetHighColor(border);
owner->StrokeRect(colorRect);
owner->MovePenTo(frame.left + colorRect.Width() + 8, frame.top
+ BaselineOffset());
// TODO: Don't hardcode black here, calculate based on background
// color or use B_CONTROL_TEXT_COLOR constant.
rgb_color black = (rgb_color){ 0, 0, 0, 255 };
if (!IsEnabled())
owner->SetHighColor(tint_color(black, B_LIGHTEN_2_TINT));
else