diff --git a/bin/themes/windows/images/tabbar-addtab-outside.png b/bin/themes/windows/images/tabbar-addtab-outside.png new file mode 100644 index 000000000..a1e88e9b5 Binary files /dev/null and b/bin/themes/windows/images/tabbar-addtab-outside.png differ diff --git a/bin/themes/windows/main.css b/bin/themes/windows/main.css index fec4970f2..0484827fd 100644 --- a/bin/themes/windows/main.css +++ b/bin/themes/windows/main.css @@ -141,6 +141,11 @@ qproperty-multiIcon: url(images/tabbar-addtab.png); } +#tabwidget-button-addtab[outside-tabbar="true"] +{ + qproperty-icon: url(images/tabbar-addtab-outside.png); +} + /*IconProvider*/ IconProvider { diff --git a/src/lib/webview/tabwidget.cpp b/src/lib/webview/tabwidget.cpp index 905cb5980..270007ac5 100644 --- a/src/lib/webview/tabwidget.cpp +++ b/src/lib/webview/tabwidget.cpp @@ -154,16 +154,20 @@ TabWidget::TabWidget(QupZilla* mainClass, QWidget* parent) connect(m_buttonAddTab, SIGNAL(clicked()), p_QupZilla, SLOT(addTab())); connect(m_menuTabs, SIGNAL(aboutToShow()), this, SLOT(aboutToShowClosedTabsMenu())); - // copy of buttons + // Copy of buttons m_buttonListTabs2 = new ToolButton(m_tabBar); m_buttonListTabs2->setObjectName("tabwidget-button-opentabs"); + m_buttonListTabs2->setProperty("outside-tabbar", true); m_buttonListTabs2->setMenu(m_menuTabs); m_buttonListTabs2->setPopupMode(QToolButton::InstantPopup); m_buttonListTabs2->setToolTip(tr("List of tabs")); m_buttonListTabs2->setAutoRaise(true); m_buttonListTabs2->setFocusPolicy(Qt::NoFocus); + m_buttonAddTab2 = new AddTabButton(this, m_tabBar); + m_buttonAddTab2->setProperty("outside-tabbar", true); connect(m_buttonAddTab2, SIGNAL(clicked()), p_QupZilla, SLOT(addTab())); + m_tabBar->addMainBarWidget(m_buttonAddTab2, Qt::AlignRight); m_tabBar->addMainBarWidget(m_buttonListTabs2, Qt::AlignRight); m_buttonAddTab2->hide();