aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Scipione <jscipione@gmail.com>2012-07-15 17:36:03 -0400
committerJohn Scipione <jscipione@gmail.com>2012-07-15 17:36:03 -0400
commitc3c5b8e8ae931ac99282a2cd84fbb2f563b60d7c (patch)
treed1299ade2e50e53b1bcc6982cd5b94103b9fac89
parent8c4773f75b06851586209f810ac1f8c759bf072f (diff)
Update the Color Box border color in Appearance and put a TODO in.hrev44345
-rw-r--r--src/preferences/appearance/ColorWhichItem.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/preferences/appearance/ColorWhichItem.cpp b/src/preferences/appearance/ColorWhichItem.cpp
index 23edda4f6d..7da8529d67 100644
--- a/src/preferences/appearance/ColorWhichItem.cpp
+++ b/src/preferences/appearance/ColorWhichItem.cpp
@@ -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