mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
UI: Fix dark mode in hotkey settings window
This commit is contained in:
parent
c025e01a18
commit
0188cc463c
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user