diff options
author | Papoteur <papoteur@mageia.org> | 2019-06-17 08:43:37 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2019-06-17 08:43:37 +0200 |
commit | fa88ed151e8b03f40ea941343af75063b6e43e56 (patch) | |
tree | 0aacc30afdd7f1276e64da59936de763a23d9aab /qml | |
parent | 364e15c97d921ad26289d5263a45b055b3497770 (diff) | |
download | mageiawelcome-fa88ed151e8b03f40ea941343af75063b6e43e56.tar mageiawelcome-fa88ed151e8b03f40ea941343af75063b6e43e56.tar.gz mageiawelcome-fa88ed151e8b03f40ea941343af75063b6e43e56.tar.bz2 mageiawelcome-fa88ed151e8b03f40ea941343af75063b6e43e56.tar.xz mageiawelcome-fa88ed151e8b03f40ea941343af75063b6e43e56.zip |
Rise scaling factor for screen higher then 190 px/in density
Diffstat (limited to 'qml')
-rw-r--r-- | qml/mageiawelcome.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index 310d2e8..0f19557 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -191,6 +191,9 @@ if __name__ == '__main__': sc = nr.startupcheck() factor = cl.factor(app) screen = app.primaryScreen() + # if density is high, use at least factor 2 to scale the initial window. Considering high is more than 190 px/inches. + if screen.logicalDotsPerInch() > 190 : + factor = max(2.0, factor) defaultHeight = min(700 * factor, screen.availableGeometry().height()) defaultWidth = min(1000 * factor, screen.availableGeometry().width()) centerPoint = screen.availableGeometry().center() |