summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-07-27 18:47:30 +0200
committermegabigbug <megabigbug@arrakis.(none)>2009-07-27 18:47:30 +0200
commit132629199fa69a07650d5dac31d7751c8e73ba8c (patch)
tree0935f07b35cc1ff7e81392e50a068ac8186d0622 /src/mainwindow.cpp
parentUpdated TODO (diff)
downloadrekonq-132629199fa69a07650d5dac31d7751c8e73ba8c.tar.xz
Add a setBackgroundColor to urlbar
Change the urlbar color by the window color when private browsing Change the urlbar color by a light red color when web inspector activated
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9a1ea708..e506bb4e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -590,6 +590,7 @@ void MainWindow::slotPrivateBrowsing(bool enable)
if (button == KMessageBox::Yes)
{
settings->setAttribute(QWebSettings::PrivateBrowsingEnabled, true);
+ m_view->currentUrlBar()->setBackgroundColor(palette().color(QPalette::Active, QPalette::Background));
}
else
{
@@ -599,6 +600,7 @@ void MainWindow::slotPrivateBrowsing(bool enable)
else
{
settings->setAttribute(QWebSettings::PrivateBrowsingEnabled, false);
+ m_view->currentUrlBar()->setBackgroundColor(palette().color(QPalette::Active, QPalette::Base));
MainWindow* win = Application::instance()->mainWindow();
win->m_lastSearch.clear();
@@ -751,9 +753,14 @@ void MainWindow::slotToggleInspector(bool enable)
if (result == KMessageBox::Yes)
{
+ m_view->currentUrlBar()->setBackgroundColor(QColor(247, 230, 230));
m_view->slotReloadAllTabs();
}
}
+ else
+ {
+ m_view->currentUrlBar()->setBackgroundColor(palette().color(QPalette::Active, QPalette::Base));
+ }
}