FIX:use scalablebitmap replace wxbitmap

Change-Id: I4ca885051f309be4a7d9a6e08de097fe75847257
This commit is contained in:
tao wang 2022-07-27 17:40:07 +08:00 committed by Lane.Wei
parent 00ba515783
commit 9fc010512c
22 changed files with 187 additions and 186 deletions

View file

@ -38,7 +38,7 @@ TabButtonsListCtrl::TabButtonsListCtrl(wxWindow *parent, wxBoxSizer *side_tools)
m_btn_margin = 0;
m_line_margin = std::lround(0.1 * em);
m_arrow_img = create_scaled_bitmap("monitor_arrow", nullptr, 14);
m_arrow_img = ScalableBitmap(this, "monitor_arrow", 14);
m_sizer = new wxBoxSizer(wxVERTICAL);
this->SetSizer(m_sizer);
@ -87,7 +87,7 @@ void TabButtonsListCtrl::OnPaint(wxPaintEvent &)
void TabButtonsListCtrl::Rescale()
{
m_arrow_img = create_scaled_bitmap("monitor_arrow", nullptr, 14);
m_arrow_img = ScalableBitmap(this, "monitor_arrow", 14);
int em = em_unit(this);
for (TabButton *btn : m_pageButtons) {