mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-03 21:22:10 +00:00
Update icons in AddContactBox.
This commit is contained in:
parent
c2039da600
commit
f582fbf010
Binary file not shown.
Before Width: | Height: | Size: 380 B |
Binary file not shown.
Before Width: | Height: | Size: 708 B |
Binary file not shown.
Before Width: | Height: | Size: 316 B |
Binary file not shown.
Before Width: | Height: | Size: 579 B |
@ -149,8 +149,16 @@ void AddContactBox::paintEvent(QPaintEvent *e) {
|
||||
auto textHeight = height() - st::contactPadding.top() - st::contactPadding.bottom() - st::boxPadding.bottom();
|
||||
p.drawText(QRect(st::boxPadding.left(), st::contactPadding.top(), width() - st::boxPadding.left() - st::boxPadding.right(), textHeight), lng_contact_not_joined(lt_name, _sentName), style::al_topleft);
|
||||
} else {
|
||||
st::contactUserIcon.paint(p, st::boxPadding.left(), _first->y() + st::contactIconTop, width());
|
||||
st::contactPhoneIcon.paint(p, st::boxPadding.left(), _phone->y() + st::contactIconTop, width());
|
||||
st::contactUserIcon.paint(
|
||||
p,
|
||||
st::boxPadding.left() + st::contactIconPosition.x(),
|
||||
_first->y() + st::contactIconPosition.y(),
|
||||
width());
|
||||
st::contactPhoneIcon.paint(
|
||||
p,
|
||||
st::boxPadding.left() + st::contactIconPosition.x(),
|
||||
_phone->y() + st::contactIconPosition.y(),
|
||||
width());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,9 @@ editBioCountdownLabel: FlatLabel(defaultFlatLabel) {
|
||||
textFg: windowSubTextFg;
|
||||
}
|
||||
|
||||
contactUserIcon: icon {{ "add_contact_user", menuIconFg }};
|
||||
contactPhoneIcon: icon {{ "add_contact_phone", menuIconFg }};
|
||||
contactIconTop: 28px;
|
||||
contactUserIcon: icon {{ "settings_name", menuIconFg }};
|
||||
contactPhoneIcon: icon {{ "settings_phone_number", menuIconFg }};
|
||||
contactIconPosition: point(-5px, 23px);
|
||||
|
||||
contactsAddIconAbove: icon {{ "contacts_add", activeButtonFg, point(18px, 18px) }};
|
||||
contactsAdd: TwoIconButton {
|
||||
|
Loading…
Reference in New Issue
Block a user