1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Set unloaded tab color to rgb(100, 100, 100)

This commit is contained in:
Charles 2013-06-18 14:25:37 +07:00
parent 136452ad2a
commit 7882cbcc98

View File

@ -269,6 +269,7 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab)
m_view->tabWidget()->setTabIcon(index, tab.icon); m_view->tabWidget()->setTabIcon(index, tab.icon);
m_view->tabWidget()->setTabText(index, tab.title); m_view->tabWidget()->setTabText(index, tab.title);
m_view->tabWidget()->tabBar()->setTabTextColor(index, QColor(100, 100, 100));
m_view->tabWidget()->setTabToolTip(index, tab.title); m_view->tabWidget()->setTabToolTip(index, tab.title);
m_locationBar.data()->showUrl(tab.url); m_locationBar.data()->showUrl(tab.url);
} }
@ -343,6 +344,7 @@ void WebTab::showNotification(QWidget* notif)
void WebTab::slotRestore() void WebTab::slotRestore()
{ {
p_restoreTab(m_savedTab); p_restoreTab(m_savedTab);
m_view->tabWidget()->tabBar()->setTabTextColor(tabIndex(), QColor(0, 0, 0));
m_savedTab.clear(); m_savedTab.clear();
} }