From 343e15c8736943f1ee8be9e493df9860de8501a905145a1a7bf564291e88658f Mon Sep 17 00:00:00 2001 From: Yuri Becker Date: Thu, 13 Mar 2025 10:45:55 +0100 Subject: [PATCH] Define Colors --- Gui/Style/Colors.qml | 17 +++++++++++++++++ Gui/Style/qmldir | 1 + 2 files changed, 18 insertions(+) create mode 100644 Gui/Style/Colors.qml diff --git a/Gui/Style/Colors.qml b/Gui/Style/Colors.qml new file mode 100644 index 0000000..9055494 --- /dev/null +++ b/Gui/Style/Colors.qml @@ -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" +} \ No newline at end of file diff --git a/Gui/Style/qmldir b/Gui/Style/qmldir index 2c82438..c673951 100644 --- a/Gui/Style/qmldir +++ b/Gui/Style/qmldir @@ -1,2 +1,3 @@ module TeroStyle +singleton Colors Colors.qml Button Button.qml \ No newline at end of file