diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-04-11 15:20:07 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-04-11 15:20:07 +0800 |
commit | bc8a7912d2e6baa1aff0a78438ee41657f4c0f0f (patch) | |
tree | 6c84725333bf3833e7e3ac2c7130f1bb86de3849 /Bootstrap.cxx | |
parent | 57b7dd2de2bb96c2956f8d6718d1af24f759c3fa (diff) |
Mode is now enum class too
Diffstat (limited to 'Bootstrap.cxx')
-rw-r--r-- | Bootstrap.cxx | 8 |
1 files changed, 4 insertions, 4 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)); } |