X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..6f3f38980f10a935f3b47dbf0d3b4643e96a4be2:/src/osx/artmac.cpp diff --git a/src/osx/artmac.cpp b/src/osx/artmac.cpp index 6b49934787..04acf5caf4 100644 --- a/src/osx/artmac.cpp +++ b/src/osx/artmac.cpp @@ -117,6 +117,14 @@ wxSize wxArtProvider::GetNativeSizeHint(const wxArtClient& client) // "32 x 32 pixels is the recommended size" return wxSize(32, 32); } + else if ( client == wxART_BUTTON || client == wxART_MENU ) + { + // Mac UI doesn't use any images in neither buttons nor menus in + // general but the code using wxArtProvider can use wxART_BUTTON to + // find the icons of a roughly appropriate size for the buttons and + // 16x16 seems to be the best choice for this kind of use + return wxSize(16, 16); + } return wxDefaultSize; }