diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-28 18:35:24 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-28 18:35:24 +0200 | 
| commit | 20186994090d3625107c69ac10f1bc5acf95b889 (patch) | |
| tree | 6bd04a1189cd61bd9d72760a9fa22800c76a9e0b | |
| parent | removing location toolbar to let toolbars be more configurable (diff) | |
| download | rekonq-20186994090d3625107c69ac10f1bc5acf95b889.tar.xz | |
Modified urlbar colors to have just loading colors
| -rw-r--r-- | src/urlbar.cpp | 18 | 
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); | 
