summaryrefslogtreecommitdiff
path: root/libre/qt5-styleplugins/0002-fix-gtk2-background.patch
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-11-23 22:52:53 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2020-11-23 23:04:45 -0500
commitad36e765afec78a9a490432cd1fed9938dbf10a5 (patch)
treef4a4d0a6b7bd6db6cf3b15b47b03573bb81603d0 /libre/qt5-styleplugins/0002-fix-gtk2-background.patch
parentb0ef492015e7338079d1eeba8a78ae473aab40fd (diff)
downloadabslibre-ad36e765afec78a9a490432cd1fed9938dbf10a5.tar.gz
abslibre-ad36e765afec78a9a490432cd1fed9938dbf10a5.tar.bz2
abslibre-ad36e765afec78a9a490432cd1fed9938dbf10a5.zip
[qt5-styleplugins]: move to libre - rebuild agianst latest QT5
Diffstat (limited to 'libre/qt5-styleplugins/0002-fix-gtk2-background.patch')
-rw-r--r--libre/qt5-styleplugins/0002-fix-gtk2-background.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/libre/qt5-styleplugins/0002-fix-gtk2-background.patch b/libre/qt5-styleplugins/0002-fix-gtk2-background.patch
new file mode 100644
index 000000000..888ec0bb4
--- /dev/null
+++ b/libre/qt5-styleplugins/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
+