Bug 579739 - Make lightweight themes / personas work in composer windows. r=stefanh sr=Neil
authorJens Hatlak <jh@junetz.de>
Fri, 05 Nov 2010 12:11:01 +0100
changeset 6662 c60c611cea9ac95320f2062b873ad076da758251
parent 6661 7c770ed05601bed5b64d8cce4c2580efe299ac6e
child 6663 6da511123e92d75c98350f88a404b13ddb4a4b4c
push idunknown
push userunknown
push dateunknown
reviewersstefanh, Neil
bugs579739
Bug 579739 - Make lightweight themes / personas work in composer windows. r=stefanh sr=Neil
editor/ui/composer/content/editor.xul
suite/themes/classic/communicator/communicator.css
suite/themes/classic/editor/editor.css
suite/themes/classic/mac/communicator/communicator.css
suite/themes/classic/mac/editor/editor.css
--- a/editor/ui/composer/content/editor.xul
+++ b/editor/ui/composer/content/editor.xul
@@ -69,16 +69,18 @@
         onload="EditorOnLoad()"
         onunload="EditorShutdown()"
         onclose="return EditorCanClose()"
         onfocus="EditorOnFocus()"
         title="&editorWindow.titlemodifier;"
         titlemodifier="&editorWindow.titlemodifier;"
         titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
         toggletoolbar="true"
+        lightweightthemes="true"
+        lightweightthemesfooter="status-bar"
         windowtype="composer:html"
         width="640" height="480"
         screenX="10" screenY="10"
         persist="screenX screenY width height sizemode">
 
   <script type="application/javascript" src="chrome://editor/content/editor.js"/>
   <script type="application/javascript" src="chrome://editor/content/EditorContextMenu.js"/>
   <script type="application/javascript" src="chrome://editor/content/StructBarContextMenu.js"/>
--- a/suite/themes/classic/communicator/communicator.css
+++ b/suite/themes/classic/communicator/communicator.css
@@ -16,16 +16,17 @@
  * The Initial Developer of the Original Code is
  * Netscape Communications Corporation.
  * Portions created by the Initial Developer are Copyright (C) 1998
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
  *   Joe Hewitt <hewitt@netscape.com>
  *   Manuel Reimer <Manuel.Reimer@gmx.de>
+ *   Jens Hatlak <jh@junetz.de>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either of the GNU General Public License Version 2 or later (the "GPL"),
  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  * in which case the provisions of the GPL or the LGPL are applicable instead
  * of those above. If you wish to allow use of your version of this file only
  * under the terms of either the GPL or the LGPL, and not to allow others to
  * use your version of this file under the terms of the MPL, indicate your
@@ -102,8 +103,15 @@
 }
 
 /* ::::: iconic menus and menuitems ::::: */
 
 menu.menu-iconic > .menu-iconic-left,
 menuitem.menuitem-iconic > .menu-iconic-left {
   display: -moz-box;
 }
+
+/* ::::: lightweight themes ::::: */
+
+toolbar menulist:-moz-lwtheme {
+  opacity: .8;
+}
+
--- a/suite/themes/classic/editor/editor.css
+++ b/suite/themes/classic/editor/editor.css
@@ -16,16 +16,17 @@
  *
  * The Initial Developer of the Original Code is
  * Netscape Communications Corporation.
  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
  *   Joe Hewitt (hewitt@netscape.com)
+ *   Jens Hatlak (jh@junetz.de)
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either of the GNU General Public License Version 2 or later (the "GPL"),
  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  * in which case the provisions of the GPL or the LGPL are applicable instead
  * of those above. If you wish to allow use of your version of this file only
  * under the terms of either the GPL or the LGPL, and not to allow others to
  * use your version of this file under the terms of the MPL, indicate your
@@ -104,8 +105,16 @@
 
 .struct-textbox {
   -moz-appearance: none !important;
   padding: 0px !important;
   margin: 0px !important;
   border: none !important;
 }
 
+/* ::::: lightweight themes ::::: */
+
+#EditModeToolbar:-moz-lwtheme {
+  text-shadow: none;
+  color: -moz-dialogtext;
+  background-color: -moz-dialog;
+}
+
--- a/suite/themes/classic/mac/communicator/communicator.css
+++ b/suite/themes/classic/mac/communicator/communicator.css
@@ -16,16 +16,17 @@
  * The Initial Developer of the Original Code is
  * Netscape Communications Corporation.
  * Portions created by the Initial Developer are Copyright (C) 1998
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
  *   Joe Hewitt <hewitt@netscape.com>
  *   Manuel Reimer <Manuel.Reimer@gmx.de>
+ *   Jens Hatlak <jh@junetz.de>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either of the GNU General Public License Version 2 or later (the "GPL"),
  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  * in which case the provisions of the GPL or the LGPL are applicable instead
  * of those above. If you wish to allow use of your version of this file only
  * under the terms of either the GPL or the LGPL, and not to allow others to
  * use your version of this file under the terms of the MPL, indicate your
@@ -101,8 +102,15 @@ grippy {
 .down[disabled="true"] {
   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
 }
 
 .sidebarTree {
   border: none;
   margin: 0px !important;
 }
+
+/* ::::: lightweight themes ::::: */
+
+toolbar menulist:-moz-lwtheme {
+  opacity: 0.8;
+}
+
--- a/suite/themes/classic/mac/editor/editor.css
+++ b/suite/themes/classic/mac/editor/editor.css
@@ -16,16 +16,17 @@
  *
  * The Initial Developer of the Original Code is
  * Netscape Communications Corporation.
  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
  *   Joe Hewitt (hewitt@netscape.com)
+ *   Jens Hatlak (jh@junetz.de)
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either of the GNU General Public License Version 2 or later (the "GPL"),
  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  * in which case the provisions of the GPL or the LGPL are applicable instead
  * of those above. If you wish to allow use of your version of this file only
  * under the terms of either the GPL or the LGPL, and not to allow others to
  * use your version of this file under the terms of the MPL, indicate your
@@ -103,8 +104,16 @@
 
 .struct-textbox {
   -moz-appearance: none !important;
   padding: 0px !important;
   margin: 0px !important;
   border: none !important;
 }
 
+/* ::::: lightweight themes ::::: */
+
+#EditModeToolbar:-moz-lwtheme {
+  text-shadow: none;
+  color: -moz-dialogtext;
+  background-color: -moz-dialog;
+}
+