mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-15 19:04:37 +00:00
Qt: Fix hotkey alt row colours on Mac
This commit is contained in:
@@ -379,6 +379,15 @@ void QtHost::SetStyleFromSettings()
|
||||
qApp->setStyle(s_unthemed_style_name);
|
||||
qApp->setPalette(s_unthemed_palette);
|
||||
qApp->setStyleSheet(QString());
|
||||
|
||||
#ifdef __APPLE__
|
||||
// This is super jank. The native theme on MacOS does not set AlternateBase like the Windows/Fusion themes do, but
|
||||
// instead overrides it in QAbstractItemView. Since this is the only place that AlteranteBase is used, just copy it
|
||||
// across. Why do we need this? Because we're using AlternateBase in hotkey bindings dialog to draw rows manually.
|
||||
s_unthemed_palette.setColor(QPalette::AlternateBase,
|
||||
qApp->palette("QAbstractItemView").color(QPalette::AlternateBase));
|
||||
qApp->setPalette(s_unthemed_palette);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user