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

    • Type: Task
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: QPA
    • Labels:
      None
    • Technical Risk:
      Normal

      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

          For Gerrit Dashboard: QTBUG-94859
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are 3 open Gerrit changes