Fixed align of icons in list of top-up credit options.

This commit is contained in:
23rd 2024-07-01 08:20:45 +03:00 committed by John Preston
parent 7265297b19
commit 558daa3382

View file

@ -280,10 +280,7 @@ void FillCreditOptions(
inner->paintRequest(
) | rpl::start_with_next([=](const QRect &rect) {
auto p = QPainter(inner);
p.drawImage(
0,
(buttonHeight - stars.height()) / 2,
stars);
p.drawImage(0, 0, stars);
const auto textLeft = diffBetweenTextAndStar
+ stars.width() / style::DevicePixelRatio();
p.setPen(st.textFg);