Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How do I switch the FluentWinUI3 style to Dark theme?
Qt 6.12 LTS is out! See what's new in the release blog

How do I switch the FluentWinUI3 style to Dark theme?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 542 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chenly
    wrote on last edited by
    #1

    The documentation mentions a Dark theme, but I don't know how to enable it. I'm currently using

    import QtQuick.Controls.FluentWinUI3
    
    1 Reply Last reply
    0
    • A Offline
      A Offline
      AndyMf
      wrote on last edited by
      #2

      I think it follows your system theme because on my system it uses the dark theme already

      1 Reply Last reply
      0
      • D Online
        D Online
        dorisverria
        wrote last edited by
        #3

        It will follow the application's colorScheme (https://doc.qt.io/qt-6/qstylehints.html#colorScheme-prop) so you can set it like this: Qt.styleHints.colorScheme = Qt.Dark

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved