2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

moved shadows to widgets where they are displayed

This commit is contained in:
John Preston
2015-10-17 10:31:48 +02:00
parent 48756111a9
commit 5c3d030b9a
20 changed files with 193 additions and 166 deletions

View File

@@ -201,7 +201,7 @@ private:
};
class ProfileWidget : public QWidget, public RPCSender, public Animated {
class ProfileWidget : public TWidget, public RPCSender, public Animated {
Q_OBJECT
public:
@@ -215,7 +215,6 @@ public:
void dropEvent(QDropEvent *e);
void paintTopBar(QPainter &p, float64 over, int32 decreaseWidth);
void topBarShadowParams(int32 &x, float64 &o);
void topBarClick();
PeerData *peer() const;
@@ -250,5 +249,7 @@ private:
anim::ivalue a_coord, a_bgCoord;
anim::fvalue a_alpha, a_bgAlpha;
PlainShadow _sideShadow, _topShadow;
};