[ComboTabBar] Tweaked appearance of buttons when tabs overflows.
Also disabled painting shadow gradient indicationg that tabbar is not scrolled at the end.
BIN
bin/themes/chrome/images/tab-left-arrow.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
bin/themes/chrome/images/tab-right-arrow.png
Normal file
After Width: | Height: | Size: 188 B |
@ -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);
|
||||
|
BIN
bin/themes/default/images/tab-left-arrow.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
bin/themes/default/images/tab-right-arrow.png
Normal file
After Width: | Height: | Size: 188 B |
@ -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);
|
||||
|
BIN
bin/themes/linux/images/tab-left-arrow.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
bin/themes/linux/images/tab-right-arrow.png
Normal file
After Width: | Height: | Size: 188 B |
@ -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);
|
||||
|
BIN
bin/themes/mac/images/tab-left-arrow.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
bin/themes/mac/images/tab-right-arrow.png
Normal file
After Width: | Height: | Size: 188 B |
@ -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);
|
||||
|
BIN
bin/themes/windows/images/tab-left-arrow.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
bin/themes/windows/images/tab-right-arrow.png
Normal file
After Width: | Height: | Size: 188 B |
@ -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);
|
||||
|
@ -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()));
|
||||
|