Bug 1494335 - Port bug 1493145 to TB: [CSD] Enable round corners by default by -moz-gtk-csd-transparent-background media query. r=darktrojan DONTBUILD
authorRichard Marti <richard.marti@gmail.com>
Wed, 26 Sep 2018 17:45:26 +0200
changeset 33277 cb236791087d7f8a495acceb6b330f184e144070
parent 33276 5488135778be4fed4844afb254779b5fb623148b
child 33278 93d3584af75b199939a7e19ef2c6d87d44d494fa
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersdarktrojan
bugs1494335, 1493145
Bug 1494335 - Port bug 1493145 to TB: [CSD] Enable round corners by default by -moz-gtk-csd-transparent-background media query. r=darktrojan DONTBUILD
mail/themes/linux/mail/messenger.css
--- a/mail/themes/linux/mail/messenger.css
+++ b/mail/themes/linux/mail/messenger.css
@@ -104,20 +104,21 @@ toolbar[brighttext] {
   #titlebar {
     display: none;
   }
 }
 
 /* We draw to titlebar when Gkt+ CSD is available */
 @media (-moz-gtk-csd-available) {
   /* Some Gtk+ themes use non-rectangular toplevel windows. To fully support
-   * such themes we need to make toplevel window transparent with ARGB visual.
-   * It may cause performanance issue so let's put it under a preference
-   * and allow distros to enable it per default theme. */
-  @supports -moz-bool-pref("mozilla.widget.use-argb-visuals") {
+   * such themes we need to make toplevel window transparent.
+   * It may cause performanance issues so let's put it under a preference
+   * and enable it for desktop environment which do that by default.
+   * See nsWindow::TopLevelWindowUseARGBVisual() for details. */
+  @media (-moz-gtk-csd-transparent-background) {
     :root[tabsintitlebar]:not(:-moz-lwtheme) {
       background-color: transparent;
       background-image: linear-gradient(transparent 25px, -moz-dialog 25px);
       -moz-appearance: none;
     }
   }
 
   :root[tabsintitlebar] > #titlebar:-moz-lwtheme {