First some code cleanup and fix of the filtered total

This commit is contained in:
Veronica K. B. Olsen
2020-06-24 21:20:22 +02:00
parent 996bffb21b
commit a5c83a45f5
3 changed files with 45 additions and 44 deletions
+2
View File
@@ -139,6 +139,8 @@ class GuiTheme:
logger.verbose("GUI Scale: %.2f" % self.guiScale)
self.guiFont = qApp.font()
self.guiFontFixed = QFontDatabase.systemFont(QFontDatabase.FixedFont)
qMetric = QFontMetrics(self.guiFont)
self.fontPointSize = self.guiFont.pointSizeF()
self.fontPixelSize = int(round(qMetric.height()))