Skip to content

Commit

Permalink
macOS: Use border 'None' for top level windows
Browse files Browse the repository at this point in the history
Signed-off-by: Eran Ifrah <[email protected]>
  • Loading branch information
eranif committed Nov 7, 2024
1 parent bf67d73 commit ffaf34f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LiteEditor/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,14 @@ int FrameTimerId = wxNewId();
// return the wxBORDER_SIMPLE that matches the current application theme
wxBorder get_border_simple_theme_aware_bit()
{
#if defined(__WXMAC__) || defined(__WXMSW__)
#if defined(__WXMSW__)
if (clSystemSettings::GetAppearance().IsDark()) {
return wxBORDER_SIMPLE;
} else {
return wxBORDER_THEME;
}
#elif defined(__WXMAC__)
return wxBORDER_NONE;
#else
return wxBORDER_DEFAULT;
#endif
Expand Down

0 comments on commit ffaf34f

Please sign in to comment.