Update icons in AddContactBox.

This commit is contained in:
John Preston 2018-09-14 22:00:33 +03:00
parent c2039da600
commit f582fbf010
6 changed files with 13 additions and 5 deletions

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

View File

@ -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());
}
}

View File

@ -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 {