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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user