Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2020
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/src/plugins/styles/gtk2/qgtkstyle.cpp b/src/plugins/styles/gtk2/qgtkstyle.cpp
  2. index 36169c9..aeb6c2b 100644
  3. --- a/src/plugins/styles/gtk2/qgtkstyle.cpp
  4. +++ b/src/plugins/styles/gtk2/qgtkstyle.cpp
  5. @@ -440,7 +440,7 @@ void QGtkStyle::polish(QApplication *app)
  6. // not supported as these should be entirely determined by
  7. // current Gtk settings
  8. if (app->desktopSettingsAware() && d->isThemeAvailable()) {
  9. - QApplicationPrivate::setSystemPalette(standardPalette());
  10. + QApplication::setPalette(standardPalette());
  11. QApplicationPrivate::setSystemFont(d->getThemeFont());
  12. d->applyCustomPaletteHash();
  13. if (!d->isKDE4Session())
  14. diff --git a/src/plugins/styles/gtk2/qgtkstyle_p.cpp b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
  15. index e57b3d8..9f049f2 100644
  16. --- a/src/plugins/styles/gtk2/qgtkstyle_p.cpp
  17. +++ b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
  18. @@ -508,7 +508,6 @@ void QGtkStyleUpdateScheduler::updateTheme()
  19. if (oldTheme != QGtkStylePrivate::getThemeName()) {
  20. oldTheme = QGtkStylePrivate::getThemeName();
  21. QPalette newPalette = qApp->style()->standardPalette();
  22. - QApplicationPrivate::setSystemPalette(newPalette);
  23. QApplication::setPalette(newPalette);
  24. if (!QGtkStylePrivate::instances.isEmpty()) {
  25. QGtkStylePrivate::instances.last()->initGtkWidgets();
Advertisement
RAW Paste Data Copied
Advertisement