2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

circled profile images

This commit is contained in:
John Preston
2016-03-18 13:18:30 +03:00
parent 47c7f76f2c
commit baf1e31b76
20 changed files with 224 additions and 120 deletions

View File

@@ -208,7 +208,7 @@ SettingsInner::SettingsInner(SettingsWidget *parent) : TWidget(parent)
, _logOut(this, lang(lng_settings_logout), st::btnLogout)
, _supportGetRequest(0) {
if (self()) {
self()->photo->load();
self()->loadUserpic();
connect(App::wnd(), SIGNAL(imageLoaded()), this, SLOT(update()));
connect(App::api(), SIGNAL(fullPeerUpdated(PeerData*)), this, SLOT(onFullPeerUpdated(PeerData*)));
@@ -382,7 +382,7 @@ void SettingsInner::paintEvent(QPaintEvent *e) {
updateChatBackground();
}
QPainter p(this);
Painter p(this);
p.setClipRect(e->rect());
@@ -399,7 +399,7 @@ void SettingsInner::paintEvent(QPaintEvent *e) {
}
if (_photoLink) {
p.drawPixmap(_left, top, self()->photo->pix(st::setPhotoSize));
self()->paintUserpicLeft(p, st::setPhotoSize, _left, top, st::setWidth);
} else {
if (a_photoOver.current() < 1) {
p.drawPixmap(QPoint(_left, top), App::sprite(), st::setPhotoImg);