forked from ghostfox/qyouradio
45 lines
979 B
QML
45 lines
979 B
QML
pragma Singleton
|
|
|
|
import QtQuick 6.8
|
|
|
|
Item {
|
|
QtObject {
|
|
id: themes
|
|
|
|
readonly property var light: {
|
|
text: "#1f1f1f"
|
|
primary: "#007bff"
|
|
primaryAlt: "#0056b3"
|
|
background: "#f4f4f4"
|
|
}
|
|
|
|
readonly property var dark: {
|
|
text: "#f4f4f4"
|
|
primary: "#007bff"
|
|
primaryAlt: "#0056b3"
|
|
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 background: currentTheme.background
|
|
|
|
}
|