mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 14:37:36 -06:00
Fix scaling on SideButton (#9673)
* Update MainFrame.cpp * fix scaling on gap
This commit is contained in:
parent
23ee612c03
commit
c93e321ef0
1 changed files with 6 additions and 8 deletions
|
@ -1562,9 +1562,9 @@ wxBoxSizer* MainFrame::create_side_tools()
|
||||||
|
|
||||||
// m_publish_btn = new Button(this, _L("Upload"), "bar_publish", 0, FromDIP(16));
|
// m_publish_btn = new Button(this, _L("Upload"), "bar_publish", 0, FromDIP(16));
|
||||||
m_slice_btn = new SideButton(this, _L("Slice plate"), "");
|
m_slice_btn = new SideButton(this, _L("Slice plate"), "");
|
||||||
m_slice_option_btn = new SideButton(this, "", "sidebutton_dropdown", 0, FromDIP(14));
|
m_slice_option_btn = new SideButton(this, "", "sidebutton_dropdown", 0, 14);
|
||||||
m_print_btn = new SideButton(this, _L("Print plate"), "");
|
m_print_btn = new SideButton(this, _L("Print plate"), "");
|
||||||
m_print_option_btn = new SideButton(this, "", "sidebutton_dropdown", 0, FromDIP(14));
|
m_print_option_btn = new SideButton(this, "", "sidebutton_dropdown", 0, 14);
|
||||||
|
|
||||||
update_side_button_style();
|
update_side_button_style();
|
||||||
// m_publish_btn->Hide();
|
// m_publish_btn->Hide();
|
||||||
|
@ -1572,12 +1572,10 @@ wxBoxSizer* MainFrame::create_side_tools()
|
||||||
m_print_option_btn->Enable();
|
m_print_option_btn->Enable();
|
||||||
// sizer->Add(m_publish_btn, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, FromDIP(1));
|
// sizer->Add(m_publish_btn, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, FromDIP(1));
|
||||||
// sizer->Add(FromDIP(15), 0, 0, 0, 0);
|
// sizer->Add(FromDIP(15), 0, 0, 0, 0);
|
||||||
sizer->Add(m_slice_option_btn, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(1));
|
sizer->Add(m_slice_option_btn, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||||
sizer->Add(m_slice_btn, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, FromDIP(1));
|
sizer->Add(m_slice_btn , 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(15));
|
||||||
sizer->Add(FromDIP(15), 0, 0, 0, 0);
|
sizer->Add(m_print_option_btn, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||||
sizer->Add(m_print_option_btn, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(1));
|
sizer->Add(m_print_btn , 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(19));
|
||||||
sizer->Add(m_print_btn, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, FromDIP(1));
|
|
||||||
sizer->Add(FromDIP(19), 0, 0, 0, 0);
|
|
||||||
|
|
||||||
sizer->Layout();
|
sizer->Layout();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue