summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-31 12:11:36 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-31 12:11:36 +0200
commit9e704963693b271d5c78fbad59d34f752a1ab345 (patch)
treef41f6709778d5d168542416df666d86cbc200474 /src/urlbar/urlbar.cpp
parentUpdate urlbar progress (diff)
downloadrekonq-9e704963693b271d5c78fbad59d34f752a1ab345.tar.xz
Remove one hardcoded color, to better respect styles && improve usability
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index b297df1c..5428ca33 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -154,7 +154,7 @@ void UrlBar::activated(const KUrl& url, Rekonq::OpenType type)
void UrlBar::paintEvent(QPaintEvent *event)
-{
+{
QColor backgroundColor;
if (_privateMode)
{
@@ -179,9 +179,11 @@ void UrlBar::paintEvent(QPaintEvent *event)
}
else
{
- QColor loadingColor = QColor(116, 192, 250);
+ // NOTE: I chose this instead of the old QColor(116, 192, 250)
+ // to try respecting style colors
+ QColor loadingColor = Application::palette().color(QPalette::ToolTipBase);
- QLinearGradient gradient(0, 0, width(), 0);
+ QLinearGradient gradient( QPoint(0, 0), QPoint(width(), height()) );
gradient.setColorAt(0, loadingColor);
gradient.setColorAt(((double)progr) / 100 - .000001, loadingColor);
gradient.setColorAt(((double)progr) / 100, backgroundColor);