make tabs ripple centered

This commit is contained in:
laserpants 2016-06-12 13:53:41 +03:00
parent e5a4da2d16
commit 04d861e8ff
2 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,7 @@ TabsPrivate::TabsPrivate(Tabs *q)
tab(-1), tab(-1),
useThemeColors(true), useThemeColors(true),
showHalo(false), showHalo(false),
rippleStyle(Material::PositionedRipple) rippleStyle(Material::CenteredRipple)
{ {
} }
@ -244,6 +244,7 @@ Tab *Tabs::createTab(const QString &text)
tab->setBackgroundMode(Qt::OpaqueMode); tab->setBackgroundMode(Qt::OpaqueMode);
tab->setPeakOpacity(0.25); tab->setPeakOpacity(0.25);
tab->setShowHalo(d->showHalo); tab->setShowHalo(d->showHalo);
tab->setRippleStyle(d->rippleStyle);
d->tabLayout->addWidget(tab); d->tabLayout->addWidget(tab);

View File

@ -89,7 +89,6 @@ void TabsInkBar::paintEvent(QPaintEvent *event)
Tab::Tab(QWidget *parent) Tab::Tab(QWidget *parent)
: FlatButton(parent), : FlatButton(parent),
_active(false) _active(false)
// _showHalo(true)
{ {
init(); init();
} }
@ -97,7 +96,6 @@ Tab::Tab(QWidget *parent)
Tab::Tab(QString text, QWidget *parent) Tab::Tab(QString text, QWidget *parent)
: FlatButton(parent), : FlatButton(parent),
_active(false) _active(false)
// _showHalo(true)
{ {
init(); init();