hrev48409 adds 1 changeset to branch 'master' old head: 172a0247ddef45d84587feec628cda6861969090 new head: 97bb6cddcb0e8b0450746190cdd762598b1bec94 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=97bb6cd+%5E172a024 ---------------------------------------------------------------------------- 97bb6cd: Mouse Prefs: use a thinner and lighter outline suggested by Axel and Stephan, this makes the mouse look better, and the button numbers (the important part here) stand out more. [ Adrien Destugues <pulkomandy@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev48409 Commit: 97bb6cddcb0e8b0450746190cdd762598b1bec94 URL: http://cgit.haiku-os.org/haiku/commit/?id=97bb6cd Author: Adrien Destugues <pulkomandy@xxxxxxxxx> Date: Mon Dec 1 09:40:04 2014 UTC ---------------------------------------------------------------------------- 1 file changed, 6 insertions(+), 5 deletions(-) src/preferences/mouse/MouseView.cpp | 11 ++++++----- ---------------------------------------------------------------------------- diff --git a/src/preferences/mouse/MouseView.cpp b/src/preferences/mouse/MouseView.cpp index 90b3ad2..78c8edd 100644 --- a/src/preferences/mouse/MouseView.cpp +++ b/src/preferences/mouse/MouseView.cpp @@ -43,11 +43,11 @@ static const int32 kTwoButtonOffsets[4] static const int32 kThreeButtonOffsets[4] = { 0, kMouseDownWidth / 3, kMouseDownWidth / 3 * 2, kMouseDownWidth }; -static const rgb_color kButtonTextColor = { 32, 32, 32, 255 }; +static const rgb_color kButtonTextColor = { 0, 0, 0, 255 }; static const rgb_color kMouseShadowColor = { 150, 150, 150, 255 }; static const rgb_color kMouseBodyTopColor = { 0xed, 0xed, 0xed, 255}; static const rgb_color kMouseBodyBottomColor = { 0x85, 0x85, 0x85, 255 }; -static const rgb_color kMouseOutlineColor = { 0, 0, 0, 255 }; +static const rgb_color kMouseOutlineColor = { 0x51, 0x51, 0x51, 255 }; static const int32* getButtonOffsets(int32 type) @@ -224,6 +224,7 @@ MouseView::Draw(BRect updateFrame) FillShape(&mouseShape, bodyGradient); // Draw the outline + SetPenSize(1 / 1.8); SetDrawingMode(B_OP_OVER); SetHighColor(kMouseOutlineColor); @@ -237,11 +238,11 @@ MouseView::Draw(BRect updateFrame) // Separator between the buttons if (fType == 3) { buttonsOutline.MoveTo(BPoint(26, 29)); - buttonsOutline.LineTo(BPoint(26, 10)); + buttonsOutline.LineTo(BPoint(26, 9)); buttonsOutline.MoveTo(BPoint(38, 29)); - buttonsOutline.LineTo(BPoint(38, 10)); + buttonsOutline.LineTo(BPoint(38, 9)); } else if (fType == 2) { - buttonsOutline.MoveTo(BPoint(32, 30)); + buttonsOutline.MoveTo(BPoint(32, 29)); buttonsOutline.LineTo(BPoint(32, 9)); }