Commit 22f9d3ab authored by jan.koester's avatar jan.koester
Browse files

test

parent 2814d6b2
Loading
Loading
Loading
Loading
+7 −2
Changes for client/qml/Theme.qml: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,13 @@ pragma Singleton
import QtQuick

QtObject {
    /* Follow system dark/light preference via Qt.styleHints */
    readonly property bool dark: Qt.styleHints.colorScheme === Qt.ColorScheme.Dark
    /*
     * Follow system dark/light preference.
     * Qt.styleHints.colorScheme may return Unknown (0) on Linux when the
     * desktop theme cannot be detected.  Default to dark unless the system
     * explicitly reports Light.
     */
    readonly property bool dark: Qt.styleHints.colorScheme !== Qt.ColorScheme.Light

    readonly property color bgPrimary:   dark ? "#1e1e2e" : "#f5f5f7"
    readonly property color bgSecondary: dark ? "#2b2b3d" : "#e8e8ec"