Loading client/qml/Theme.qml +5 −5 Changes for client/qml/Theme.qml: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -3,12 +3,12 @@ import QtQuick QtObject { /* * Follow system dark/light preference. * 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). * Detect system dark/light theme by checking the actual system * window color brightness. This works reliably on Linux/KDE/GNOME * where Qt.styleHints.colorScheme often returns Unknown. */ readonly property bool dark: Qt.styleHints.colorScheme !== 1 property SystemPalette _sys: SystemPalette {} readonly property bool dark: _sys.window.hslLightness < 0.5 readonly property color bgPrimary: dark ? "#1e1e2e" : "#f5f5f7" readonly property color bgSecondary: dark ? "#2b2b3d" : "#e8e8ec" Loading Loading
client/qml/Theme.qml +5 −5 Changes for client/qml/Theme.qml: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -3,12 +3,12 @@ import QtQuick QtObject { /* * Follow system dark/light preference. * 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). * Detect system dark/light theme by checking the actual system * window color brightness. This works reliably on Linux/KDE/GNOME * where Qt.styleHints.colorScheme often returns Unknown. */ readonly property bool dark: Qt.styleHints.colorScheme !== 1 property SystemPalette _sys: SystemPalette {} readonly property bool dark: _sys.window.hslLightness < 0.5 readonly property color bgPrimary: dark ? "#1e1e2e" : "#f5f5f7" readonly property color bgSecondary: dark ? "#2b2b3d" : "#e8e8ec" Loading