Browse Source

move platform-specific images to their respective platform

pull/2/head
gorhill 10 years ago
parent
commit
365593a389
  1. 6
      platform/firefox/vapi-background.js

6
platform/firefox/vapi-background.js

@ -1463,7 +1463,7 @@ vAPI.toolbarButton.init = function() {
this.styleURI = [ this.styleURI = [
'#' + this.id + ' {', '#' + this.id + ' {',
'list-style-image: url(', 'list-style-image: url(',
vAPI.getURL('img/browsericons/ff-icon16-off.svg'),
vAPI.getURL('img/browsericons/icon16-off.svg'),
');', ');',
'}', '}',
'#' + this.viewId + ', #' + this.viewId + ' > iframe {', '#' + this.viewId + ', #' + this.viewId + ' > iframe {',
@ -1675,7 +1675,7 @@ vAPI.toolbarButton.updateState = function(win, tabId) {
icon = ''; icon = '';
} }
else { else {
icon = 'url(' + vAPI.getURL('img/browsericons/ff-icon16.svg') + ')';
icon = 'url(' + vAPI.getURL('img/browsericons/icon16.svg') + ')';
} }
button.style.listStyleImage = icon; button.style.listStyleImage = icon;
@ -1766,7 +1766,7 @@ vAPI.contextMenu.register = function(doc) {
var menuitem = doc.createElement('menuitem'); var menuitem = doc.createElement('menuitem');
menuitem.setAttribute('id', this.menuItemId); menuitem.setAttribute('id', this.menuItemId);
menuitem.setAttribute('label', this.menuLabel); menuitem.setAttribute('label', this.menuLabel);
menuitem.setAttribute('image', vAPI.getURL('img/browsericons/ff-icon16.svg'));
menuitem.setAttribute('image', vAPI.getURL('img/browsericons/icon16.svg'));
menuitem.setAttribute('class', 'menuitem-iconic'); menuitem.setAttribute('class', 'menuitem-iconic');
menuitem.addEventListener('command', this.onCommand); menuitem.addEventListener('command', this.onCommand);
contextMenu.addEventListener('popupshowing', this.displayMenuItem); contextMenu.addEventListener('popupshowing', this.displayMenuItem);

Loading…
Cancel
Save