Move project files to repo root
This commit is contained in:
49
QYRComponents/Colors.qml
Normal file
49
QYRComponents/Colors.qml
Normal file
@@ -0,0 +1,49 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user