don't allow UI scale < 100%

Both Windows and Linux installs fail to render properly when the scale
is below 100%:

https://anki.tenderapp.com/discussions/ankidesktop/38909-user-interface-size

Retina Macs do render properly, but they tend to display at appropriate
size out of the box anyway.
This commit is contained in:
Damien Elmes 2020-02-25 16:20:14 +10:00
parent 0fae85d2b4
commit 621774559f
2 changed files with 3 additions and 2 deletions

View File

@ -485,7 +485,8 @@ please see:
######################################################################
def uiScale(self) -> float:
return self.meta.get("uiScale", 1.0)
scale = self.meta.get("uiScale", 1.0)
return max(scale, 1)
def setUiScale(self, scale: float) -> None:
self.meta["uiScale"] = scale

View File

@ -246,7 +246,7 @@
<string>%</string>
</property>
<property name="minimum">
<number>50</number>
<number>100</number>
</property>
<property name="maximum">
<number>200</number>