mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Fixed toolbar's disabled button color.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user