Bug 431275 - Give notification bars default icons via CSS. r=enn, ui-r=beltzner, a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@250959 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -91,7 +91,8 @@
|
||||
var newitem = document.createElementNS(XULNS, "notification");
|
||||
newitem.setAttribute("label", aLabel);
|
||||
newitem.setAttribute("value", aValue);
|
||||
newitem.setAttribute("image", aImage);
|
||||
if (aImage)
|
||||
newitem.setAttribute("image", aImage);
|
||||
if (!insertPos) {
|
||||
newitem.style.position = "fixed";
|
||||
newitem.style.top = "100%";
|
||||
|
||||
@@ -21,6 +21,20 @@ notification[type="critical"] {
|
||||
margin: 0px 1px 0px 6px;
|
||||
}
|
||||
|
||||
/* Default icons for notifications */
|
||||
|
||||
notification[type="info"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/information-16.png");
|
||||
}
|
||||
|
||||
notification[type="warning"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/warning-16.png");
|
||||
}
|
||||
|
||||
notification[type="critical"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/error-16.png");
|
||||
}
|
||||
|
||||
.messageText {
|
||||
-moz-margin-start: 5px;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,20 @@ notification[type="critical"] {
|
||||
margin: 0px 1px 0px 6px;
|
||||
}
|
||||
|
||||
/* Default icons for notifications */
|
||||
|
||||
notification[type="info"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/information-16.png");
|
||||
}
|
||||
|
||||
notification[type="warning"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/warning-16.png");
|
||||
}
|
||||
|
||||
notification[type="critical"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/error-16.png");
|
||||
}
|
||||
|
||||
.messageText {
|
||||
margin-top: 2px;
|
||||
font-weight: bold;
|
||||
|
||||
@@ -21,6 +21,20 @@ notification[type="critical"] {
|
||||
margin: 0px 1px 0px 6px;
|
||||
}
|
||||
|
||||
/* Default icons for notifications */
|
||||
|
||||
notification[type="info"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/information-16.png");
|
||||
}
|
||||
|
||||
notification[type="warning"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/warning-16.png");
|
||||
}
|
||||
|
||||
notification[type="critical"] .messageImage {
|
||||
list-style-image: url("chrome://global/skin/icons/error-16.png");
|
||||
}
|
||||
|
||||
.messageText {
|
||||
-moz-margin-start: 5px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user