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

@@ -220,11 +220,6 @@ void AbstractBox::raiseShadow() {
}
}
void ScrollableBoxShadow::paintEvent(QPaintEvent *e) {
Painter p(this);
p.fillRect(e->rect(), st::boxScrollShadowBg->b);
}
ScrollableBox::ScrollableBox(const style::flatScroll &scroll, int32 w) : AbstractBox(w),
_scroll(this, scroll), _innerPtr(0), _topSkip(st::boxTitleHeight), _bottomSkip(st::boxScrollSkip) {
setBlueTitle(true);

View File

@@ -104,11 +104,10 @@ private:
BlueTitleShadow *_blueShadow;
};
class ScrollableBoxShadow : public TWidget {
class ScrollableBoxShadow : public PlainShadow {
public:
ScrollableBoxShadow(QWidget *parent) : TWidget(parent) {
ScrollableBoxShadow(QWidget *parent) : PlainShadow(parent, st::boxScrollShadowBg) {
}
void paintEvent(QPaintEvent *e);
};
class ScrollableBox : public AbstractBox {