Bug 426930 - "Close" icon in the File and tab context menus looks pixellated on Linux. r=ventnor
authorDão Gottwald <dao@mozilla.com>
Tue, 05 May 2009 16:58:09 +0200
changeset 25087 ff06e7e1ef324c2a705754fc477cd9b01b5c733e
parent 25086 a8279e457be5bfef5f1e845748d1dbe3094a279f
child 25088 b8574ac1c849818481c4e143c5eb373497986ff3
push id1349
push userdgottwald@mozilla.com
push dateTue, 05 May 2009 18:36:44 +0000
reviewersventnor
bugs426930
milestone1.9.1b5pre
Bug 426930 - "Close" icon in the File and tab context menus looks pixellated on Linux. r=ventnor
browser/themes/gnomestripe/browser/browser.css
--- a/browser/themes/gnomestripe/browser/browser.css
+++ b/browser/themes/gnomestripe/browser/browser.css
@@ -225,17 +225,19 @@ menuitem:not([type]) {
   -moz-image-region: rect(0px 64px 16px 48px);
 }
 
 #menu_openFile {
   list-style-image: url("moz-icon://stock/gtk-open?size=menu");
 }
 
 #menu_close {
-  list-style-image: url("moz-icon://stock/gtk-close?size=menu");
+  /*XXX Avoiding size=menu as some themes (e.g. Human) don't provide the icon
+        at 16*16px (bug 426930), and upscaled images are ugly (bug 422179). */
+  list-style-image: url("moz-icon://stock/gtk-close?size=toolbar");
 }
 
 #context-media-play {
   list-style-image: url("moz-icon://stock/gtk-media-play?size=menu");
 }
 
 #context-media-pause {
   list-style-image: url("moz-icon://stock/gtk-media-pause?size=menu");
@@ -1207,17 +1209,19 @@ tabpanels {
   list-style-image: url("moz-icon://stock/gtk-clear?size=menu&state=disabled");
 }
 
 #context_undoCloseTab {
   list-style-image: url("moz-icon://stock/gtk-undelete?size=menu");
 }
 
 #context_closeTab {
-  list-style-image: url("moz-icon://stock/gtk-close?size=menu");
+  /*XXX Avoiding size=menu as some themes (e.g. Human) don't provide the icon
+        at 16*16px (bug 426930), and upscaled images are ugly (bug 422179). */
+  list-style-image: url("moz-icon://stock/gtk-close?size=toolbar");
 }
 
 /* tabbrowser-tab focus ring */
 .tabbrowser-tab > .tab-text {
   border: 1px dotted transparent;
 }
 
 .tabbrowser-tab[selected="true"]:focus > .tab-text {