Skip to content

Commit

Permalink
Sidebar: use 24 bmp buttons on Linux and 32 on macOS / 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 4, 2024
1 parent cce3ea4 commit d3d39e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Plugin/bitmap_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,11 @@ static wxBitmap LoadSidebarBitmapInternal(const wxString& name, wxWindow* win, b
return wxNullBitmap;
}

#ifdef __WXGTK__
wxSize button_size{ 24, 24 };
#else
wxSize button_size{ 32, 32 };
#endif

auto bmpbundle = wxBitmapBundle::FromSVGFile(svg_path.GetFullPath(), button_size);
if (!bmpbundle.IsOk()) {
Expand Down

0 comments on commit d3d39e4

Please sign in to comment.