Make default UI scale 120% on macOS Retina.
This commit is contained in:
parent
4fc2b1f1a3
commit
a909c1a813
|
@ -209,7 +209,11 @@ void Sandbox::setupScreenScale() {
|
|||
LOG(("Environmental variables: QT_SCREEN_SCALE_FACTORS='%1'").arg(qEnvironmentVariable("QT_SCREEN_SCALE_FACTORS")));
|
||||
}
|
||||
style::SetDevicePixelRatio(int(ratio));
|
||||
cSetScreenScale(style::kScaleDefault);
|
||||
if (Platform::IsMac() && ratio == 2.) {
|
||||
cSetScreenScale(120); // 120% for Retina screens by default.
|
||||
} else {
|
||||
cSetScreenScale(style::kScaleDefault);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue