summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-28 18:35:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-28 18:35:24 +0200
commit20186994090d3625107c69ac10f1bc5acf95b889 (patch)
tree6bd04a1189cd61bd9d72760a9fa22800c76a9e0b
parentremoving location toolbar to let toolbars be more configurable (diff)
downloadrekonq-20186994090d3625107c69ac10f1bc5acf95b889.tar.xz
Modified urlbar colors to have just loading colors
-rw-r--r--src/urlbar.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index 1987ff8c..6b77e5d3 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -175,14 +175,9 @@ inline void UrlBar::slotUpdateProgress(int progress)
void UrlBar::paintEvent(QPaintEvent *event)
{
- QColor baseColor = s_defaultBaseColor;
- if (m_currentUrl.scheme() == QLatin1String("https"))
- {
- baseColor = QColor(248, 248, 100);
- }
// set background color of UrlBar
QPalette p = palette();
- p.setColor(QPalette::Base, baseColor);
+ p.setColor(QPalette::Base, s_defaultBaseColor);
setPalette(p);
KHistoryComboBox::paintEvent(event);
@@ -190,9 +185,16 @@ void UrlBar::paintEvent(QPaintEvent *event)
if (!hasFocus())
{
QPainter painter(this);
-
- QColor loadingColor = QColor(116, 192, 250);
+ QColor loadingColor;
+ if (m_currentUrl.scheme() == QLatin1String("https"))
+ {
+ loadingColor = QColor(248, 248, 100);
+ }
+ else
+ {
+ loadingColor = QColor(116, 192, 250);
+ }
painter.setBrush(generateGradient(loadingColor, height()));
painter.setPen(Qt::transparent);