summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/themeinterface.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-30 21:09:18 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-30 13:54:12 -0700
commitce1629ccce2fef50a48f21ee99825b090274da8a (patch)
treeeffac541331785e1e8a2acc29e31353b836c597b /mobile-widgets/themeinterface.cpp
parent17027474593903792060f88a2522a05c3228558c (diff)
downloadsubsurface-ce1629ccce2fef50a48f21ee99825b090274da8a.tar.gz
coding style: rename themeInterface to ThemeInterface
As per coding style, class names are PascalCase. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/themeinterface.cpp')
-rw-r--r--mobile-widgets/themeinterface.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/mobile-widgets/themeinterface.cpp b/mobile-widgets/themeinterface.cpp
index 905262f89..d76e09aaa 100644
--- a/mobile-widgets/themeinterface.cpp
+++ b/mobile-widgets/themeinterface.cpp
@@ -44,13 +44,13 @@ static const QColor DARK_PRIMARY_TEXT_COLOR = "#ECECEC";
static const QColor DARK_SECONDARY_TEXT_COLOR = "#757575";
static const QColor DARK_TEXT_COLOR = "#ECECEC";
-themeInterface *themeInterface::instance()
+ThemeInterface *ThemeInterface::instance()
{
- static themeInterface *self = new themeInterface;
+ static ThemeInterface *self = new ThemeInterface;
return self;
}
-void themeInterface::setup(QQmlContext *ct)
+void ThemeInterface::setup(QQmlContext *ct)
{
// Register interface class
ct->setContextProperty("subsurfaceTheme", this);
@@ -67,7 +67,7 @@ void themeInterface::setup(QQmlContext *ct)
set_currentScale(qPrefDisplay::mobile_scale());
}
-void themeInterface::set_currentTheme(const QString &theme)
+void ThemeInterface::set_currentTheme(const QString &theme)
{
m_currentTheme = theme;
qPrefDisplay::set_theme(m_currentTheme);
@@ -75,11 +75,11 @@ void themeInterface::set_currentTheme(const QString &theme)
emit currentThemeChanged(theme);
}
-double themeInterface::currentScale()
+double ThemeInterface::currentScale()
{
return qPrefDisplay::mobile_scale();
}
-void themeInterface::set_currentScale(double newScale)
+void ThemeInterface::set_currentScale(double newScale)
{
if (newScale != qPrefDisplay::mobile_scale()) {
qPrefDisplay::set_mobile_scale(newScale);
@@ -103,7 +103,7 @@ void themeInterface::set_currentScale(double newScale)
emit titlePointSizeChanged(m_titlePointSize);
}
-void themeInterface::update_theme()
+void ThemeInterface::update_theme()
{
if (m_currentTheme == "Blue") {
m_backgroundColor = BLUE_BACKGROUND_COLOR;