mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 14:35:54 +08:00
Archive Dialog minimal size
This commit is contained in:
parent
80c92d1331
commit
c447fd5255
@ -275,6 +275,7 @@ FileArchiveDialog::FileArchiveDialog(wxWindow* parent_window, mz_zip_archive* ar
|
|||||||
topSizer->Add(m_avc, 1, wxEXPAND | wxALL, 10);
|
topSizer->Add(m_avc, 1, wxEXPAND | wxALL, 10);
|
||||||
topSizer->Add(btn_sizer, 0, wxEXPAND | wxALL, 10);
|
topSizer->Add(btn_sizer, 0, wxEXPAND | wxALL, 10);
|
||||||
this->SetSizer(topSizer);
|
this->SetSizer(topSizer);
|
||||||
|
SetMinSize(wxSize(40 * em, 30 * em));
|
||||||
|
|
||||||
for (const wxString& id : {_L("All"), _L("None"), _L("Open"), _L("Cancel") })
|
for (const wxString& id : {_L("All"), _L("None"), _L("Open"), _L("Cancel") })
|
||||||
wxGetApp().UpdateDarkUI(static_cast<wxButton*>(FindWindowByLabel(id, this)));
|
wxGetApp().UpdateDarkUI(static_cast<wxButton*>(FindWindowByLabel(id, this)));
|
||||||
@ -288,9 +289,8 @@ void FileArchiveDialog::on_dpi_changed(const wxRect& suggested_rect)
|
|||||||
//for (auto btn : { m_save_btn, m_transfer_btn, m_discard_btn })
|
//for (auto btn : { m_save_btn, m_transfer_btn, m_discard_btn })
|
||||||
// if (btn) btn->msw_rescale();
|
// if (btn) btn->msw_rescale();
|
||||||
|
|
||||||
const wxSize& size = wxSize(70 * em, 30 * em);
|
const wxSize& size = wxSize(45 * em, 40 * em);
|
||||||
SetMinSize(size);
|
SetSize(size);
|
||||||
|
|
||||||
//m_tree->Rescale(em);
|
//m_tree->Rescale(em);
|
||||||
|
|
||||||
Fit();
|
Fit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user