Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48470

Generic Unix theme: "gnome" platformtheme is skipped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 5.6.0 Alpha
    • 5.5.0
    • QPA: X11/XCB
    • None
    • fa542b2ab66c39099c73ebf25eca9cca2070a8d8

    Description

      The "gnome" platform theme that's part of the generic unix theme is never selected by applications.

      Here's what happens:
      QGenericUnixTheme::themeNames, when it detects a GTK-based DE, puts "gtk2" followed by "gnome" onto the theme list. Let's assume the gtk2 theme is not installed. In that case, QGenericUnixTheme::createUnixTheme later gets called with "gtk2" as parameter. Since this is not a name it knows, it returns the generic unix theme. This breaks icons in all Qt-based applications.

      I think what should happen is that QGenericUnixTheme::createUnixTheme returns NULL when called with "gtk2". Next, it will be called with "gnome", it will returns the gnome theme, and proper icons will be used.

      Attachments

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              ralfjung Ralf Jung
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: