diff options
Diffstat (limited to 'src/plugins/platformthemes/gtk3/qgtk3theme.cpp')
-rw-r--r-- | src/plugins/platformthemes/gtk3/qgtk3theme.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp index 553cd70d8f..9d23ba7e48 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp +++ b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp @@ -104,20 +104,6 @@ QGtk3Theme::QGtk3Theme() SETTING_CONNECT("gtk-cursor-theme-size"); #undef SETTING_CONNECT - /* Set XCURSOR_SIZE and XCURSOR_THEME for Wayland sessions */ - if (QGuiApplication::platformName().startsWith("wayland"_L1)) { - if (qEnvironmentVariableIsEmpty("XCURSOR_SIZE")) { - const int cursorSize = gtkSetting<gint>("gtk-cursor-theme-size"); - if (cursorSize > 0) - qputenv("XCURSOR_SIZE", QByteArray::number(cursorSize)); - } - if (qEnvironmentVariableIsEmpty("XCURSOR_THEME")) { - const QString cursorTheme = gtkSetting("gtk-cursor-theme-name"); - if (!cursorTheme.isEmpty()) - qputenv("XCURSOR_THEME", cursorTheme.toUtf8()); - } - } - m_storage.reset(new QGtk3Storage); } @@ -174,10 +160,10 @@ QString QGtk3Theme::gtkFontName() const return QGnomeTheme::gtkFontName(); } -Qt::Appearance QGtk3Theme::appearance() const +Qt::ColorScheme QGtk3Theme::colorScheme() const { Q_ASSERT(m_storage); - return m_storage->appearance(); + return m_storage->colorScheme(); } bool QGtk3Theme::usePlatformNativeDialog(DialogType type) const |