mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Beta version 3.1.5: Fix theme change UI on Retina screens.
This commit is contained in:
parent
d525e56053
commit
fd4a543bab
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue