OSDN Git Service

888ec0bb4b4b0f40745787bc29588838f8ed6da1
[alterlinux/alterlinux-pkgbuilds.git] / alter-stable / any / qt5-styleplugins / 0002-fix-gtk2-background.patch
1 From 20b0985a77df913585628d49a3b541fb957ae366 Mon Sep 17 00:00:00 2001
2 From: gamezelda
3 Date: Thu, 4 Jun 2020 00:06:50 +0200
4 Subject: [PATCH] fix setting background palette
5
6 ---
7  src/plugins/styles/gtk2/qgtkstyle.cpp | 2 ++
8  1 file changed, 2 insertions(+)
9
10 diff --git a/src/plugins/styles/gtk2/qgtkstyle.cpp b/src/plugins/styles/gtk2/qgtkstyle.cpp
11 index 2544593..6138bd2 100644
12 --- a/src/plugins/styles/gtk2/qgtkstyle.cpp
13 +++ b/src/plugins/styles/gtk2/qgtkstyle.cpp
14 @@ -442,6 +442,8 @@ void QGtkStyle::polish(QApplication *app)
15      if (app->desktopSettingsAware() && d->isThemeAvailable()) {
16  #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
17          QApplicationPrivate::setSystemPalette(standardPalette());
18 +#else
19 +        QApplication::setPalette(standardPalette());
20  #endif
21          QApplicationPrivate::setSystemFont(d->getThemeFont());
22          d->applyCustomPaletteHash();
23 -- 
24 2.27.0
25