Fixed ratio of icon in update button from dialogs widget.

Related commit: c6bf905253.
This commit is contained in:
23rd
2026-03-06 15:11:17 +03:00
committed by John Preston
parent f5281b7418
commit a61334247d
@@ -123,9 +123,11 @@ base::options::toggle OptionForumHideChatsList({
[[nodiscard]] QImage UpdateIcon() {
const auto iconSize = st::dialogsInstallUpdateIconSize;
const auto ratio = style::DevicePixelRatio();
auto result = QImage(
Size(iconSize) * style::DevicePixelRatio(),
Size(iconSize) * ratio,
QImage::Format_ARGB32_Premultiplied);
result.setDevicePixelRatio(ratio);
result.fill(Qt::transparent);
{
auto p = QPainter(&result);