2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +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

@@ -78,7 +78,6 @@ private:
MainWidget *main();
anim::fvalue a_over;
bool _drawShadow;
PeerData *_selPeer;
uint32 _selCount;
@@ -96,6 +95,8 @@ private:
FlatButton _edit, _leaveGroup, _addContact, _deleteContact;
FlatButton _mediaType;
PlainShadow _sideShadow;
};
enum StackItemType {
@@ -176,7 +177,7 @@ enum ForwardWhatMessages {
ForwardPressedLinkMessage
};
class MainWidget : public QWidget, public Animated, public RPCSender {
class MainWidget : public TWidget, public Animated, public RPCSender {
Q_OBJECT
public:
@@ -192,7 +193,6 @@ public:
void showDialogs();
void paintTopBar(QPainter &p, float64 over, int32 decreaseWidth);
void topBarShadowParams(int32 &x, float64 &o);
TopBarWidget *topBar();
PlayerWidget *player();