Bug 1659079 - Make the Summary dialog themeable. r+a=pmorris
authorRichard Marti <richard.marti@gmail.com>
Fri, 07 Aug 2020 12:20:08 +0200
changeset 39301 b39b483c45d3999f75afb5d86c370de143349427
parent 39300 319fac6c3985cc52ded2d142e30df1d33d38923e
child 39302 e5f1f508f084ac8765533350ad2e285f40049000
push id2705
push userthunderbird@calypsoblue.org
push dateTue, 18 Aug 2020 22:59:32 +0000
treeherdercomm-beta@1bd09bf0d762 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1659079
Bug 1659079 - Make the Summary dialog themeable. r+a=pmorris
calendar/base/content/dialogs/calendar-summary-dialog.xhtml
--- a/calendar/base/content/dialogs/calendar-summary-dialog.xhtml
+++ b/calendar/base/content/dialogs/calendar-summary-dialog.xhtml
@@ -8,16 +8,17 @@
 <?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/calendar-alarms.css"?>
 <?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/calendar-attendees.css"?>
 <?xml-stylesheet type="text/css" href="chrome://messenger/skin/input-fields.css"?>
 <?xml-stylesheet type="text/css" href="chrome://calendar/skin/calendar-event-dialog.css"?>
 <?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/dialogs/calendar-event-dialog.css"?>
 <?xml-stylesheet type="text/css" href="chrome://messenger/skin/primaryToolbar.css"?>
 <?xml-stylesheet type="text/css" href="chrome://messenger/skin/messenger.css"?>
 <?xml-stylesheet type="text/css" href="chrome://calendar/content/widgets/calendar-item-summary.css"?>
+<?xml-stylesheet type="text/css" href="chrome://messenger/skin/themeableDialog.css"?>
 
 <!DOCTYPE window [
   <!ENTITY % globalDTD SYSTEM "chrome://calendar/locale/global.dtd" >
   <!ENTITY % calendarDTD SYSTEM "chrome://calendar/locale/calendar.dtd" >
   <!ENTITY % dialogDTD SYSTEM "chrome://calendar/locale/calendar-event-dialog.dtd" >
   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
   %globalDTD;
   %calendarDTD;
@@ -26,30 +27,32 @@
 ]>
 
 <!-- Dialog id is changed during execution to allow different Window-icons
      on this dialog. document.loadOverlay() will not work on this one. -->
 <window windowtype="Calendar:EventSummaryDialog"
         onload="onLoad()"
         onunload="onUnload()"
         persist="screenX screenY width height"
+        lightweightthemes="true"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         xmlns:html="http://www.w3.org/1999/xhtml">
 
 <dialog id="calendar-summary-dialog">
 
   <!-- Javascript includes -->
   <script src="chrome://global/content/globalOverlay.js"/>
   <script src="chrome://global/content/editMenuOverlay.js"/>
   <script src="chrome://calendar/content/calendar-summary-dialog.js"/>
   <script src="chrome://calendar/content/calendar-dialog-utils.js"/>
   <script src="chrome://calendar/content/calendar-ui-utils.js"/>
   <script src="chrome://calendar/content/calendar-item-editing.js"/>
   <script src="chrome://calendar/content/calApplicationUtils.js"/>
   <script src="chrome://calendar/content/widgets/calendar-item-summary.js"/>
+  <script src="chrome://messenger/content/dialogShadowDom.js"/>
 
   <toolbox id="summary-toolbox"
            class="mail-toolbox"
            mode="full"
            defaultmode="full"
            iconsize="small"
            defaulticonsize="small"
            labelalign="end"