Important: Please read the Qt Code of Conduct -

Material.dark not working.

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


    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.

  • Really stupid it was the typo:

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

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

Log in to reply