From cd2149b67ae1dd7467a58c9d1d02877a7709da91 Mon Sep 17 00:00:00 2001 From: Blake Winton Date: Thu, 2 Jul 2009 20:53:08 -0700 Subject: [PATCH] Bug 490106 - Tooltips for autoconfig server security quality don't wrap, r=philringnalda --- mail/base/content/accountCreation.dtd | 7 ++- .../gnomestripe/mail/accountCreation.css | 16 +++++++ .../themes/pinstripe/mail/accountCreation.css | 16 +++++++ mail/themes/qute/mail/accountCreation.css | 16 +++++++ .../content/accountcreation/emailWizard.js | 17 ++++--- .../content/accountcreation/emailWizard.xul | 45 ++++++++++++++++--- 6 files changed, 101 insertions(+), 16 deletions(-) diff --git a/mail/base/content/accountCreation.dtd b/mail/base/content/accountCreation.dtd index 496d3f1b30..25d72bfa76 100644 --- a/mail/base/content/accountCreation.dtd +++ b/mail/base/content/accountCreation.dtd @@ -38,8 +38,11 @@ - - + + + + + diff --git a/mail/themes/gnomestripe/mail/accountCreation.css b/mail/themes/gnomestripe/mail/accountCreation.css index f60262a844..4a0f6293a3 100644 --- a/mail/themes/gnomestripe/mail/accountCreation.css +++ b/mail/themes/gnomestripe/mail/accountCreation.css @@ -282,3 +282,19 @@ checkbox.acknowledge_checkbox { vbox.settings { padding: 1em; } + +.title { + font-weight: bold; + padding: 0px 3px; +} + +.details { + font-style: italic; + padding: 3px; +} + +.popup-panel { + padding: 2px 3px; + background-color: #ffffc7; + max-width: 320px; +} diff --git a/mail/themes/pinstripe/mail/accountCreation.css b/mail/themes/pinstripe/mail/accountCreation.css index a3a54d5bbe..32e3f830d2 100644 --- a/mail/themes/pinstripe/mail/accountCreation.css +++ b/mail/themes/pinstripe/mail/accountCreation.css @@ -307,3 +307,19 @@ checkbox.acknowledge_checkbox { vbox.settings { padding: 1em; } + +.title { + font-weight: bold; + padding: 0px 3px; +} + +.details { + font-style: italic; + padding: 3px; +} + +.popup-panel { + padding: 2px 3px; + background-color: #ffffc7; + max-width: 320px; +} diff --git a/mail/themes/qute/mail/accountCreation.css b/mail/themes/qute/mail/accountCreation.css index 9fc6019e79..f29b43b68f 100644 --- a/mail/themes/qute/mail/accountCreation.css +++ b/mail/themes/qute/mail/accountCreation.css @@ -201,3 +201,19 @@ vbox.icon[state='weak'] { vbox.settings { padding: 1em; } + +.title { + font-weight: bold; + padding: 0px 3px; +} + +.details { + font-style: italic; + padding: 3px; +} + +.popup-panel { + padding: 2px 3px; + background-color: #ffffc7; + max-width: 320px; +} diff --git a/mailnews/base/prefs/resources/content/accountcreation/emailWizard.js b/mailnews/base/prefs/resources/content/accountcreation/emailWizard.js index eef53238c6..047b44cc64 100644 --- a/mailnews/base/prefs/resources/content/accountcreation/emailWizard.js +++ b/mailnews/base/prefs/resources/content/accountcreation/emailWizard.js @@ -850,17 +850,20 @@ EmailConfigWizard.prototype = _setIconAndTooltip : function(id, state, details) { let icon = getElementById(id); - icon.setAttribute('state', state); + icon.setAttribute("state", state); switch (state) { - case 'weak': - icon.setAttribute('tooltip', 'insecureserver-'+details); + case "weak": + icon.setAttribute("tooltip", "insecureserver-" + details); + icon.setAttribute("popup", "insecureserver-" + details + "-panel"); break; - case 'hidden': - icon.removeAttribute('tooltip'); + case "hidden": + icon.removeAttribute("tooltip"); + icon.removeAttribute("popup"); break; - case 'strong': - icon.setAttribute('tooltip', 'secureservertooltip'); + case "strong": + icon.setAttribute("tooltip", "secureservertooltip"); + icon.setAttribute("popup", "secureserver-panel"); break; } }, diff --git a/mailnews/base/prefs/resources/content/accountcreation/emailWizard.xul b/mailnews/base/prefs/resources/content/accountcreation/emailWizard.xul index 3db1887705..4bb1ea064d 100644 --- a/mailnews/base/prefs/resources/content/accountcreation/emailWizard.xul +++ b/mailnews/base/prefs/resources/content/accountcreation/emailWizard.xul @@ -87,22 +87,53 @@ - - + + - &insecureCleartext.description; + + &insecureServer.tooltip.title; + &insecureCleartext.description; + + + + + + + + &insecureServer.tooltip.title; + &insecureSelfsigned.description; + + + + + + + &secureServer.description; + + + + + + + + &insecureServer.tooltip.title; + &insecureServer.tooltip.details; + - + - &insecureSelfsigned.description; + + &insecureServer.tooltip.title; + &insecureServer.tooltip.details; + - + - &secureServer.description; + &secureServer.description;