Fixed toolbar's disabled button color.

This commit is contained in:
archshift
2014-08-15 21:16:14 -07:00
parent 15a3b30e27
commit b74a34795b
4 changed files with 45 additions and 24 deletions

View File

@ -8,6 +8,7 @@
#include <wx/string.h>
class wxBitmap;
class wxToolBar;
// A shortcut to access the bitmaps
#define wxGetBitmapFromMemory(name) WxUtils::_wxGetBitmapFromMemory(name, sizeof(name))
@ -28,6 +29,12 @@ double GetCurrentBitmapLogicalScale();
wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length);
// From a wxBitmap, creates the corresponding disabled version for toolbar buttons
wxBitmap CreateDisabledButtonBitmap(const wxBitmap& original);
// Helper function to add a button to a toolbar
void AddToolbarButton(wxToolBar* toolbar, int toolID, const wxString& label, const wxBitmap& bitmap, const wxString& shortHelp);
} // namespace
std::string WxStrToStr(const wxString& str);