Restore lighter shadow colours for wxGrid row/column separators
This was also changed in 3c28244806
(Improve wxGrid appearance in dark
mode under macOS, 2020-08-07) but there doesn't appear to be any good
reason to do it as wxSYS_COLOUR_3DDKSHADOW is the same as the previously
used wxSYS_COLOUR_3DSHADOW (a.k.a. wxSYS_COLOUR_BTNSHADOW) under Mac, so
this didn't change anything there -- but did make the shadows darker and
hence more pronounced and more noticeable under MSW.
Undo this change to restore the old and nicer looking appearance.
This commit is contained in:
@@ -312,7 +312,7 @@ void wxGridRowHeaderRendererDefault::DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const
|
||||
{
|
||||
dc.SetPen(wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DDKSHADOW)));
|
||||
dc.SetPen(wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW)));
|
||||
dc.DrawLine(rect.GetRight(), rect.GetTop(),
|
||||
rect.GetRight(), rect.GetBottom());
|
||||
|
||||
@@ -344,7 +344,7 @@ void wxGridColumnHeaderRendererDefault::DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const
|
||||
{
|
||||
dc.SetPen(wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DDKSHADOW)));
|
||||
dc.SetPen(wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW)));
|
||||
dc.DrawLine(rect.GetRight(), rect.GetTop(),
|
||||
rect.GetRight(), rect.GetBottom());
|
||||
dc.DrawLine(rect.GetLeft(), rect.GetBottom(),
|
||||
@@ -373,7 +373,7 @@ void wxGridCornerHeaderRendererDefault::DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const
|
||||
{
|
||||
dc.SetPen(wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DDKSHADOW)));
|
||||
dc.SetPen(wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW)));
|
||||
dc.DrawLine(rect.GetRight() - 1, rect.GetBottom() - 1,
|
||||
rect.GetRight() - 1, rect.GetTop());
|
||||
dc.DrawLine(rect.GetRight() - 1, rect.GetBottom() - 1,
|
||||
|
Reference in New Issue
Block a user