From dcf24f5311533cb794bb92a6f1f1a0c1a552d807 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 May 2022 17:08:17 +0100 Subject: [PATCH] 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. --- src/common/prntbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 35af2cacde..48413c05d1 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -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);