mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Expose the branding related members of Theme as properties
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
de63e5e221
commit
7536e4c00b
1 changed files with 19 additions and 1 deletions
|
@ -15,10 +15,10 @@
|
|||
#ifndef _THEME_H
|
||||
#define _THEME_H
|
||||
|
||||
#include <QIcon>
|
||||
#include <QObject>
|
||||
#include "syncresult.h"
|
||||
|
||||
class QIcon;
|
||||
class QString;
|
||||
class QObject;
|
||||
class QPixmap;
|
||||
|
@ -37,6 +37,24 @@ class SyncResult;
|
|||
class OWNCLOUDSYNC_EXPORT Theme : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool branded READ isBranded CONSTANT)
|
||||
Q_PROPERTY(QString appNameGUI READ appNameGUI CONSTANT)
|
||||
Q_PROPERTY(QString appName READ appName CONSTANT)
|
||||
#ifndef TOKEN_AUTH_ONLY
|
||||
Q_PROPERTY(QIcon folderDisabledIcon READ folderDisabledIcon CONSTANT)
|
||||
Q_PROPERTY(QIcon folderOfflineIcon READ folderOfflineIcon CONSTANT)
|
||||
Q_PROPERTY(QIcon applicationIcon READ applicationIcon CONSTANT)
|
||||
#endif
|
||||
Q_PROPERTY(QString version READ version CONSTANT)
|
||||
Q_PROPERTY(QString helpUrl READ helpUrl CONSTANT)
|
||||
Q_PROPERTY(QString conflictHelpUrl READ conflictHelpUrl CONSTANT)
|
||||
Q_PROPERTY(QString overrideServerUrl READ overrideServerUrl)
|
||||
Q_PROPERTY(bool forceOverrideServerUrl READ forceOverrideServerUrl)
|
||||
#ifndef TOKEN_AUTH_ONLY
|
||||
Q_PROPERTY(QColor wizardHeaderTitleColor READ wizardHeaderTitleColor CONSTANT)
|
||||
Q_PROPERTY(QColor wizardHeaderBackgroundColor READ wizardHeaderBackgroundColor CONSTANT)
|
||||
#endif
|
||||
Q_PROPERTY(QString updateCheckUrl READ updateCheckUrl CONSTANT)
|
||||
public:
|
||||
enum CustomMediaType {
|
||||
oCSetupTop, // ownCloud connect page
|
||||
|
|
Loading…
Reference in a new issue