Theme class should report logical DPI, not physical

This commit is contained in:
Veronica K. B. Olsen
2020-06-07 17:15:36 +02:00
parent 0595d543b9
commit 8773098beb
+1 -1
View File
@@ -132,7 +132,7 @@ class GuiTheme:
self.loadDecoration = self.theIcons.loadDecoration
# Extract Other Info
self.guiDPI = qApp.primaryScreen().physicalDotsPerInchX()
self.guiDPI = qApp.primaryScreen().logicalDotsPerInchX()
self.guiScale = qApp.primaryScreen().logicalDotsPerInchX()/96.0
self.mainConf.guiScale = self.guiScale
logger.verbose("GUI DPI: %.1f" % self.guiDPI)