Theme class should report logical DPI, not physical
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ class GuiTheme:
|
|||||||
self.loadDecoration = self.theIcons.loadDecoration
|
self.loadDecoration = self.theIcons.loadDecoration
|
||||||
|
|
||||||
# Extract Other Info
|
# Extract Other Info
|
||||||
self.guiDPI = qApp.primaryScreen().physicalDotsPerInchX()
|
self.guiDPI = qApp.primaryScreen().logicalDotsPerInchX()
|
||||||
self.guiScale = qApp.primaryScreen().logicalDotsPerInchX()/96.0
|
self.guiScale = qApp.primaryScreen().logicalDotsPerInchX()/96.0
|
||||||
self.mainConf.guiScale = self.guiScale
|
self.mainConf.guiScale = self.guiScale
|
||||||
logger.verbose("GUI DPI: %.1f" % self.guiDPI)
|
logger.verbose("GUI DPI: %.1f" % self.guiDPI)
|
||||||
|
|||||||
Reference in New Issue
Block a user