https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
s

Stefan Oltmann

01/11/2023, 3:12 PM
There is a difference between Windows and macOS regarding
sun.java2d.uiScale
property. On Windows
uiScale
of
2
makes the whole app double the size. On macOS setting it does not change the size of the controls, but makes the graphics and texts more sharp or blurry. Setting
uiScale
to
1
on a MacBook M1 (Retina Screen) results in a blurry window that still maintains the same size. Can someone explain this difference to me? I want the controls on Windows to stay the same size, but have double DPI.
1
z

Zach Klippenstein (he/him) [MOD]

01/11/2023, 5:31 PM
Does the same thing happen if you just pass a different Density in through LocalDensity?
s

Stefan Oltmann

01/12/2023, 10:20 PM
No, this actually changes the window size on macOS. It behaves differently. Thanks for the hint.
2 Views