From a909c1a8132493a12f167ffe6ce909f1efa5e33f Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 15 Mar 2021 20:33:41 +0400 Subject: [PATCH] Make default UI scale 120% on macOS Retina. --- Telegram/SourceFiles/core/sandbox.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index ceed570114..105c9aa9ff 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -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); + } } }