Define Colors
This commit is contained in:
17
Gui/Style/Colors.qml
Normal file
17
Gui/Style/Colors.qml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
pragma Singleton
|
||||||
|
|
||||||
|
import QtQuick
|
||||||
|
|
||||||
|
QtObject {
|
||||||
|
readonly property int dark: 0
|
||||||
|
readonly property int light: 1
|
||||||
|
|
||||||
|
property int theme: dark
|
||||||
|
|
||||||
|
readonly property color primary: "#b81a34"
|
||||||
|
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"
|
||||||
|
}
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
module TeroStyle
|
module TeroStyle
|
||||||
|
singleton Colors Colors.qml
|
||||||
Button Button.qml
|
Button Button.qml
|
||||||
Reference in New Issue
Block a user