mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Tabs: Make sure unloaded tabs color is different even for white color.
Closes #1013
This commit is contained in:
parent
2ec0038bd4
commit
5de4075a98
@ -274,7 +274,13 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab)
|
|||||||
|
|
||||||
if (!tab.url.isEmpty()) {
|
if (!tab.url.isEmpty()) {
|
||||||
QColor col = m_view->tabWidget()->getTabBar()->palette().text().color();
|
QColor col = m_view->tabWidget()->getTabBar()->palette().text().color();
|
||||||
m_view->tabWidget()->getTabBar()->overrideTabTextColor(index, col.lighter(250));
|
QColor lighter = col.lighter(250);
|
||||||
|
// Make sure it works for white color
|
||||||
|
if (col == lighter) {
|
||||||
|
lighter = col.darker(250);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_view->tabWidget()->getTabBar()->overrideTabTextColor(index, lighter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user