From 637cd3124e65091beca6bb673fe713730cedb724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 21 Jan 2015 17:10:27 +0100 Subject: [PATCH] Mouse: slightly improved the look of the mouse. * Made it a bit longer, and let the button outline stand out less. --- src/preferences/mouse/MouseView.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/preferences/mouse/MouseView.cpp b/src/preferences/mouse/MouseView.cpp index 225328b842..c15080df55 100644 --- a/src/preferences/mouse/MouseView.cpp +++ b/src/preferences/mouse/MouseView.cpp @@ -42,13 +42,14 @@ static const int32 kOneButtonOffsets[4] static const int32 kTwoButtonOffsets[4] = { 0, kMouseDownWidth / 2, kMouseDownWidth }; static const int32 kThreeButtonOffsets[4] - = { 0, kMouseDownWidth / 3, kMouseDownWidth / 3 * 2, kMouseDownWidth }; + = { 5, kMouseDownWidth / 3, kMouseDownWidth / 3 * 2, kMouseDownWidth - 4 }; static const rgb_color kButtonTextColor = { 0, 0, 0, 255 }; static const rgb_color kMouseShadowColor = { 100, 100, 100, 128 }; static const rgb_color kMouseBodyTopColor = { 0xed, 0xed, 0xed, 255 }; static const rgb_color kMouseBodyBottomColor = { 0x85, 0x85, 0x85, 255 }; static const rgb_color kMouseOutlineColor = { 0x51, 0x51, 0x51, 255 }; +static const rgb_color kMouseButtonOutlineColor = { 0xa0, 0xa0, 0xa0, 255 }; static const int32* @@ -204,9 +205,9 @@ MouseView::Draw(BRect updateFrame) BShape mouseShape; mouseShape.MoveTo(BPoint(16, 12)); - BPoint control[3] = { BPoint(12, 16), BPoint(8, 60), BPoint(32, 60) }; + BPoint control[3] = { BPoint(12, 16), BPoint(8, 64), BPoint(32, 64) }; mouseShape.BezierTo(control); - BPoint control2[3] = { BPoint(56, 60), BPoint(52, 16), BPoint(48, 12) }; + BPoint control2[3] = { BPoint(56, 64), BPoint(52, 16), BPoint(48, 12) }; mouseShape.BezierTo(control2); BPoint control3[3] = { BPoint(44, 8), BPoint(20, 8), BPoint(16, 12) }; mouseShape.BezierTo(control3); @@ -248,6 +249,7 @@ MouseView::Draw(BRect updateFrame) buttonsOutline.LineTo(BPoint(32, 9)); } + SetHighColor(kMouseButtonOutlineColor); StrokeShape(&buttonsOutline, B_SOLID_HIGH); mouse_map map;