From 982ae7fa8501ad1c7131b8428846b336bc094916 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 9 Dec 2020 10:23:03 +0100 Subject: [PATCH] Tweaked layout of preference dialog --- src/slic3r/GUI/Preferences.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp index c2566f20fb..1aa9d803e7 100644 --- a/src/slic3r/GUI/Preferences.cpp +++ b/src/slic3r/GUI/Preferences.cpp @@ -44,10 +44,13 @@ static void activate_options_tab(std::shared_ptr optgroup) void PreferencesDialog::build() { + SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)); + const wxFont& font = wxGetApp().normal_font(); + SetFont(font); + auto app_config = get_app_config(); wxNotebook* tabs = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_TOP | wxTAB_TRAVERSAL | wxNB_NOPAGETHEME); - tabs->SetFont(wxGetApp().normal_font()); // Add "General" tab m_optgroup_general = create_options_tab(_L("General"), tabs); @@ -328,12 +331,12 @@ void PreferencesDialog::build() #endif // ENABLE_ENVIRONMENT_MAP auto sizer = new wxBoxSizer(wxVERTICAL); - sizer->Add(tabs, 1, wxEXPAND); + sizer->Add(tabs, 1, wxEXPAND | wxTOP | wxLEFT | wxRIGHT, 5); auto buttons = CreateStdDialogButtonSizer(wxOK | wxCANCEL); wxButton* btn = static_cast(FindWindowById(wxID_OK, this)); btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent&) { accept(); }); - sizer->Add(buttons, 0, wxALIGN_CENTER_HORIZONTAL | wxBOTTOM| wxTOP, 10); + sizer->Add(buttons, 0, wxALIGN_CENTER_HORIZONTAL | wxBOTTOM | wxTOP, 10); SetSizer(sizer); sizer->SetSizeHints(this);