From 70b95d90f92f471b37c2b0a8a6a3c3b1642adb5d Mon Sep 17 00:00:00 2001 From: rsx11m Date: Tue, 5 Nov 2013 17:06:52 -0600 Subject: [PATCH] Bug 842439 - Improve style and rearrange content of the about:privatebrowsing page. r=Neil, ui-r=stefanh CLOSED TREE --- suite/common/aboutPrivateBrowsing.xul | 60 ++++++++++------- .../chrome/common/aboutPrivateBrowsing.dtd | 28 +++++--- .../communicator/aboutPrivateBrowsing.css | 62 +++++++++++++++++ suite/themes/classic/jar.mn | 2 + .../mac/communicator/aboutPrivateBrowsing.css | 63 ++++++++++++++++++ .../communicator/aboutPrivateBrowsing.css | 62 +++++++++++++++++ .../themes/modern/global/icons/warning-24.png | Bin 0 -> 963 bytes suite/themes/modern/jar.mn | 2 + 8 files changed, 245 insertions(+), 34 deletions(-) create mode 100644 suite/themes/classic/communicator/aboutPrivateBrowsing.css create mode 100644 suite/themes/classic/mac/communicator/aboutPrivateBrowsing.css create mode 100644 suite/themes/modern/communicator/aboutPrivateBrowsing.css create mode 100644 suite/themes/modern/global/icons/warning-24.png diff --git a/suite/common/aboutPrivateBrowsing.xul b/suite/common/aboutPrivateBrowsing.xul index 3283af5a82..3a87c2fe96 100644 --- a/suite/common/aboutPrivateBrowsing.xul +++ b/suite/common/aboutPrivateBrowsing.xul @@ -5,6 +5,7 @@ - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + @@ -14,7 +15,6 @@ ]> @@ -26,37 +26,49 @@ if (window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsILoadContext) - .usePrivateBrowsing) - document.getElementById("normal").hidden = true; - else - document.getElementById("private").hidden = true; + .usePrivateBrowsing) { + document.getElementById("warningBox").className = "private"; + document.title = document.getElementById("privateTitle").textContent; + } + else { + document.getElementById("warningBox").className = "normal"; + document.title = document.getElementById("normalTitle").textContent; + } } - - - - - &privatebrowsingpage.description; - &privatebrowsingpage.moreinfo; + + + + + + -