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

Change-Id: Idb86daf195df856e24c32363e763e38d77f39744
Signed-off-by: Stone Li <stone.li@bambulab.com>
(cherry picked from commit 986c3b162c7f5934c9f88ba281b6e47787b0f9fb)
This commit is contained in:
Stone Li 2023-01-11 11:06:33 +08:00 committed by lane.wei
parent 71b421d407
commit a51423d3e3

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);