Commit 4de110a2 authored by Chupligin Sergey's avatar Chupligin Sergey

[Theme] add theme class prototype

parent d20c0321
......@@ -35,7 +35,8 @@ HEADERS += \
nemoimageprovider.h \
themedaemon/mlocalthemedaemonclient.h \
themedaemon/mabstractthemedaemonclient.h \
sizing.h
sizing.h \
theme.h
SOURCES += \
qquicknemocontrolsextensionplugin.cpp \
......@@ -46,7 +47,8 @@ SOURCES += \
nemoimageprovider.cpp \
themedaemon/mlocalthemedaemonclient.cpp \
themedaemon/mabstractthemedaemonclient.cpp \
sizing.cpp
sizing.cpp \
theme.cpp
target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
......
#include "theme.h"
Theme::Theme(QObject *parent) : QObject(parent)
{
}
bool Theme::loadTheme(QString name)
{
emit themeUpdate();
return true;
}
#ifndef THEME_He5
#define THEME_H
#include <QObject>
class Theme : public QObject
{
Q_OBJECT
public:
explicit Theme(QObject *parent = 0);
bool loadTheme(QString name);
qreal itemWidthLarge; //320
qreal itemWidthMedium; //240
qreal itemWidthSmall; //120
qreal itemHeightHuge; //80
qreal itemHeightExtraLarge; //75
qreal itemHeightLarge; //63
qreal itemHeightMedium; //50
qreal itemHeightSmall; //40
qreal itemSpacingHuge; //40
qreal itemSpacingLarge; //20
qreal itemSpacingMedium; //15
qreal itemSpacingSmall; //10
qreal itemExtraSmall; //8
int fontSizeExtraLarge; //30
int fontSizeLarge; //24
int fontSizeMedium; //20
int fontSizeSmall; //18
int fontSizeTiny; //16
QString accentColor; //#0091e5
QString fillColor; //#474747
QString fillDarkColor; //#313131
QString textColor; //#ffffff
QString backgroundColor; //#000000
signals:
void themeUpdate();
public slots:
};
#endif // THEME_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment