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:
parent
0fae85d2b4
commit
621774559f
@ -485,7 +485,8 @@ please see:
|
|||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
def uiScale(self) -> float:
|
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:
|
def setUiScale(self, scale: float) -> None:
|
||||||
self.meta["uiScale"] = scale
|
self.meta["uiScale"] = scale
|
||||||
|
@ -246,7 +246,7 @@
|
|||||||
<string>%</string>
|
<string>%</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>50</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>200</number>
|
<number>200</number>
|
||||||
|
Loading…
Reference in New Issue
Block a user