2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

search merged to os x version, fixed some retina render, custom notifies code moved to window module

This commit is contained in:
John Preston
2014-07-06 07:32:21 +04:00
parent 29d6bf46c8
commit 1167117ee0
38 changed files with 743 additions and 3679 deletions

View File

@@ -155,10 +155,7 @@ void TopBarWidget::paintEvent(QPaintEvent *e) {
int a = 0; // optimize shadow-only drawing
}
if (_drawShadow) {
p.setPen(st::titleShadowColor->p);
for (int32 i = 0; i < st::titleShadow; ++i) {
p.drawLine(st::titleShadow, st::topBarHeight + i, width(), st::topBarHeight + i);
}
p.fillRect(st::titleShadow, st::topBarHeight, width() - st::titleShadow, st::titleShadow, st::titleShadowColor->b);
}
}
@@ -1314,7 +1311,7 @@ void MainWidget::applyNotifySetting(const MTPNotifyPeer &peer, const MTPPeerNoti
if (peerId) {
if (!history) history = App::history(peerId);
if (isNotifyMuted(setTo)) {
App::wnd()->psClearNotify(history);
App::wnd()->notifyClear(history);
history->setMute(true);
} else {
history->setMute(false);
@@ -1344,7 +1341,7 @@ void MainWidget::gotNotifySetting(MTPInputNotifyPeer peer, const MTPPeerNotifySe
}
break;
}
App::wnd()->psNotifySettingGot();
App::wnd()->notifySettingGot();
}
bool MainWidget::failNotifySetting(MTPInputNotifyPeer peer) {