mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Improve custom verification icon display.
This commit is contained in:
parent
c3e15de759
commit
865200db5e
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue