mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-04-06 00:32:05 +02:00
reduce the sidebar's width a bit
This commit is contained in:
@@ -1571,7 +1571,7 @@ void Sidebar::update_sync_ams_btn_enable(wxUpdateUIEvent &e)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Sidebar::Sidebar(Plater *parent)
|
Sidebar::Sidebar(Plater *parent)
|
||||||
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(42 * wxGetApp().em_unit(), -1)), p(new priv(parent))
|
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(39 * wxGetApp().em_unit(), -1)), p(new priv(parent))
|
||||||
{
|
{
|
||||||
Choice::register_dynamic_list("support_filament", &dynamic_filament_list);
|
Choice::register_dynamic_list("support_filament", &dynamic_filament_list);
|
||||||
Choice::register_dynamic_list("support_interface_filament", &dynamic_filament_list);
|
Choice::register_dynamic_list("support_interface_filament", &dynamic_filament_list);
|
||||||
@@ -2789,7 +2789,7 @@ void Sidebar::update_filaments_area_height()
|
|||||||
|
|
||||||
void Sidebar::msw_rescale()
|
void Sidebar::msw_rescale()
|
||||||
{
|
{
|
||||||
SetMinSize(wxSize(42 * wxGetApp().em_unit(), -1));
|
SetMinSize(wxSize(39 * wxGetApp().em_unit(), -1));
|
||||||
p->m_panel_printer_title->GetSizer()->SetMinSize(-1, 3 * wxGetApp().em_unit());
|
p->m_panel_printer_title->GetSizer()->SetMinSize(-1, 3 * wxGetApp().em_unit());
|
||||||
p->m_panel_filament_title->GetSizer()
|
p->m_panel_filament_title->GetSizer()
|
||||||
->SetMinSize(-1, 3 * wxGetApp().em_unit());
|
->SetMinSize(-1, 3 * wxGetApp().em_unit());
|
||||||
@@ -4929,7 +4929,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
|||||||
.TopDockable(false)
|
.TopDockable(false)
|
||||||
.BottomDockable(false)
|
.BottomDockable(false)
|
||||||
.Floatable(true)
|
.Floatable(true)
|
||||||
.BestSize(wxSize(42 * wxGetApp().em_unit(), 90 * wxGetApp().em_unit())));
|
.BestSize(wxSize(39 * wxGetApp().em_unit(), 90 * wxGetApp().em_unit())));
|
||||||
|
|
||||||
auto* panel_sizer = new wxBoxSizer(wxHORIZONTAL);
|
auto* panel_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
panel_sizer->Add(view3D, 1, wxEXPAND | wxALL, 0);
|
panel_sizer->Add(view3D, 1, wxEXPAND | wxALL, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user