[Win] Improved "windows" theme+transparent TabBar's background

remotes/origin/falkon
S. Razi Alavizadeh 13 years ago
parent 50e993e014
commit f6f604698d
  1. BIN
      bin/themes/chrome/images/toolbar-bg.png
  2. BIN
      bin/themes/windows/images/tab-active-bg.png
  3. BIN
      bin/themes/windows/images/tab-deactive-bg.png
  4. BIN
      bin/themes/windows/images/toolbar-bg.png
  5. 5
      bin/themes/windows/rtl.css
  6. 31
      bin/themes/windows/windows.css
  7. 7
      src/lib/app/qupzilla.cpp
  8. 2
      src/lib/webview/tabwidget.cpp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 245 B

@ -17,3 +17,8 @@
{
qproperty-multiIcon: url(images/tabbar-addtab_rtl.png);
}
#tabbar::tab:last
{
margin-left: 1px;
}

@ -7,11 +7,42 @@
max-height: 27px;
}
#tab-icon
{
padding-right: 3px;
padding-left: 3px;
min-width: 16px;
max-width: 16px;
}
#tabbar::tab
{
height: 26px;
}
#tabbar::tab:selected
{
background : url(images/tab-active-bg.png) repeat-x;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border: 1px solid #606060;
border-bottom: none;
}
#tabbar::tab:!selected
{
background: url(images/tab-deactive-bg.png) repeat-x;
margin-top: 2px;
margin-bottom: -3px;
border: 1px solid #a6a6a6;
}
#tabbar::tab:last
{
margin-right: -1px;
}
/*Downloads*/
DownloadItem #progressBar
{

@ -744,6 +744,7 @@ void QupZilla::loadSettings()
if (m_usingTransparentBackground && !makeTransparent) {
QtWin::extendFrameIntoClientArea(this, 0, 0, 0, 0);
QtWin::enableBlurBehindWindow(this, false);
QtWin::enableBlurBehindWindow(m_tabWidget->getTabBar(), false);
m_usingTransparentBackground = false;
}
#endif
@ -770,6 +771,9 @@ void QupZilla::loadSettings()
m_usingTransparentBackground = true;
if (!qzSettings->tabsOnTop) {
QtWin::enableBlurBehindWindow(m_tabWidget->getTabBar(), true);
}
applyBlurToMainWindow();
update();
@ -1591,6 +1595,9 @@ void QupZilla::triggerTabsOnTop(bool enable)
Settings settings;
settings.setValue("Browser-Tabs-Settings/TabsOnTop", enable);
if (m_usingTransparentBackground) {
QtWin::enableBlurBehindWindow(m_tabWidget->getTabBar(), !enable);
}
qzSettings->tabsOnTop = enable;
}

@ -471,6 +471,7 @@ void TabWidget::startTabAnimation(int index)
QLabel* label = qobject_cast<QLabel*>(m_tabBar->tabButton(index, m_tabBar->iconButtonPosition()));
if (!label) {
label = new QLabel();
label->setObjectName("tab-icon");
m_tabBar->setTabButton(index, m_tabBar->iconButtonPosition(), label);
}
@ -515,6 +516,7 @@ void TabWidget::setTabIcon(int index, const QIcon &icon)
QLabel* label = qobject_cast<QLabel*>(m_tabBar->tabButton(index, m_tabBar->iconButtonPosition()));
if (!label) {
label = new QLabel();
label->setObjectName("tab-icon");
label->resize(16, 16);
m_tabBar->setTabButton(index, m_tabBar->iconButtonPosition(), label);
}

Loading…
Cancel
Save