mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
Qt/WrapInScrollArea: Ensure correct macOS background colors
This commit is contained in:
parent
a9841e4fc4
commit
4bf276e912
@ -30,8 +30,8 @@ QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize, int margi
|
|||||||
std::max(recommended_height, to_resize->height()));
|
std::max(recommended_height, to_resize->height()));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
// Transparency can cause unwanted side-effects on OSes other than Windows
|
// Transparency can cause unwanted side-effects on OSes other than Windows / macOS
|
||||||
|
|
||||||
// Make sure the background color stays consistent with the parent widget
|
// Make sure the background color stays consistent with the parent widget
|
||||||
QPalette p = wrapped_widget->palette();
|
QPalette p = wrapped_widget->palette();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user