Beta version 3.1.5: Fix theme change UI on Retina screens.
This commit is contained in:
parent
d525e56053
commit
fd4a543bab
|
@ -83,6 +83,7 @@ constexpr auto kDisableElement = "disable"_cs;
|
||||||
if (background.waitingForNegativePattern()) {
|
if (background.waitingForNegativePattern()) {
|
||||||
result.fill(Qt::black);
|
result.fill(Qt::black);
|
||||||
}
|
}
|
||||||
|
result.setDevicePixelRatio(style::DevicePixelRatio());
|
||||||
{
|
{
|
||||||
auto p = QPainter(&result);
|
auto p = QPainter(&result);
|
||||||
const auto sent = QRect(
|
const auto sent = QRect(
|
||||||
|
@ -126,6 +127,7 @@ constexpr auto kDisableElement = "disable"_cs;
|
||||||
st::settingsThemePreviewSize * style::DevicePixelRatio(),
|
st::settingsThemePreviewSize * style::DevicePixelRatio(),
|
||||||
QImage::Format_ARGB32_Premultiplied);
|
QImage::Format_ARGB32_Premultiplied);
|
||||||
result.fill(st::settingsThemeNotSupportedBg->c);
|
result.fill(st::settingsThemeNotSupportedBg->c);
|
||||||
|
result.setDevicePixelRatio(style::DevicePixelRatio());
|
||||||
{
|
{
|
||||||
auto p = QPainter(&result);
|
auto p = QPainter(&result);
|
||||||
p.setPen(st::menuIconFg);
|
p.setPen(st::menuIconFg);
|
||||||
|
|
Loading…
Reference in New Issue