Bug 927876 - Add some visual feedback to adding columns in the message filter window. r+ui-r=Paenglab, r=rkent, r=neil, f=aceman
authorJosiah Bruner <josiah@programmer.net>
Tue, 25 Feb 2014 16:38:48 -0500
changeset 15963 5b98bc77a2810331fe3fec4bdce45809cd77f9b0
parent 15962 d0e95d03514bfb8f0476f9ddce99518873b845c0
child 15964 51974b3f7cbc589c5ecad501b637624735de4a4e
push id9999
push userryanvm@gmail.com
push dateWed, 02 Apr 2014 12:41:36 +0000
treeherdercomm-central@5b98bc77a281 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrkent, neil
bugs927876
Bug 927876 - Add some visual feedback to adding columns in the message filter window. r+ui-r=Paenglab, r=rkent, r=neil, f=aceman CLOSED TREE
mail/themes/shared/mail/messenger.inc.css
mailnews/base/search/content/searchTermOverlay.js
--- a/mail/themes/shared/mail/messenger.inc.css
+++ b/mail/themes/shared/mail/messenger.inc.css
@@ -73,9 +73,21 @@ notification[value="addon-install-failed
 notification[value="addon-install-blocked"] .notification-inner,
 notification[value="addon-install-failed"] .notification-inner,
 notification[value="addon-install-complete"] .notification-inner {
   border: none;
 }
 
 notification[value="addon-install-failed"] .messageCloseButton {
   list-style-image: url("chrome://messenger/skin/icons/close-inverted.png");
-}
\ No newline at end of file
+}
+
+/* ::::: searchTermOverlay ::::: */
+
+#searchTermList > listitem[highlight = "true"] {
+  animation: highlight .4s ease-in;
+}
+
+@keyframes highlight {
+  from { background-color: Highlight; }
+  to { background-color: transparent; }
+}
+
--- a/mailnews/base/search/content/searchTermOverlay.js
+++ b/mailnews/base/search/content/searchTermOverlay.js
@@ -370,16 +370,17 @@ function createSearchRow(index, scope, s
     else {
       var currentItem = gSearchTermList.getItemAtIndex(index);
       gSearchTermList.insertBefore(searchrow, currentItem);
     }
 
     // If this row was added by user action, focus the value field.
     if (aUserAdded) {
       document.commandDispatcher.advanceFocusIntoSubtree(searchVal);
+	  searchrow.setAttribute("highlight", "true");
     }
 
     // bump our unique search term counter
     gUniqueSearchTermCounter++;
 }
 
 function initializeTermFromId(id)
 {