mirror of https://github.com/procxx/kepka.git
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();
|
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);
|
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 {
|
} else {
|
||||||
st::contactUserIcon.paint(p, st::boxPadding.left(), _first->y() + st::contactIconTop, width());
|
st::contactUserIcon.paint(
|
||||||
st::contactPhoneIcon.paint(p, st::boxPadding.left(), _phone->y() + st::contactIconTop, width());
|
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;
|
textFg: windowSubTextFg;
|
||||||
}
|
}
|
||||||
|
|
||||||
contactUserIcon: icon {{ "add_contact_user", menuIconFg }};
|
contactUserIcon: icon {{ "settings_name", menuIconFg }};
|
||||||
contactPhoneIcon: icon {{ "add_contact_phone", menuIconFg }};
|
contactPhoneIcon: icon {{ "settings_phone_number", menuIconFg }};
|
||||||
contactIconTop: 28px;
|
contactIconPosition: point(-5px, 23px);
|
||||||
|
|
||||||
contactsAddIconAbove: icon {{ "contacts_add", activeButtonFg, point(18px, 18px) }};
|
contactsAddIconAbove: icon {{ "contacts_add", activeButtonFg, point(18px, 18px) }};
|
||||||
contactsAdd: TwoIconButton {
|
contactsAdd: TwoIconButton {
|
||||||
|
|
Loading…
Reference in New Issue