summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-04 23:22:05 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-18 11:29:49 +0200
commit1362a40d8adf82ad9633a42defd71367cdc903f6 (patch)
treeccf21244599d4948b78a60db651885f692764281 /src/urlbar
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-1362a40d8adf82ad9633a42defd71367cdc903f6.tar.xz
Better notify SSL infos
Positive/Negative background && KDE security icons
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlbar.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 292bf6c8..fa23b6c6 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -182,7 +182,10 @@ void UrlBar::paintEvent(QPaintEvent *event)
{
if(_tab->url().scheme() == QL1S("https"))
{
- backgroundColor = colorScheme.background(KColorScheme::NeutralBackground).color(); // light yellow
+ backgroundColor = _tab->page()->hasSslValid()
+ ? colorScheme.background(KColorScheme::PositiveBackground).color()
+ : colorScheme.background(KColorScheme::NegativeBackground).color();
+
foregroundColor = colorScheme.foreground(KColorScheme::NormalText).color();
}
p.setBrush(QPalette::Base, backgroundColor);
@@ -461,7 +464,9 @@ IconButton *UrlBar::addRightIcon(UrlBar::icon ic)
rightIcon->setToolTip(i18n("List all available RSS feeds"));
break;
case UrlBar::SSL:
- rightIcon->setIcon(KIcon("object-locked"));
+ _tab->page()->hasSslValid()
+ ? rightIcon->setIcon(KIcon("security-high"))
+ : rightIcon->setIcon(KIcon("security-low"));
rightIcon->setToolTip(i18n("Show SSL Info"));
break;
case UrlBar::BK: