From 221bccdb9c30ea52f5f83e687dbd59cd39ff3d6c Mon Sep 17 00:00:00 2001 From: nowrep Date: Mon, 12 Dec 2011 21:47:32 +0100 Subject: [PATCH] Showing yellow locationbar on secured page in default linux theme. - linux default theme was the only one theme, where you couldn't recognize whether you are on secured on normal page it now shows light yellow background of locationbar --- bin/themes/linux/main.css | 5 +++++ src/navigation/locationbar.cpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/bin/themes/linux/main.css b/bin/themes/linux/main.css index cf95e0734..e0699be9a 100644 --- a/bin/themes/linux/main.css +++ b/bin/themes/linux/main.css @@ -113,6 +113,11 @@ qproperty-fixedheight: 27; } +#locationbar[secured="true"] +{ + background-color: #ffffbc; +} + #locationbar-bookmarkicon { margin-bottom: 2px; diff --git a/src/navigation/locationbar.cpp b/src/navigation/locationbar.cpp index ee20addd0..b25b07774 100644 --- a/src/navigation/locationbar.cpp +++ b/src/navigation/locationbar.cpp @@ -236,6 +236,10 @@ void LocationBar::setPrivacy(bool state) m_siteIcon->setProperty("secured", state); m_siteIcon->style()->unpolish(m_siteIcon); m_siteIcon->style()->polish(m_siteIcon); + + setProperty("secured", state); + style()->unpolish(this); + style()->polish(this); } void LocationBar::dropEvent(QDropEvent* event)