diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-10-21 14:46:38 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-10-21 14:46:38 +0300 |
commit | a2e3f9d63a574fae661b96fc815cf3855c1762d9 (patch) | |
tree | 56d5e63323ff5ee1de84756e704f99c0e4e2cbb9 /src/gui/systray.cpp | |
parent | 7536e4c00b1266e001114bfaf1e3e586efb67c4f (diff) |
Expose Theme on the QML side
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Diffstat (limited to 'src/gui/systray.cpp')
-rw-r--r-- | src/gui/systray.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<Systray>("com.nextcloud.desktopclient", 1, 0, "Theme", + [](QQmlEngine *, QJSEngine *) -> QObject * { + return Theme::instance(); + } + ); + qmlRegisterSingletonType<Systray>("com.nextcloud.desktopclient", 1, 0, "Systray", [](QQmlEngine *, QJSEngine *) -> QObject * { return Systray::instance(); |