mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-01 20:40:41 -07:00
1. Add tag to mark the global map mode 2. Fix some wrong usage of bmp in code 3. Fix display error in dark mode jira:STUDIO-9729 Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: Idb36a5022c403e02c26d7fe23a95dd6877deca90 (cherry picked from commit 5a2abf7e211327cde57717b5ab7b79b63c967bbd)
32 lines
No EOL
731 B
C++
32 lines
No EOL
731 B
C++
#ifndef CAPSULE_BUTTON_HPP
|
|
#define CAPSULE_BUTTON_HPP
|
|
|
|
#include "wxExtensions.hpp"
|
|
#include "Widgets/Label.hpp"
|
|
|
|
namespace Slic3r { namespace GUI {
|
|
class CapsuleButton : public wxPanel
|
|
{
|
|
public:
|
|
CapsuleButton(wxWindow *parent, wxWindowID id, const wxString &label, bool selected);
|
|
void Select(bool selected);
|
|
bool IsSelected() const { return m_selected; }
|
|
protected:
|
|
void OnPaint(wxPaintEvent &event);
|
|
private:
|
|
void OnEnterWindow(wxMouseEvent &event);
|
|
void OnLeaveWindow(wxMouseEvent &event);
|
|
void UpdateStatus();
|
|
|
|
wxBitmapButton *m_btn;
|
|
Label *m_label;
|
|
|
|
wxBitmap tag_on_bmp;
|
|
wxBitmap tag_off_bmp;
|
|
|
|
bool m_hovered;
|
|
bool m_selected;
|
|
};
|
|
}} // namespace Slic3r::GUI
|
|
|
|
#endif |