X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11d1adbfda13e56736ef62d07a7220134e62c5e5..8ab505498d90cbedb2095d71f7a084d54300aba8:/src/mac/carbon/renderer.cpp diff --git a/src/mac/carbon/renderer.cpp b/src/mac/carbon/renderer.cpp index fbe365ab67..8555ef47e3 100644 --- a/src/mac/carbon/renderer.cpp +++ b/src/mac/carbon/renderer.cpp @@ -134,8 +134,8 @@ wxRendererMac::DrawHeaderButton(wxWindow *win, { const int CORNER = 1; - const wxCoord x = rect.x, - y = rect.y, + const wxCoord x = rect.x-1, + y = rect.y-1, w = rect.width, h = rect.height; @@ -244,11 +244,40 @@ wxRendererMac::DrawSplitterSash(wxWindow *win, // a brushed metal one as they look quite differently... this is // completely bogus anyhow, of course (TODO) +#if 0 dc.SetPen(*wxLIGHT_GREY_PEN); dc.SetBrush(*wxWHITE_BRUSH); if ( orient == wxVERTICAL ) dc.DrawRectangle(position, 0, 7, size.y); else dc.DrawRectangle(0, position, size.x, 7); +#else + // Do the gradient fill: + static int grayValues[] = + { + 0xA0, 0xF6, 0xED, 0xE4, 0xE2, 0xD0, 0xA0 + }; + dc.SetBrush( *wxTRANSPARENT_BRUSH ); + if ( orient == wxVERTICAL ) + { + int i; + for (i=0; i < (int)WXSIZEOF(grayValues); i++) + { + dc.SetPen( wxPen( wxColour( grayValues[i] , grayValues[i] , grayValues[i] ), + 1 , wxSOLID ) ); + dc.DrawRectangle( position+i, 0, 1, size.y ); + } + } + else + { + int i; + for (i=0; i < (int)WXSIZEOF(grayValues); i++) + { + dc.SetPen( wxPen( wxColour( grayValues[i] , grayValues[i] , grayValues[i] ), + 1 , wxSOLID ) ); + dc.DrawRectangle( 0, position+i, size.x, 1 ); + } + } +#endif }