From 132629199fa69a07650d5dac31d7751c8e73ba8c Mon Sep 17 00:00:00 2001 From: megabigbug Date: Mon, 27 Jul 2009 18:47:30 +0200 Subject: 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 --- src/urlbar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/urlbar.cpp') diff --git a/src/urlbar.cpp b/src/urlbar.cpp index af336e1c..ba9773db 100644 --- a/src/urlbar.cpp +++ b/src/urlbar.cpp @@ -258,3 +258,9 @@ QLinearGradient UrlBar::generateGradient(const QColor &color, int height) gradient.setColorAt(1, base); return gradient; } + +void UrlBar::setBackgroundColor(QColor c) +{ + s_defaultBaseColor=c; + repaint(); +} \ No newline at end of file -- cgit v1.2.1