mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed display of outline in box for share of QR code on non-retina.
This commit is contained in:
parent
2b0aa8e418
commit
fbaa79f168
1 changed files with 4 additions and 2 deletions
|
@ -593,10 +593,12 @@ void FillPeerQrBox(
|
||||||
auto pen = st::activeLineFg->p;
|
auto pen = st::activeLineFg->p;
|
||||||
pen.setWidth(st::defaultInputField.borderActive);
|
pen.setWidth(st::defaultInputField.borderActive);
|
||||||
p.setPen(pen);
|
p.setPen(pen);
|
||||||
|
const auto r = st::roundRadiusLarge
|
||||||
|
+ activewidth * 2.1 * style::DevicePixelRatio();
|
||||||
p.drawRoundedRect(
|
p.drawRoundedRect(
|
||||||
widget->rect() - Margins(pen.width()),
|
widget->rect() - Margins(pen.width()),
|
||||||
st::roundRadiusLarge + activewidth * 4.2,
|
r,
|
||||||
st::roundRadiusLarge + activewidth * 4.2);
|
r);
|
||||||
}
|
}
|
||||||
}, widget->lifetime());
|
}, widget->lifetime());
|
||||||
counter++;
|
counter++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue