From 4f6f960460739c5e30eda95db3f6760d2a1eb429 Mon Sep 17 00:00:00 2001 From: Crementif <26669564+Crementif@users.noreply.github.com> Date: Tue, 8 Jul 2025 02:22:30 +0200 Subject: [PATCH] UI: Fix some minor ui issues - Fixes the about window having padding to the right of the scrollbar - Fixes the account information collapser widget from always having a white background --- src/gui/wxgui/GeneralSettings2.cpp | 3 --- src/gui/wxgui/MainWindow.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/wxgui/GeneralSettings2.cpp b/src/gui/wxgui/GeneralSettings2.cpp index 2143adda..62604654 100644 --- a/src/gui/wxgui/GeneralSettings2.cpp +++ b/src/gui/wxgui/GeneralSettings2.cpp @@ -836,9 +836,6 @@ wxPanel* GeneralSettings2::AddAccountPage(wxNotebook* notebook) { m_account_information = new wxCollapsiblePane(online_panel, wxID_ANY, _("Account information")); - #if BOOST_OS_WINDOWS - m_account_information->GetControlWidget()->SetBackgroundColour(*wxWHITE); - #endif auto win = m_account_information->GetPane(); auto content = new wxBoxSizer(wxVERTICAL); diff --git a/src/gui/wxgui/MainWindow.cpp b/src/gui/wxgui/MainWindow.cpp index c1826ae5..43c6740c 100644 --- a/src/gui/wxgui/MainWindow.cpp +++ b/src/gui/wxgui/MainWindow.cpp @@ -1861,7 +1861,7 @@ public: scrolledWindow->SetSizer(m_scrolledSizer); scrolledWindow->FitInside(); scrolledWindow->SetScrollRate(25, 25); - mainSizer->Add(scrolledWindow, wxSizerFlags(1).Expand().Border(wxLEFT | wxRIGHT, 10)); + mainSizer->Add(scrolledWindow, wxSizerFlags(1).Expand().Border(wxLEFT, 10)); SetSizer(mainSizer); CentreOnParent();