mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
ENH:modidy bed type
jira: STUDIO-13919 STUDIO-13920 Change-Id: I8e9e6bda972d294b91add1eeaf15061188bcdb2d (cherry picked from commit a436da8930d631e094eef3b7829d270a027a9ac4) (cherry picked from commit 5468697ff4ac4546111afdfd1f7eb43bd899f1de)
This commit is contained in:
@@ -57,7 +57,9 @@ bool ImageDPIFrame::Show(bool show)
|
||||
}
|
||||
|
||||
void ImageDPIFrame::set_bitmap(const wxBitmap &bit_map) {
|
||||
m_bitmap->SetBitmap(bit_map);
|
||||
if (&bit_map && bit_map.IsOk()) {
|
||||
m_bitmap->SetBitmap(bit_map);
|
||||
}
|
||||
}
|
||||
|
||||
void ImageDPIFrame::on_dpi_changed(const wxRect &suggested_rect)
|
||||
|
||||
@@ -10,7 +10,7 @@ static const wxColour BUTTON_BG_COL = wxColour("#EEEEEE");
|
||||
static const wxColour BUTTON_IN_BG_COL = wxColour("#CECECE");
|
||||
|
||||
static const wxColour bd = wxColour(0, 150, 136);
|
||||
static const wxColour text_num_color = wxColour(0x898989);
|
||||
static const wxColour text_num_color = wxColour("#898989");
|
||||
static const wxColour BUTTON_PRESS_COL = wxColour(172, 172, 172);
|
||||
static const double sqrt2 = std::sqrt(2);
|
||||
|
||||
@@ -18,7 +18,7 @@ BEGIN_EVENT_TABLE(AxisCtrlButton, wxWindow)
|
||||
EVT_LEFT_DOWN(AxisCtrlButton::mouseDown)
|
||||
EVT_LEFT_UP(AxisCtrlButton::mouseReleased)
|
||||
EVT_MOTION(AxisCtrlButton::mouseMoving)
|
||||
EVT_PAINT(AxisCtrlButton::paintEvent)
|
||||
EVT_PAINT(AxisCtrlButton::paintEvent)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
#define OUTER_SIZE FromDIP(105)
|
||||
@@ -124,7 +124,9 @@ void AxisCtrlButton::SetInnerBackgroundColor(StateColor const& color)
|
||||
|
||||
void AxisCtrlButton::SetBitmap(ScalableBitmap &bmp)
|
||||
{
|
||||
m_icon = bmp;
|
||||
if (&bmp && (& bmp.bmp()) && (bmp.bmp().IsOk())) {
|
||||
m_icon = bmp;
|
||||
}
|
||||
}
|
||||
|
||||
void AxisCtrlButton::Rescale() {
|
||||
@@ -153,7 +155,7 @@ void AxisCtrlButton::render(wxDC& dc)
|
||||
|
||||
gc->PushState();
|
||||
gc->Translate(center.x, center.y);
|
||||
|
||||
|
||||
//draw the outer ring
|
||||
wxGraphicsPath outer_path = gc->CreatePath();
|
||||
outer_path.AddCircle(0, 0, r_outer);
|
||||
|
||||
Reference in New Issue
Block a user