Commit be4fd1cb authored by jan.koester's avatar jan.koester
Browse files

test

parent 22f9d3ab
Loading
Loading
Loading
Loading
+4 −4
Changes for client/qml/Theme.qml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -4,11 +4,11 @@ import QtQuick
QtObject {
    /*
     * 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.
     * Qt.styleHints.colorScheme enum: Unknown=0, Light=1, Dark=2.
     * On Linux the value is often 0 (Unknown), so default to dark
     * unless the system explicitly reports Light (1).
     */
    readonly property bool dark: Qt.styleHints.colorScheme !== Qt.ColorScheme.Light
    readonly property bool dark: Qt.styleHints.colorScheme !== 1

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