mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
Revert to WxWidgets 3.1.5 (#3249)
* revert to WxWidgets 3.1.5 * update nanosvg unicode path
This commit is contained in:
parent
cc23ec6626
commit
374f78c768
95 changed files with 6841 additions and 1618 deletions
|
@ -829,9 +829,12 @@ void SearchDialog::msw_rescale()
|
|||
{
|
||||
/* const int &em = GUI::wxGetApp().em_unit();
|
||||
|
||||
search_list_model->msw_rescale();
|
||||
search_list->GetColumn(SearchListModel::colIcon )->SetWidth(3 * em);
|
||||
search_list->GetColumn(SearchListModel::colMarkedText)->SetWidth(45 * em);
|
||||
|
||||
msw_buttons_rescale(this, em, { wxID_CANCEL });
|
||||
|
||||
const wxSize& size = wxSize(40 * em, 30 * em);
|
||||
SetMinSize(size);
|
||||
|
||||
|
@ -849,7 +852,7 @@ void SearchDialog::msw_rescale()
|
|||
//#endif
|
||||
//
|
||||
// // msw_rescale updates just icons, so use it
|
||||
// search_list_model->sys_color_changed();
|
||||
// search_list_model->msw_rescale();
|
||||
//
|
||||
// Refresh();
|
||||
//}
|
||||
|
@ -881,10 +884,9 @@ void SearchListModel::Prepend(const std::string &label)
|
|||
RowPrepended();
|
||||
}
|
||||
|
||||
void SearchListModel::sys_color_changed()
|
||||
void SearchListModel::msw_rescale()
|
||||
{
|
||||
for (ScalableBitmap &bmp : m_icon)
|
||||
bmp.sys_color_changed();
|
||||
for (ScalableBitmap &bmp : m_icon) bmp.msw_rescale();
|
||||
}
|
||||
|
||||
wxString SearchListModel::GetColumnType(unsigned int col) const
|
||||
|
@ -896,7 +898,7 @@ wxString SearchListModel::GetColumnType(unsigned int col) const
|
|||
void SearchListModel::GetValueByRow(wxVariant &variant, unsigned int row, unsigned int col) const
|
||||
{
|
||||
switch (col) {
|
||||
case colIcon: variant << m_icon[m_values[row].second].bmp().GetBitmapFor(m_icon[m_values[row].second].parent()); break;
|
||||
case colIcon: variant << m_icon[m_values[row].second].bmp(); break;
|
||||
case colMarkedText: variant = m_values[row].first; break;
|
||||
case colMax: wxFAIL_MSG("invalid column");
|
||||
default: break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue