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

10019003: Some compose area icons improved. Box headers redesigned.

This commit is contained in:
John Preston
2016-11-08 17:43:10 +03:00
parent 475b35bf55
commit 494254496e
53 changed files with 223 additions and 226 deletions

View File

@@ -128,14 +128,12 @@ Widget::Widget(QWidget *parent) : LayerWidget(parent)
, _scroll(this, st::setScroll)
, _inner(this)
, _fixedBar(this)
, _fixedBarShadow1(this, st::settingsFixedBarShadowBg1)
, _fixedBarShadow2(this, st::settingsFixedBarShadowBg2) {
, _fixedBarShadow(this, st::boxBlockTitleShadow) {
_scroll->setOwnedWidget(_inner);
setAttribute(Qt::WA_OpaquePaintEvent);
_fixedBar->move(0, 0);
_fixedBarShadow1->move(0, _fixedBar->y() + st::settingsFixedBarHeight);
_fixedBarShadow2->move(0, _fixedBarShadow1->y() + st::lineWidth);
_fixedBarShadow->move(0, _fixedBar->y() + st::settingsFixedBarHeight);
_scroll->move(0, st::settingsFixedBarHeight);
connect(_inner, SIGNAL(heightUpdated()), this, SLOT(onInnerHeightUpdated()));
@@ -211,8 +209,7 @@ void Widget::resizeEvent(QResizeEvent *e) {
}
_fixedBar->resizeToWidth(width());
_fixedBarShadow1->resize(width(), st::lineWidth);
_fixedBarShadow2->resize(width(), st::lineWidth);
_fixedBarShadow->resize(width(), st::boxBlockTitleShadow.height());
QSize scrollSize(width(), height() - _fixedBar->height());
if (_scroll->size() != scrollSize) {