50 lines
1.2 KiB
QML
50 lines
1.2 KiB
QML
pragma Singleton
|
|
|
|
import QtQuick 6.8
|
|
|
|
Item {
|
|
QtObject {
|
|
id: themes
|
|
|
|
readonly property var light: ({
|
|
text: "#1f1f1f",
|
|
primary: "#007bff",
|
|
primaryAlt: "#0056b3",
|
|
surface1: "#323232",
|
|
surface0: "#282828",
|
|
background: "#f4f4f4"
|
|
})
|
|
|
|
readonly property var dark: ({
|
|
text: "#f4f4f4",
|
|
primary: "#007bff",
|
|
primaryAlt: "#0056b3",
|
|
surface1: "#323232",
|
|
surface0: "#282828",
|
|
background: "#1f1f1f"
|
|
})
|
|
}
|
|
|
|
readonly property string fontFamily: "Arial"
|
|
readonly property var fontSize: ({
|
|
h1: 32,
|
|
h2: 24,
|
|
h3: 18,
|
|
h4: 16,
|
|
h5: 13,
|
|
h6: 10,
|
|
p: 12,
|
|
base: 12
|
|
})
|
|
|
|
property var currentTheme: themes.dark
|
|
// property alias themes: themes
|
|
|
|
readonly property string text: currentTheme.text
|
|
readonly property string primary: currentTheme.primary
|
|
readonly property string primaryAlt: currentTheme.primaryAlt
|
|
readonly property string surface1: currentTheme.surface1
|
|
readonly property string surface0: currentTheme.surface0
|
|
readonly property string background: currentTheme.background
|
|
}
|