From fd4a543bab6b5f8346210e20c8acc9a9350a9a86 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 28 Sep 2021 22:27:41 +0400 Subject: [PATCH] Beta version 3.1.5: Fix theme change UI on Retina screens. --- Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp b/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp index 0d7ed0d7fd..f78a332d9b 100644 --- a/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp +++ b/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp @@ -83,6 +83,7 @@ constexpr auto kDisableElement = "disable"_cs; if (background.waitingForNegativePattern()) { result.fill(Qt::black); } + result.setDevicePixelRatio(style::DevicePixelRatio()); { auto p = QPainter(&result); const auto sent = QRect( @@ -126,6 +127,7 @@ constexpr auto kDisableElement = "disable"_cs; st::settingsThemePreviewSize * style::DevicePixelRatio(), QImage::Format_ARGB32_Premultiplied); result.fill(st::settingsThemeNotSupportedBg->c); + result.setDevicePixelRatio(style::DevicePixelRatio()); { auto p = QPainter(&result); p.setPen(st::menuIconFg);