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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user