statistics: make fonts themeable

Move the various font objects the the StatsTheme structure to enable
different font weights for different themes.

For the dark theme, switch to a bold font, because the thin white
font was barely visible.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-02-21 17:51:44 +01:00 committed by Dirk Hohndel
parent 5f91c69f9c
commit 144e81e8f8
13 changed files with 42 additions and 39 deletions

View file

@ -51,6 +51,11 @@ public:
medianMarkerColor = Qt::red;
selectionLassoColor = Qt::black;
selectionOverlayColor = Qt::lightGray;
// use a light version of the application font for axis labels, axis title and chart title
axisLabelFont.setWeight(QFont::Light);
axisTitleFont.setWeight(QFont::Light);
titleFont.setWeight(QFont::Light);
}
private:
QString name() const
@ -118,6 +123,11 @@ public:
medianMarkerColor = Qt::cyan;
selectionLassoColor = Qt::white;
selectionOverlayColor = Qt::darkGray;
// use a bold version of the application font for axis labels, axis title and chart title
axisLabelFont.setWeight(QFont::Bold);
axisTitleFont.setWeight(QFont::Bold);
titleFont.setWeight(QFont::Bold);
}
private:
QString name() const