aboutsummaryrefslogtreecommitdiff
path: root/libraries/qt5-styleplugins/patches/0002-fix-gtk2-background.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2020-06-17 15:17:22 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:56:18 -0500
commita9f1fb87df537acee9bf56f3091fa179311d3b82 (patch)
treeda04a318f2bbd8478d3f9fa81ff734664feba60f /libraries/qt5-styleplugins/patches/0002-fix-gtk2-background.patch
parent8ef8aaab868653684d76ae4481d304d67ac619e6 (diff)
libraries/qt5-styleplugins: Patch for qt-5.15.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/qt5-styleplugins/patches/0002-fix-gtk2-background.patch')
-rw-r--r--libraries/qt5-styleplugins/patches/0002-fix-gtk2-background.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/qt5-styleplugins/patches/0002-fix-gtk2-background.patch b/libraries/qt5-styleplugins/patches/0002-fix-gtk2-background.patch
new file mode 100644
index 0000000000000..888ec0bb4b4b0
--- /dev/null
+++ b/libraries/qt5-styleplugins/patches/0002-fix-gtk2-background.patch
@@ -0,0 +1,25 @@
+From 20b0985a77df913585628d49a3b541fb957ae366 Mon Sep 17 00:00:00 2001
+From: gamezelda
+Date: Thu, 4 Jun 2020 00:06:50 +0200
+Subject: [PATCH] fix setting background palette
+
+---
+ src/plugins/styles/gtk2/qgtkstyle.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/plugins/styles/gtk2/qgtkstyle.cpp b/src/plugins/styles/gtk2/qgtkstyle.cpp
+index 2544593..6138bd2 100644
+--- a/src/plugins/styles/gtk2/qgtkstyle.cpp
++++ b/src/plugins/styles/gtk2/qgtkstyle.cpp
+@@ -442,6 +442,8 @@ void QGtkStyle::polish(QApplication *app)
+ if (app->desktopSettingsAware() && d->isThemeAvailable()) {
+ #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
+ QApplicationPrivate::setSystemPalette(standardPalette());
++#else
++ QApplication::setPalette(standardPalette());
+ #endif
+ QApplicationPrivate::setSystemFont(d->getThemeFont());
+ d->applyCustomPaletteHash();
+--
+2.27.0
+