1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[ComboTabBar] Tweaked appearance of buttons when tabs overflows.

Also disabled painting shadow gradient indicationg that tabbar is not
scrolled at the end.
This commit is contained in:
nowrep 2013-12-23 20:28:14 +01:00
parent 3e3d823d95
commit ea8b099688
16 changed files with 64 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

View File

@ -108,6 +108,18 @@
width: 0px;
}
#tabbar-button-right
{
qproperty-icon: url(images/tab-right-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabbar-button-left
{
qproperty-icon: url(images/tab-left-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabwidget-button-opentabs
{
qproperty-multiIcon: url(images/tabs-list-button.png);

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

View File

@ -123,6 +123,18 @@
width: 0px;
}
#tabbar-button-right
{
qproperty-icon: url(images/tab-right-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabbar-button-left
{
qproperty-icon: url(images/tab-left-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabwidget-button-opentabs::menu-indicator
{
background: url(images/transp.png);

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

View File

@ -85,6 +85,18 @@
width: 0px;
}
#tabbar-button-right
{
qproperty-icon: url(images/tab-right-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabbar-button-left
{
qproperty-icon: url(images/tab-left-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabwidget-button-opentabs
{
qproperty-icon: url(images/tabs-list-button.png);

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

View File

@ -103,6 +103,18 @@
width: 0px;
}
#tabbar-button-right
{
qproperty-icon: url(images/tab-right-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabbar-button-left
{
qproperty-icon: url(images/tab-left-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabwidget-button-opentabs
{
qproperty-multiIcon: url(images/tabs-list-button.png);

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

View File

@ -113,6 +113,18 @@
width: 0px;
}
#tabbar-button-right
{
qproperty-icon: url(images/tab-right-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabbar-button-left
{
qproperty-icon: url(images/tab-left-arrow.png);
qproperty-fixedsize: 15px 25px;
}
#tabwidget-button-opentabs
{
qproperty-icon: url(images/tabs-list-button.png);

View File

@ -974,6 +974,7 @@ void TabBarHelper::paintEvent(QPaintEvent* event)
QTabBar::paintEvent(event);
}
#if 0
if (m_scrollArea) {
const int tearWidth = 15;
const int maxAlpha = 200;
@ -1002,6 +1003,7 @@ void TabBarHelper::paintEvent(QPaintEvent* event)
p.fillRect(QRect(globalTopRight, QSize(tearWidth, height())), fade);
}
}
#endif
}
void TabBarHelper::mousePressEvent(QMouseEvent* event)
@ -1111,11 +1113,13 @@ TabBarScrollWidget::TabBarScrollWidget(QTabBar* tabBar, QWidget* parent)
m_scrollArea->setWidget(m_tabBar);
m_leftScrollButton = new ToolButton(this);
m_leftScrollButton->setAutoRaise(true);
m_leftScrollButton->setObjectName("tabbar-button-left");
connect(m_leftScrollButton, SIGNAL(pressed()), this, SLOT(scrollStart()));
connect(m_leftScrollButton, SIGNAL(released()), this, SLOT(scrollStop()));
m_rightScrollButton = new ToolButton(this);
m_rightScrollButton->setAutoRaise(true);
m_rightScrollButton->setObjectName("tabbar-button-right");
connect(m_rightScrollButton, SIGNAL(pressed()), this, SLOT(scrollStart()));
connect(m_rightScrollButton, SIGNAL(released()), this, SLOT(scrollStop()));