Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
feat: bump font size from undersized
Browse files Browse the repository at this point in the history
Fix #2280.
  • Loading branch information
zetok committed Oct 14, 2016
1 parent 14d3f13 commit 2d47200
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/widget/style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ QFont Style::getFont(Style::Font font)
static int defSize = QFontInfo(QFont()).pixelSize();

static QFont fonts[] = {
appFont(defSize + 2, QFont::Bold), // extra big
appFont(defSize , QFont::Normal), // big
appFont(defSize , QFont::Bold), // big bold
appFont(defSize - 1, QFont::Normal), // medium
appFont(defSize - 1, QFont::Bold), // medium bold
appFont(defSize - 2, QFont::Normal), // small
appFont(defSize - 2, QFont::Light), // small light
appFont(defSize + 3, QFont::Bold), // extra big
appFont(defSize + 1, QFont::Normal), // big
appFont(defSize + 1, QFont::Bold), // big bold
appFont(defSize , QFont::Normal), // medium
appFont(defSize , QFont::Bold), // medium bold
appFont(defSize - 1, QFont::Normal), // small
appFont(defSize - 1, QFont::Light), // small light
};

return fonts[font];
Expand Down

0 comments on commit 2d47200

Please sign in to comment.