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;
premiumFg: profileVerifiedCheckBg;
position: infoVerifiedCheckPosition;
sizeTag: 1; // Large
sizeTag: 0; // Large
}
infoIconFg: windowBoldFg;

View file

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