Bug 1354263 - Set a fixed width/height for GTK-icons. r=aceman a=jorgk
authorRichard Marti <richard.marti@gmail.com>
Sun, 09 Apr 2017 12:53:10 +0200
changeset 24461 d3970dc6cd9c
parent 24460 a96b63bf7d0f
child 24462 6abb0416d697
push id2055
push usermozilla@jorgk.com
push dateWed, 12 Apr 2017 15:22:52 +0000
treeherdercomm-aurora@d3970dc6cd9c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman, jorgk
bugs1354263
Bug 1354263 - Set a fixed width/height for GTK-icons. r=aceman a=jorgk
mail/components/im/themes/chat.css
mail/themes/linux/mail/activity/activity.css
mail/themes/linux/mail/compose/messengercompose.css
mail/themes/linux/mail/folderPane.css
mail/themes/linux/mail/mailWindow1.css
mail/themes/linux/mail/messageHeader.css
mail/themes/linux/mail/preferences/preferences.css
mail/themes/linux/mail/primaryToolbar.css
mail/themes/linux/mail/sanitizeDialog.css
mail/themes/linux/mail/searchBox.css
--- a/mail/components/im/themes/chat.css
+++ b/mail/components/im/themes/chat.css
@@ -599,16 +599,18 @@ imgroup[closed] .twisty {
 %ifdef XP_MACOSX
   list-style-image: url("chrome://global/skin/icons/search-textbox.png");
 %else
 %ifdef XP_WIN
   list-style-image: url(chrome://global/skin/icons/Search-glass.png);
   -moz-image-region: rect(0, 16px, 16px, 0);
 %else
   list-style-image: url(moz-icon://stock/gtk-find?size=menu);
+  width: 16px;
+  height: 16px;
 %endif
 %endif
 }
 
 #statusTypeIcon {
   min-width: 40px;
 }
 
--- a/mail/themes/linux/mail/activity/activity.css
+++ b/mail/themes/linux/mail/activity/activity.css
@@ -17,16 +17,22 @@
   list-style-image: url(moz-icon://stock/gtk-clear?size=button);
   margin-top: 3px;
 }
 
 #clearListButton[disabled="true"] {
   list-style-image: url(moz-icon://stock/gtk-clear?size=button&state=disabled);
 }
 
+#clearListButton > .button-box > .button-icon {
+  width: 16px;
+  height: 16px;
+}
+
+
 /**
  * Images for buttons in the interface
  */
 
 activity-process button {
   list-style-image: url(chrome://messenger/skin/activity/buttons.png);
 }
 .cancel {
--- a/mail/themes/linux/mail/compose/messengercompose.css
+++ b/mail/themes/linux/mail/compose/messengercompose.css
@@ -22,16 +22,21 @@
 }
 
 #compose-toolbox > toolbar {
   /* force iconsize="small" on these toolbars */
   counter-reset: smallicons;
 }
 
 /** Stock icons for the menu items. */
+.formatting-button > .toolbarbutton-icon {
+  width: 16px;
+  height: 16px;
+}
+
 #fontFaceMenu {
   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic");
   list-style-image: url("moz-icon://stock/gtk-select-font?size=menu");
 }
 
 #increaseIndent {
   list-style-image: url("moz-icon://stock/gtk-indent?size=menu");
 }
--- a/mail/themes/linux/mail/folderPane.css
+++ b/mail/themes/linux/mail/folderPane.css
@@ -1,13 +1,18 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /* ::::: Folder Pane ::::: */
+treechildren::-moz-tree-image {
+  width: 16px;
+  height: 16px;
+}
+
 /* reduce the padding set from messenger.css */
 #folderTree treechildren::-moz-tree-cell-text {
   padding-inline-start: 2px;
 }
 
 /* this needs a different rule from the tree because otherwise the margin
    applies to the tab */
 .tabmail-tab[type="folder"] {
@@ -107,25 +112,21 @@ treechildren::-moz-tree-image(folderName
   -moz-image-region: rect(208px 16px 224px 0px);
 }
 
 /* ..... Feed ..... */
 
 treechildren::-moz-tree-image(folderNameCol, isFeed-true) {
   list-style-image: url("chrome://messenger-newsblog/skin/icons/rss-feed.png");
   -moz-image-region: rect(32px 16px 48px 0);
-  width: 16px;
-  height: 16px;
 }
 .tabmail-tab[type="folder"][IsFeedFolder="true"],
 treechildren::-moz-tree-image(folderNameCol, isFeedFolder-true) {
   list-style-image: url("chrome://messenger-newsblog/skin/icons/rss-feed.png");
   -moz-image-region: rect(0 16px 16px 0);
-  width: 16px;
-  height: 16px;
 }
 treechildren::-moz-tree-image(folderNameCol, isFeedFolder-true, newMessages-true) {
   list-style-image: url("chrome://messenger-newsblog/skin/icons/rss-feed.png");
   -moz-image-region: rect(0 16px 16px 0);
 }
 treechildren::-moz-tree-image(folderNameCol, serverIsPaused),
 treechildren::-moz-tree-cell-text(folderNameCol, serverIsPaused),
 treechildren::-moz-tree-image(folderNameCol, isPaused),
--- a/mail/themes/linux/mail/mailWindow1.css
+++ b/mail/themes/linux/mail/mailWindow1.css
@@ -239,8 +239,13 @@ menulist > .menulist-label-box {
 
 menulist:-moz-locale-dir(rtl) > .menulist-label-box {
   background-position: left;
 }
 
 toolbar[brighttext] menulist > .menulist-label-box {
   background-image: url("chrome://messenger/skin/icons/toolbarbutton-arrow-inverted.png");
 }
+
+menulist > .menulist-label-box > .menulist-icon {
+  width: 16px;
+  height: 16px;
+}
--- a/mail/themes/linux/mail/messageHeader.css
+++ b/mail/themes/linux/mail/messageHeader.css
@@ -93,21 +93,16 @@
 }
 
 #attachmentSize {
   margin: 0;
   margin-inline-start: 8px;
   color: #888a85; /* the same color as .headerName */
 }
 
-#attachmentSaveAllSingle,
-#attachmentSaveAllMultiple {
-  list-style-image: url("moz-icon://stock/gtk-save?size=menu");
-}
-
 #attachmentView {
   border-top: 1px solid ThreeDShadow;
 }
 
 /* ::::: msg header captions ::::: */
 
 #msgHeaderView {
   font-size: 100%;
--- a/mail/themes/linux/mail/preferences/preferences.css
+++ b/mail/themes/linux/mail/preferences/preferences.css
@@ -97,16 +97,18 @@ menulist > menupopup > menuitem > .menu-
   width: 16px;
   height: 16px;
   margin: 0 2px;
   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
 }
 
 #cookiesChildren::-moz-tree-image(domainCol, container) {
   list-style-image: url("moz-icon://stock/gtk-directory?size=menu");
+  width: 16px;
+  height: 16px;
 }
 
 #cookieInfoBox {
   border: 1px solid ThreeDShadow;
   border-radius: 0;
   margin: 4px;
   padding: 0;
 }
--- a/mail/themes/linux/mail/primaryToolbar.css
+++ b/mail/themes/linux/mail/primaryToolbar.css
@@ -314,20 +314,16 @@ toolbar[mode="text"] .button-appmenu .to
   font-weight: bold;
 }
 
 .msgNotificaton-smallText {
   padding-inline-start: 10px;
   font-size: 90%;
 }
 
-#mdnBarImage {
-  list-style-image: url("moz-icon://stock/gtk-dialog-question?size=toolbar");
-}
-
 /* AppMenu styling */
 
 .splitmenu-menuitem {
   -moz-appearance: menuitem;
   -moz-box-align: center;
   max-width: 42em;
   color: MenuText;
   font: menu;
--- a/mail/themes/linux/mail/sanitizeDialog.css
+++ b/mail/themes/linux/mail/sanitizeDialog.css
@@ -38,16 +38,18 @@
   border-radius: 5px;
   padding: 16px;
 }
 
 #sanitizeEverythingWarningIcon {
   list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=dialog");
   padding: 0;
   margin: 0;
+  width: 48px;
+  height: 48px;
 }
 
 #sanitizeEverythingWarningDescBox {
   padding: 0 16px;
   margin: 0;
 }
 
 
--- a/mail/themes/linux/mail/searchBox.css
+++ b/mail/themes/linux/mail/searchBox.css
@@ -5,16 +5,18 @@
 */
 
 .quick-search-textbox {
   padding-top: 1px;
 }
 
 .gloda-search-icon {
   list-style-image: url(moz-icon://stock/gtk-find?size=menu);
+  width: 16px;
+  height: 16px;
 }
 
 .gloda-search-icon:-moz-locale-dir(rtl) {
   transform: scaleX(-1);
 }
 
 .gloda-search-icon[searchbutton]:not([disabled]) {
   cursor: pointer;