Bug 887314 - The camera icon is distorted on a retina screen, r=mixedpuppy.

This commit is contained in:
Florian Quèze 2013-06-27 15:20:18 +02:00
parent 4598331f24
commit 8878fab468
2 changed files with 8 additions and 3 deletions

View File

@ -12,8 +12,8 @@
<xul:image class="chat-status-icon" xbl:inherits="src=image"/>
<xul:label class="chat-title" flex="1" xbl:inherits="value=label" crop="center"/>
</xul:hbox>
<xul:toolbarbutton id="notification-icon" class="notification-anchor-icon chat-toolbarbutton"
oncommand="document.getBindingParent(this).showNotifications(); event.stopPropagation();"/>
<xul:toolbarbutton anonid="notification-icon" class="notification-anchor-icon chat-toolbarbutton"
oncommand="document.getBindingParent(this).showNotifications(); event.stopPropagation();"/>
<xul:toolbarbutton anonid="minimize" class="chat-minimize-button chat-toolbarbutton"
oncommand="document.getBindingParent(this).toggle();"/>
<xul:toolbarbutton anonid="swap" class="chat-swap-button chat-toolbarbutton"
@ -32,7 +32,7 @@
<constructor><![CDATA[
let Social = Components.utils.import("resource:///modules/Social.jsm", {}).Social;
this.content.__defineGetter__("popupnotificationanchor",
() => document.getAnonymousElementByAttribute(this, "id", "notification-icon"));
() => document.getAnonymousElementByAttribute(this, "anonid", "notification-icon"));
Social.setErrorListener(this.content, function(aBrowser) {
aBrowser.webNavigation.loadURI("about:socialerror?mode=compactInfo", null, null, null, null);
});

View File

@ -22,6 +22,11 @@
display: none;
}
.chat-toolbarbutton.notification-anchor-icon > .toolbarbutton-icon {
width: inherit;
margin-top: -2px;
}
.chat-close-button {
list-style-image: url('chrome://browser/skin/social/chat-icons.png');
-moz-image-region: rect(0, 14px, 14px, 0);