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 primaryShade: theme === dark ? primaryLighter : Qt.darker(primary, 1.5)
    readonly property color primaryHighlight: theme === dark ? Qt.darker(primary, 2- Colors.highlightOpacity) : Qt.lighter(primary, 2- Colors.highlightOpacity)
    readonly property color foreground: theme === dark ? "#fdfdfd" : "#110b0c"
    readonly property color background: theme === dark ? "#303136" : "#eff1f5"
    readonly property color mantle: theme === dark ? "#1E1E23" : "#e7e9ef"
    readonly property color interactive: theme === dark ? "#878b97" : "#d9d9da"
    readonly property color error: theme === dark ? "#ff2264" : "#ff004b"
    readonly property color disabled: theme === dark ? Qt.darker(interactive, 1.9) : Qt.darker(interactive, 1.3)
    readonly property color disabledForeground: theme === dark ? Qt.darker(foreground, 1.4) : Qt.lighter(foreground, 1.9)
    readonly property color transparent: "transparent"

    readonly property double highlightOpacity: .3
}