summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Bootstrap.cxx8
-rw-r--r--Bootstrap.hxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/Bootstrap.cxx b/Bootstrap.cxx
index 7c7f686..31681a4 100644
--- a/Bootstrap.cxx
+++ b/Bootstrap.cxx
@@ -12,7 +12,7 @@
Bootstrap::Bootstrap(QObject *parent):
QObject{parent},
- bsMode{Light},
+ bsMode{Mode::Light},
bsTheme{Theme::None},
bodyColors{{"#212529", "#adb5bd"}},
bodyBgs{{"#fff", "#212529"}},
@@ -74,15 +74,15 @@ void Bootstrap::setTheme(Theme theme)
QColor Bootstrap::bodyColor() const
{
- return bodyColors.at(bsMode);
+ return bodyColors.at(static_cast<int>(bsMode));
}
QColor Bootstrap::bodyBg() const
{
- return bodyBgs.at(bsMode);
+ return bodyBgs.at(static_cast<int>(bsMode));
}
QColor Bootstrap::borderColor() const
{
- return borderColors.at(bsMode);
+ return borderColors.at(static_cast<int>(bsMode));
}
diff --git a/Bootstrap.hxx b/Bootstrap.hxx
index 0c28504..e266f5d 100644
--- a/Bootstrap.hxx
+++ b/Bootstrap.hxx
@@ -27,7 +27,7 @@ class Bootstrap : public QObject
explicit Bootstrap(QObject *parent = nullptr);
static Bootstrap *qmlAttachedProperties(QObject *object);
- enum Mode {
+ enum class Mode {
Light,
Dark
};