Bug 1743201 - Port bug 1432090 - Honor GTK button layout. r=aleca
authorRichard Marti <richard.marti@gmail.com>
Mon, 29 Nov 2021 12:43:15 +0200
changeset 34414 d2444a4140e7cbc54fdcd4988f35f77112b8e2d0
parent 34413 76404987067897eb98d9852911e3cb088cec6507
child 34415 4dbfe690171b5f723c447339830bef95bd8da417
push id19417
push usermkmelin@iki.fi
push dateMon, 29 Nov 2021 10:44:48 +0000
treeherdercomm-central@d2444a4140e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleca
bugs1743201, 1432090
Bug 1743201 - Port bug 1432090 - Honor GTK button layout. r=aleca
mail/themes/linux/mail/messenger.css
--- a/mail/themes/linux/mail/messenger.css
+++ b/mail/themes/linux/mail/messenger.css
@@ -145,28 +145,32 @@
     -moz-box-align: center;
   }
 
   /* Render titlebar command buttons according to system config.
    * Use full scale icons here as the Gtk+ does. */
   #titlebar-min {
     appearance: auto;
     -moz-default-appearance: -moz-window-button-minimize;
+    -moz-box-ordinal-group: env(-moz-gtk-csd-minimize-button-position);
   }
   #titlebar-max {
     appearance: auto;
     -moz-default-appearance: -moz-window-button-maximize;
+    -moz-box-ordinal-group: env(-moz-gtk-csd-maximize-button-position);
   }
   :root[sizemode="maximized"] #titlebar-max {
     appearance: auto;
     -moz-default-appearance: -moz-window-button-restore;
+    -moz-box-ordinal-group: env(-moz-gtk-csd-maximize-button-position);
   }
   #titlebar-close {
     appearance: auto;
     -moz-default-appearance: -moz-window-button-close;
+    -moz-box-ordinal-group: env(-moz-gtk-csd-close-button-position);
   }
 
   @media (-moz-gtk-csd-minimize-button: 0) {
     #titlebar-min {
       display: none;
     }
   }
   @media (-moz-gtk-csd-maximize-button: 0) {
@@ -187,17 +191,16 @@
 
     :root[tabsintitlebar] .titlebar-placeholder[type="caption-buttons"] {
       margin-inline-start: 10px;
     }
   }
 
   @media (-moz-gtk-csd-reversed-placement) {
     #titlebar-buttonbox-container,
-    #titlebar-close,
     .titlebar-placeholder[type="caption-buttons"] {
       -moz-box-ordinal-group: 0;
     }
 
     :root[tabsintitlebar] .titlebar-placeholder[type="caption-buttons"] {
       margin-inline-end: 10px;
     }
   }