From 68e9db0776225168bbb52d164b05b784466a28d8 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 8 Dec 2021 19:51:42 +0100 Subject: [ui] theming stub --- gui/themes/ThemeObject.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gui/themes/ThemeObject.qml (limited to 'gui/themes/ThemeObject.qml') 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 +} -- cgit v1.2.3