Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
qtquickcontrols-nemo
Commits
4de110a2
Commit
4de110a2
authored
Apr 13, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Theme] add theme class prototype
parent
d20c0321
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
2 deletions
+65
-2
controls.pro
src/controls/controls.pro
+4
-2
theme.cpp
src/controls/theme.cpp
+12
-0
theme.h
src/controls/theme.h
+49
-0
No files found.
src/controls/controls.pro
View file @
4de110a2
...
...
@@ -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
...
...
src/controls/theme.cpp
0 → 100644
View file @
4de110a2
#include "theme.h"
Theme
::
Theme
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
bool
Theme
::
loadTheme
(
QString
name
)
{
emit
themeUpdate
();
return
true
;
}
src/controls/theme.h
0 → 100644
View file @
4de110a2
#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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment