mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fixed align of icons in list of top-up credit options.
This commit is contained in:
parent
7265297b19
commit
558daa3382
1 changed files with 1 additions and 4 deletions
|
@ -280,10 +280,7 @@ void FillCreditOptions(
|
||||||
inner->paintRequest(
|
inner->paintRequest(
|
||||||
) | rpl::start_with_next([=](const QRect &rect) {
|
) | rpl::start_with_next([=](const QRect &rect) {
|
||||||
auto p = QPainter(inner);
|
auto p = QPainter(inner);
|
||||||
p.drawImage(
|
p.drawImage(0, 0, stars);
|
||||||
0,
|
|
||||||
(buttonHeight - stars.height()) / 2,
|
|
||||||
stars);
|
|
||||||
const auto textLeft = diffBetweenTextAndStar
|
const auto textLeft = diffBetweenTextAndStar
|
||||||
+ stars.width() / style::DevicePixelRatio();
|
+ stars.width() / style::DevicePixelRatio();
|
||||||
p.setPen(st.textFg);
|
p.setPen(st.textFg);
|
||||||
|
|
Loading…
Add table
Reference in a new issue