Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Material.dark not working.
Qt 6.11 is out! See what's new in the release blog

Material.dark not working.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 695 Views
  • 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.
  • S Offline
    S Offline
    sandro4912
    wrote on last edited by
    #1

    I wanted to have a app which can switch between light and dark mode style so I choosed the Material Style like this:

    QQuickStyle::setStyle("Material");
    

    That works it gives me Material with Material.light.

    I can also adjust some parameters like this in QML

    Material.primary: Material.LightBlue
    Material.accent: Material.Blue
    

    However if I try to set the dark mode like this:

    Material.theme: Material.dark
    

    I see absolutely no difference to Material.Light. What could be the issue?

    My system is Manjaro with KDE.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sandro4912
      wrote on last edited by sandro4912
      #2

      Really stupid it was the typo:

      Material.theme: Material.**D**ark
      

      To bad we don't get complains from QML about issues like that...

      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 Extensions
      • Unsolved