Remove unnecessary and ugly borders from wxPreviewFrame

Having borders around the controls toolbar and preview canvas not only
wasted space, but also let the frame background show through, which
looked just ugly under MSW, where it is dark grey and so clashes with
the control bar background.

Simply remove them to save space and improve appearance too.
This commit is contained in:
Vadim Zeitlin
2022-05-19 17:08:17 +01:00
parent f0de5a93f8
commit dcf24f5311

View File

@@ -1765,8 +1765,8 @@ void wxPreviewFrame::InitializeWithModality(wxPreviewFrameModalityKind kind)
wxBoxSizer* const sizer = new wxBoxSizer( wxVERTICAL );
sizer->Add( m_controlBar, wxSizerFlags().Expand().Border() );
sizer->Add( m_previewCanvas, wxSizerFlags(1).Expand().Border() );
sizer->Add( m_controlBar, wxSizerFlags().Expand() );
sizer->Add( m_previewCanvas, wxSizerFlags(1).Expand() );
SetSizer( sizer );
sizer->Fit(this);