summaryrefslogtreecommitdiff
path: root/Bootstrap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Bootstrap.cxx')
-rw-r--r--Bootstrap.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Bootstrap.cxx b/Bootstrap.cxx
index 99a8639..e550725 100644
--- a/Bootstrap.cxx
+++ b/Bootstrap.cxx
@@ -29,6 +29,7 @@ Bootstrap::Bootstrap(QObject *parent):
bsBodyFont{bsFontSansSerif},
bodyColors{{"#212529", "#adb5bd"}},
bodyBgs{{"#fff", "#212529"}},
+ headingColors{{bodyColors.at(0), bodyColors.at(1)}},
borderColors{{"#dee2e6", "#495057"}}
{
bsBodyFont.setStyleHint(QFont::SansSerif);
@@ -63,6 +64,7 @@ Bootstrap::Bootstrap(QObject *parent):
toml_array_t *colors;
OVERRIDE_COLORS("BodyColors", bodyColors);
OVERRIDE_COLORS("BodyBgs", bodyBgs);
+ OVERRIDE_COLORS("HeadingColors", headingColors);
OVERRIDE_COLORS("BorderColors", borderColors);
toml_free(toml);
@@ -85,6 +87,7 @@ void Bootstrap::setMode(Mode mode)
emit modeChanged();
emit bodyColorChanged();
emit bodyBgChanged();
+ emit headingColorChanged();
emit borderColorChanged();
}
@@ -120,6 +123,11 @@ QColor Bootstrap::bodyBg() const
return bodyBgs.at(static_cast<int>(bsMode));
}
+QColor Bootstrap::headingColor() const
+{
+ return headingColors.at(static_cast<int>(bsMode));
+}
+
QColor Bootstrap::borderColor() const
{
return borderColors.at(static_cast<int>(bsMode));