mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: use StaticBox for background
Change-Id: I2bba259c53eaf987662a97dd93eac4fb8f73d47b
This commit is contained in:
parent
c4ec127b3a
commit
a35ecc4fba
8 changed files with 54 additions and 154 deletions
|
@ -744,6 +744,7 @@ wxBoxSizer *StatusBasePanel::create_bed_control(wxWindow *parent)
|
|||
bSizer_z_ctrl->AddStretchSpacer();
|
||||
m_bpButton_z_10 = new Button(panel, wxString("10"), "monitor_bed_up", 0, FromDIP(15));
|
||||
m_bpButton_z_10->SetFont(::Label::Body_13);
|
||||
m_bpButton_z_10->SetBorderWidth(2);
|
||||
m_bpButton_z_10->SetBackgroundColor(z_10_ctrl_bg);
|
||||
m_bpButton_z_10->SetBorderColor(z_10_ctrl_bd);
|
||||
m_bpButton_z_10->SetTextColor(StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int) StateColor::Disabled), std::make_pair(NORMAL_TEXT_COL, (int) StateColor::Normal)));
|
||||
|
@ -754,6 +755,7 @@ wxBoxSizer *StatusBasePanel::create_bed_control(wxWindow *parent)
|
|||
|
||||
m_bpButton_z_1 = new Button(panel, wxString(" 1"), "monitor_bed_up", 0, FromDIP(15));
|
||||
m_bpButton_z_1->SetFont(::Label::Body_13);
|
||||
m_bpButton_z_1->SetBorderWidth(2);
|
||||
m_bpButton_z_1->SetBackgroundColor(z_1_ctrl_bg);
|
||||
m_bpButton_z_1->SetBorderColor(z_1_ctrl_bd);
|
||||
m_bpButton_z_1->SetMinSize(Z_BUTTON_SIZE);
|
||||
|
@ -765,6 +767,7 @@ wxBoxSizer *StatusBasePanel::create_bed_control(wxWindow *parent)
|
|||
|
||||
m_bpButton_z_down_1 = new Button(panel, wxString(" 1"), "monitor_bed_down", 0, FromDIP(15));
|
||||
m_bpButton_z_down_1->SetFont(::Label::Body_13);
|
||||
m_bpButton_z_down_1->SetBorderWidth(2);
|
||||
m_bpButton_z_down_1->SetBackgroundColor(z_1_ctrl_bg);
|
||||
m_bpButton_z_down_1->SetBorderColor(z_1_ctrl_bd);
|
||||
m_bpButton_z_down_1->SetMinSize(Z_BUTTON_SIZE);
|
||||
|
@ -774,6 +777,7 @@ wxBoxSizer *StatusBasePanel::create_bed_control(wxWindow *parent)
|
|||
|
||||
m_bpButton_z_down_10 = new Button(panel, wxString("10"), "monitor_bed_down", 0, FromDIP(15));
|
||||
m_bpButton_z_down_10->SetFont(::Label::Body_13);
|
||||
m_bpButton_z_down_10->SetBorderWidth(2);
|
||||
m_bpButton_z_down_10->SetBackgroundColor(z_10_ctrl_bg);
|
||||
m_bpButton_z_down_10->SetBorderColor(z_10_ctrl_bd);
|
||||
m_bpButton_z_down_10->SetMinSize(Z_BUTTON_SIZE);
|
||||
|
@ -811,6 +815,7 @@ wxBoxSizer *StatusBasePanel::create_extruder_control(wxWindow *parent)
|
|||
StateColor e_ctrl_bg(std::pair<wxColour, int>(BUTTON_PRESS_COL, StateColor::Pressed), std::pair<wxColour, int>(BUTTON_NORMAL1_COL, StateColor::Normal));
|
||||
StateColor e_ctrl_bd(std::pair<wxColour, int>(BUTTON_HOVER_COL, StateColor::Hovered), std::pair<wxColour, int>(BUTTON_NORMAL1_COL, StateColor::Normal));
|
||||
m_bpButton_e_10 = new Button(panel, "", "monitor_extruder_up", 0, FromDIP(22));
|
||||
m_bpButton_e_10->SetBorderWidth(2);
|
||||
m_bpButton_e_10->SetBackgroundColor(e_ctrl_bg);
|
||||
m_bpButton_e_10->SetBorderColor(e_ctrl_bd);
|
||||
m_bpButton_e_10->SetMinSize(wxSize(FromDIP(40), FromDIP(40)));
|
||||
|
@ -825,6 +830,7 @@ wxBoxSizer *StatusBasePanel::create_extruder_control(wxWindow *parent)
|
|||
bSizer_e_ctrl->Add(m_bitmap_extruder_img, 0, wxALIGN_CENTER_HORIZONTAL | wxTOP | wxBOTTOM, FromDIP(5));
|
||||
bSizer_e_ctrl->Add(0, FromDIP(7), 0, 0, 0);
|
||||
m_bpButton_e_down_10 = new Button(panel, "", "monitor_extruder_down", 0, FromDIP(22));
|
||||
m_bpButton_e_down_10->SetBorderWidth(2);
|
||||
m_bpButton_e_down_10->SetBackgroundColor(e_ctrl_bg);
|
||||
m_bpButton_e_down_10->SetBorderColor(e_ctrl_bd);
|
||||
m_bpButton_e_down_10->SetMinSize(wxSize(FromDIP(40), FromDIP(40)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue