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

Provide a QPA API for detecting which system theme (light/dark/etc.) is in use

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 6.2.1, 6.3.0 Alpha
    • None
    • QPA
    • None
    • 2248487c6ca9d5459c70a16868d5aeee07d96157 (qt/qtbase/dev) 77659e03393820daace991c28021cfb8b67f871a (qt/qtbase/6.2)

    Description

      There are a couple of ways that we're checking which system theme is in use:

      Having a QPA API for this would be much better.

      We could do this by adding e.g. a SystemTheme enum to QPlatformTheme:

      enum SystemTheme {
          DarkTheme,
          LightTheme,
          OtherTheme
      };
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: