2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Improved ripple animation colors and styles for different buttons.

Also moved FlatLabel and LabelSimple to ui/widgets/labels module.
Also moved ScrollArea to ui/widgets/scroll_area module.
This commit is contained in:
John Preston
2016-11-16 13:44:06 +03:00
parent 3186e1e495
commit 7fa274a68e
115 changed files with 1435 additions and 1478 deletions

View File

@@ -215,25 +215,7 @@ inline const QString &emptyUsername() {
return empty;
}
class PeerClickHandler : public LeftButtonClickHandler {
public:
PeerClickHandler(PeerData *peer) : _peer(peer) {
}
PeerData *peer() const {
return _peer;
}
private:
PeerData *_peer;
};
class PeerOpenClickHandler : public PeerClickHandler {
public:
using PeerClickHandler::PeerClickHandler;
protected:
void onClickImpl() const override;
};
ClickHandlerPtr peerOpenClickHandler(PeerData *peer);
class UserData;
class ChatData;
@@ -339,7 +321,7 @@ public:
const ClickHandlerPtr &openLink() {
if (!_openLink) {
_openLink.reset(new PeerOpenClickHandler(this));
_openLink = peerOpenClickHandler(this);
}
return _openLink;
}