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. SystemPalette not correct on Linux / Breeze dark?
Forum Updated to NodeBB v4.3 + New Features

SystemPalette not correct on Linux / Breeze dark?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 324 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.
  • H Offline
    H Offline
    heikotietze
    wrote on last edited by
    #1

    I'm running Arch Linux with KDE/Breeze Dark and expect my own Qt/QML application to blend smoothly into the system theme. Fact is that my ApplicationWindow has a bright background unless I do something like

    background: Rectangle {
        anchors.fill: parent
        color: config.myPalette.window
    }
    

    which works but not for the menu, for example. Could do the same here and for every widget but that's very tedious.

    Tried with QApplication vs. QGuiApplication, which has no effect, and with

    app.setPalette(app.style()->standardPalette());
    

    which updates the colors but into a bright mode.

    Using a different style but Fusion does not change the colors neither setting palette/Window = System. I removed the qtquickcontrol now completely.

    Everything works fine on other OS, at least the dark mode on macOS looks beautiful (Android is bright, Windows does its own thing). What can I do?

    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