mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 03:42:05 +00:00
FIX:use scalablebitmap replace wxbitmap
Change-Id: I4ca885051f309be4a7d9a6e08de097fe75847257
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
class ImageSwitchButton : public StaticBox
|
||||
{
|
||||
public:
|
||||
ImageSwitchButton(wxWindow *parent, wxBitmap &img_on, wxBitmap &img_off, long style = 0);
|
||||
ImageSwitchButton(wxWindow *parent, ScalableBitmap &img_on, ScalableBitmap &img_off, long style = 0);
|
||||
|
||||
void SetLabels(wxString const & lbl_on, wxString const & lbl_off);
|
||||
void SetImages(wxBitmap &img_on, wxBitmap &img_off);
|
||||
void SetImages(ScalableBitmap &img_on, ScalableBitmap &img_off);
|
||||
void SetTextColor(StateColor const &color);
|
||||
void SetBorderColor(StateColor const &color);
|
||||
void SetBgColor(StateColor const &color);
|
||||
@@ -38,8 +38,8 @@ private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
private:
|
||||
wxBitmap m_on;
|
||||
wxBitmap m_off;
|
||||
ScalableBitmap m_on;
|
||||
ScalableBitmap m_off;
|
||||
bool m_on_off;
|
||||
int m_padding; // size between icon and text
|
||||
bool pressedDown = false;
|
||||
|
||||
Reference in New Issue
Block a user