mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix premium star layout in Settings.
This commit is contained in:
@@ -602,13 +602,14 @@ infoRatingDeductedBadge: RoundButton(customEmojiTextBadge) {
|
||||
|
||||
infoProfileInaccessibleUserpic: icon {{ "info/inaccessible_userpic", historyPeerUserpicFg }};
|
||||
|
||||
infoVerifiedCheck: icon {{ "profile_verified_check", profileVerifiedCheckFg }};
|
||||
infoVerifiedCheckPosition: point(4px, 0px);
|
||||
infoVerifiedStar: icon {{ "profile_verified_star", profileVerifiedCheckBg }};
|
||||
infoPremiumStar: icon {{ "profile_premium", profileVerifiedCheckBg }};
|
||||
|
||||
infoPeerBadge: InfoPeerBadge {
|
||||
verified: infoVerifiedStar;
|
||||
verifiedCheck: icon {{ "profile_verified_check", profileVerifiedCheckFg }};
|
||||
verifiedCheck: infoVerifiedCheck;
|
||||
premium: infoPremiumStar;
|
||||
premiumFg: profileVerifiedCheckBg;
|
||||
position: infoVerifiedCheckPosition;
|
||||
|
||||
@@ -139,7 +139,7 @@ Cover::Cover(
|
||||
, _user(user)
|
||||
, _badge(
|
||||
this,
|
||||
st::infoPeerBadge,
|
||||
st::settingsCoverBadge,
|
||||
&user->session(),
|
||||
Info::Profile::BadgeContentForPeer(user),
|
||||
&_emojiStatusPanel,
|
||||
@@ -280,7 +280,7 @@ void Cover::refreshNameGeometry(int newWidth) {
|
||||
const auto nameLeft = st::settingsNameLeft;
|
||||
const auto nameTop = st::settingsNameTop;
|
||||
const auto qrButtonWidth = (_qrButton && !_qrButton->isHidden())
|
||||
? (_qrButton->width() + st::settingsNameLeft)
|
||||
? (_qrButton->width() + st::infoProfileCover.rightSkip)
|
||||
: 0;
|
||||
auto nameWidth = newWidth
|
||||
- nameLeft
|
||||
|
||||
@@ -214,6 +214,9 @@ settingsInfoPeerBadge: InfoPeerBadge {
|
||||
premiumFg: dialogsVerifiedIconBg;
|
||||
sizeTag: 0; // Normal
|
||||
}
|
||||
settingsCoverBadge: InfoPeerBadge(infoPeerBadge) {
|
||||
position: point(4px, 2px);
|
||||
}
|
||||
|
||||
settingsBio: InputField(defaultInputField) {
|
||||
textBg: transparent;
|
||||
|
||||
Reference in New Issue
Block a user