From: Kevin Ottens Date: Wed, 21 Oct 2020 11:46:38 +0000 (+0200) Subject: Expose Theme on the QML side X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~98^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2e3f9d63a574fae661b96fc815cf3855c1762d9;p=nextcloud-desktop.git Expose Theme on the QML side Signed-off-by: Kevin Ottens --- diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 899cbf741..d29456207 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -74,6 +74,12 @@ Systray::Systray() } ); + qmlRegisterSingletonType("com.nextcloud.desktopclient", 1, 0, "Theme", + [](QQmlEngine *, QJSEngine *) -> QObject * { + return Theme::instance(); + } + ); + qmlRegisterSingletonType("com.nextcloud.desktopclient", 1, 0, "Systray", [](QQmlEngine *, QJSEngine *) -> QObject * { return Systray::instance();