mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed ratio of icon in update button from dialogs widget.
Related commit: c6bf905253.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user