mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
FIX:use scalablebitmap replace wxbitmap
Change-Id: I4ca885051f309be4a7d9a6e08de097fe75847257
This commit is contained in:
parent
00ba515783
commit
9fc010512c
22 changed files with 187 additions and 186 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue