Skip to content

Commit

Permalink
Tweak sidebar background on macOS 11
Browse files Browse the repository at this point in the history
Inspired by Xcode, better fit on macOS 11 that tones down colors and
grays a bit.
  • Loading branch information
vslavik committed May 31, 2021
1 parent ff9d140 commit a2f968c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/colorscheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ wxColour ColorScheme::DoGet(Color color, Mode mode)
// Backgrounds:

case Color::SidebarBackground:
#ifdef __WXOSX__
if (@available(macOS 11.0, *))
return mode == Dark ? sRGB(46, 47, 50) : sRGB(240, 240, 240); // same as EditingThickSeparator
#endif
return mode == Dark ? sRGB(45, 42, 41) : "#edf0f4";

case Color::EditingBackground:
Expand Down

0 comments on commit a2f968c

Please sign in to comment.