Skip to content

Commit

Permalink
Beta version 3.1.5: Fix theme change UI on Retina screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 28, 2021
1 parent d525e56 commit fd4a543
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp
Expand Up @@ -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(
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fd4a543

Please sign in to comment.