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

QIcon theme revamp

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Some future release
    • GUI: Look'n'Feel
    • None
    • All

    Description

      The QIcon theme machinery/APIs/docs could use some revamp. The original design was based on the freedesktop icon spec, but we should not limit ourselves to that. For example, macOS 11+ now has a comprehensive icon set known as SF Symbols https://developer.apple.com/sf-symbols/

      Some steps/ideas:

      • Let the string based QIcon::fromTheme look up the strings directly in the underlying theme. On freedesktop platforms that will be 1:1 with what we have today. On macOS the names from SF Symbols will be mapped.
        • This behavior change should be fine, as no non-freesktop platform implements this today anyways
      • Add a QIcon::StandardIcon enum and fromTheme overload that matches the existing freedesktop spec, mapping to the same names on freedestkop platforms, and to the relevant names on SF Symbols.
      • Guard the QIconCacheGtkReader behind a GTK configure ifdef, or possibly move to the Gtk3 platform theme if possible

      Attachments

        1. image-2022-04-06-15-09-57-449.png
          648 kB
          Tor Arne Vestbø
        2. image-2022-04-06-15-18-58-094.png
          624 kB
          Tor Arne Vestbø

        Issue Links

          Activity

            People

              vestbo Tor Arne Vestbø
              vestbo Tor Arne Vestbø
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: