ENH: refine max/min/close button position in BBLTopbar

Change-Id: Idb86daf195df856e24c32363e763e38d77f39744
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-01-11 11:06:33 +08:00 committed by Lane.Wei
parent e962bcfec9
commit 5861cbc30a

View file

@ -284,8 +284,6 @@ void BBLTopbar::Init(wxFrame* parent)
wxBitmap close_bitmap = create_scaled_bitmap("topbar_close", nullptr, TOPBAR_ICON_SIZE);
wxAuiToolBarItem* close_btn = this->AddTool(wxID_CLOSE_FRAME, "", close_bitmap);
this->AddSpacer(FromDIP(6));
Realize();
// m_toolbar_h = this->GetSize().GetHeight();
m_toolbar_h = FromDIP(30);