mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Improve price layout in saved gifts.
This commit is contained in:
@@ -211,7 +211,9 @@ void GiftButton::setDescriptor(const GiftDescriptor &descriptor, Mode mode) {
|
||||
QSize(buttonw, buttonh)
|
||||
).marginsAdded(st::giftBoxButtonPadding);
|
||||
const auto skipy = _delegate->buttonSize().height()
|
||||
- (_byStars.isEmpty()
|
||||
- (_small
|
||||
? st::giftBoxButtonBottomSmall
|
||||
: _byStars.isEmpty()
|
||||
? st::giftBoxButtonBottom
|
||||
: st::giftBoxButtonBottomByStars)
|
||||
- inner.height();
|
||||
|
||||
@@ -152,6 +152,7 @@ giftBoxPremiumIconSize: 64px;
|
||||
giftBoxPremiumIconTop: 10px;
|
||||
giftBoxPremiumTextTop: 84px;
|
||||
giftBoxPremiumTextTopByStars: 78px;
|
||||
giftBoxButtonBottomSmall: 4px;
|
||||
giftBoxButtonBottom: 12px;
|
||||
giftBoxButtonBottomByStars: 18px;
|
||||
giftBoxButtonPadding: margins(8px, 4px, 8px, 4px);
|
||||
|
||||
Reference in New Issue
Block a user