Loading client/qml/Theme.qml +7 −2 Changes for client/qml/Theme.qml: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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" Loading Loading
client/qml/Theme.qml +7 −2 Changes for client/qml/Theme.qml: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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" Loading