Skip to content

Commit

Permalink
MSW: reuse macOS code
Browse files Browse the repository at this point in the history
Signed-off-by: Eran Ifrah <eran@codelite.org>
  • Loading branch information
eranif committed Nov 17, 2024
1 parent bea53f1 commit 684ea6a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Plugin/cl_aui_dock_art.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ void clAuiDockArt::DrawSash(wxDC& dc, wxWindow* window, int orientation, const w
auto light_col = bg_colour.ChangeLightness(140);
Draw3DSash(dc, rect, orientation, bg_colour, light_col, dark_col);
}
#elif defined(__WXMAC__)
#elif defined(__WXMAC__) || defined(__WXMSW__)
if (isDark) {
auto bg_colour = clSystemSettings::GetDefaultPanelColour().ChangeLightness(110);
auto light_col = bg_colour.ChangeLightness(120);
Expand All @@ -340,12 +340,6 @@ void clAuiDockArt::DrawSash(wxDC& dc, wxWindow* window, int orientation, const w
auto bg_colour = clSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
Draw3DSash(dc, rect, orientation, bg_colour, light_col, dark_col);
}
#else
auto colour = isDark ? clSystemSettings::GetDefaultPanelColour().ChangeLightness(120)
: clSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
dc.SetPen(colour);
dc.SetBrush(colour);
dc.DrawRectangle(rect);
#endif
}

Expand Down

0 comments on commit 684ea6a

Please sign in to comment.