mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Make default UI scale 120% on macOS Retina.
This commit is contained in:
parent
4fc2b1f1a3
commit
a909c1a813
1 changed files with 5 additions and 1 deletions
|
@ -209,8 +209,12 @@ void Sandbox::setupScreenScale() {
|
||||||
LOG(("Environmental variables: QT_SCREEN_SCALE_FACTORS='%1'").arg(qEnvironmentVariable("QT_SCREEN_SCALE_FACTORS")));
|
LOG(("Environmental variables: QT_SCREEN_SCALE_FACTORS='%1'").arg(qEnvironmentVariable("QT_SCREEN_SCALE_FACTORS")));
|
||||||
}
|
}
|
||||||
style::SetDevicePixelRatio(int(ratio));
|
style::SetDevicePixelRatio(int(ratio));
|
||||||
|
if (Platform::IsMac() && ratio == 2.) {
|
||||||
|
cSetScreenScale(120); // 120% for Retina screens by default.
|
||||||
|
} else {
|
||||||
cSetScreenScale(style::kScaleDefault);
|
cSetScreenScale(style::kScaleDefault);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Sandbox::~Sandbox() = default;
|
Sandbox::~Sandbox() = default;
|
||||||
|
|
Loading…
Add table
Reference in a new issue