22 lines
880 B
QML
22 lines
880 B
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
|
|
QtObject {
|
|
readonly property int dark: 0
|
|
readonly property int light: 1
|
|
|
|
property int theme: Application.styleHints.colorScheme === Qt.ColorScheme.Light ? light : dark
|
|
|
|
readonly property color primary: "#b81a34"
|
|
readonly property color primaryContrast: "#fdfdfd"
|
|
readonly property color primaryLighter: Qt.lighter(primary, 1.5)
|
|
readonly property color foreground: theme === dark ? "#fdfdfd" : "#110b0c"
|
|
readonly property color background: theme === dark ? "#303136" : "#eff1f5"
|
|
readonly property color mantle: theme === dark ? "#1e1f22" : "#e7e9ef"
|
|
readonly property color interactive: theme === dark ? "#878b97" : "#d9d9da"
|
|
readonly property color error: theme === dark ? "#ff2264" : "#ff004b"
|
|
readonly property color transparent: "transparent"
|
|
|
|
readonly property double highlightOpacity: .3
|
|
} |