app/internal/window: tweak minimum pixels per dp/sp

To keep text legible on low DPI monitors, the number of pixels
per dp or sp is not is not allowed to go below minDensity. However,
a minimum density of 1.25 leads to too big text and widgets on a
baseline ~96 DPI monitor. Lower the minimum to 1.0, where text is still
legible.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-01 22:13:42 +01:00
parent 835714d44e
commit 5b948ceece
+1 -1
View File
@@ -117,5 +117,5 @@ const (
// minDensity is the minimum pixels per dp to
// ensure font and ui legibility on low-dpi
// screens.
minDensity = 1.25
minDensity = 1.0
)