summaryrefslogtreecommitdiff
path: root/gui/themes/ThemeObject.qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/themes/ThemeObject.qml')
-rw-r--r--gui/themes/ThemeObject.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/themes/ThemeObject.qml b/gui/themes/ThemeObject.qml
new file mode 100644
index 0000000..bd558e1
--- /dev/null
+++ b/gui/themes/ThemeObject.qml
@@ -0,0 +1,15 @@
+import QtQuick 2.3
+
+QtObject {
+ property var theme;
+ // here we expose any var contained in
+ // the js file. This object can be accessed as the global
+ // customTheme, since it's loaded in main.qml
+ // TODO it'd be real nice if we can implement a fallback mechanism so that any value defaults to the general theme.
+ property string bgColor: theme.bgColor
+ property string fgColor: theme.fgColor
+ property string iconOn: theme.iconOn
+ property string iconOff: theme.iconOff
+ property string iconConnecting: theme.iconConnecting
+ property string iconSplash: theme.iconSplash
+}