Improve custom verification icon display.

This commit is contained in:
John Preston 2025-01-03 18:19:48 +04:00
parent c3e15de759
commit 865200db5e
2 changed files with 2 additions and 4 deletions

View file

@ -440,7 +440,7 @@ infoPeerBadge: InfoPeerBadge {
premium: infoPremiumStar; premium: infoPremiumStar;
premiumFg: profileVerifiedCheckBg; premiumFg: profileVerifiedCheckBg;
position: infoVerifiedCheckPosition; position: infoVerifiedCheckPosition;
sizeTag: 1; // Large sizeTag: 0; // Large
} }
infoIconFg: windowBoldFg; infoIconFg: windowBoldFg;

View file

@ -745,9 +745,7 @@ void Cover::refreshNameGeometry(int newWidth) {
_verify->move(nameLeft - margins.left(), badgeTop, badgeBottom); _verify->move(nameLeft - margins.left(), badgeTop, badgeBottom);
if (const auto widget = _verify->widget()) { if (const auto widget = _verify->widget()) {
const auto skip = widget->width() const auto skip = widget->width()
+ st::infoVerifiedCheckPosition.x() + st::infoVerifiedCheckPosition.x();
- margins.left()
- margins.right();
nameLeft += skip; nameLeft += skip;
nameWidth -= skip; nameWidth -= skip;
} }