Beta version 3.1.5: Fix theme change UI on Retina screens.

This commit is contained in:
John Preston 2021-09-28 22:27:41 +04:00
parent d525e56053
commit fd4a543bab
1 changed files with 2 additions and 0 deletions

View File

@ -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);