UI: Fix dark mode in hotkey settings window

This commit is contained in:
Crementif 2025-07-20 12:49:31 +02:00
parent c025e01a18
commit 0188cc463c

View File

@ -146,7 +146,6 @@ HotkeySettings::HotkeySettings(wxWindow* parent)
m_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE); m_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE);
m_panel->SetSizer(m_sizer); m_panel->SetSizer(m_sizer);
m_panel->SetBackgroundColour(*wxWHITE);
Center(); Center();
@ -229,11 +228,7 @@ void HotkeySettings::CreateHotkeyRow(const wxString& label, sHotkeyCfg& cfgHotke
keyInput->SetMinSize(m_minButtonSize); keyInput->SetMinSize(m_minButtonSize);
controllerInput->SetMinSize(m_minButtonSize); controllerInput->SetMinSize(m_minButtonSize);
#if BOOST_OS_WINDOWS
const wxColour inputButtonColor = 0xfafafa;
#else
const wxColour inputButtonColor = GetBackgroundColour(); const wxColour inputButtonColor = GetBackgroundColour();
#endif
keyInput->SetBackgroundColour(inputButtonColor); keyInput->SetBackgroundColour(inputButtonColor);
controllerInput->SetBackgroundColour(inputButtonColor); controllerInput->SetBackgroundColour(inputButtonColor);