Bug 1222816 - Restore about:config UI (Config Editor) to old appearance by overriding Toolkit's Project Chameleon styles r=IanN a=Ratty
authorPhilip Chee <philip.chee@gmail.com>
Mon, 25 Apr 2016 05:13:05 +0800
changeset 19262 cc653a2b1a0c98aab0a321cedc116d42f1b6d927
parent 19261 878afe4c65b75a96fddc1593418210d0337ccc31
child 19263 a1f8fb97ddfaa0f477a14ae6d71655895924feaa
push id11833
push userphilip.chee@gmail.com
push dateSun, 24 Apr 2016 21:13:37 +0000
treeherdercomm-central@cc653a2b1a0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Ratty
bugs1222816
Bug 1222816 - Restore about:config UI (Config Editor) to old appearance by overriding Toolkit's Project Chameleon styles r=IanN a=Ratty
suite/themes/classic/communicator/config.css
suite/themes/classic/jar.mn
suite/themes/classic/mac/communicator/config.css
suite/themes/modern/global/config.css
new file mode 100644
--- /dev/null
+++ b/suite/themes/classic/communicator/config.css
@@ -0,0 +1,66 @@
+/* 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/. */
+
+@import url("chrome://global/skin/");
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+#warningScreen {
+  background-color: -moz-Dialog;
+}
+
+#warningBox {
+  background-image: url("chrome://global/skin/icons/warning-large.png");
+  background-repeat: no-repeat;
+  background-position: 30px 3em;
+  max-width: 55em;
+  background-color: -moz-Field;
+  color: -moz-FieldText;
+  border: 1px solid ThreeDShadow;
+  border-radius: 10px;
+  padding: 3em;
+  -moz-padding-start: 64px;
+  -moz-margin-start: 1em;
+  -moz-margin-end: 1em;
+}
+
+.title, .description {
+  max-width: 50em;
+  -moz-padding-start: 3em;
+}
+
+#warningTitle {
+  margin: 0 0 .6em 0;
+  font-size: 160%;
+  border-bottom: 1px solid ThreeDLightShadow;
+}
+
+#warningText {
+  font-size: 110%;
+  -moz-margin-start: 0;
+}
+
+#warningButton {
+  margin-top: 0.6em;
+}
+
+#showWarningNextTime {
+  margin-top: 0.6em;
+}
+
+#configTreeBody::-moz-tree-cell-text(user) {
+  font-weight: bold;
+}
+
+#configTreeBody::-moz-tree-cell-text(locked) {
+  font-style: italic;
+}
+
+#configTree {
+  margin-top: 5px;
+  margin-bottom: 5px;
+}
+
+#filterRow {
+  margin-top: 5px;
+}
--- a/suite/themes/classic/jar.mn
+++ b/suite/themes/classic/jar.mn
@@ -13,16 +13,17 @@ classic.jar:
 % style chrome://global/content/customizeToolbar.xul chrome://messenger/skin/messengercompose/messengercompose.css
 % style chrome://global/content/customizeToolbar.xul chrome://messenger/skin/smime/msgCompSMIMEOverlay.css
 % style chrome://global/content/customizeToolbar.xul chrome://messenger/skin/addressbook/addressbook.css
 #ifdef XP_MACOSX
   skin/classic/communicator/aboutPrivateBrowsing.css                    (mac/communicator/aboutPrivateBrowsing.css)
   skin/classic/communicator/aboutSessionRestore.css                     (mac/communicator/aboutSessionRestore.css)
   skin/classic/communicator/button.css                                  (mac/communicator/button.css)
   skin/classic/communicator/communicator.css                            (mac/communicator/communicator.css)
+  skin/classic/communicator/config.css                                  (mac/communicator/config.css)
   skin/classic/communicator/helpOverlay.css                             (mac/communicator/helpOverlay.css)
   skin/classic/communicator/toolbar.css                                 (mac/communicator/toolbar.css)
   skin/classic/communicator/viewSourceOverlay.css                       (mac/communicator/viewSourceOverlay.css)
   skin/classic/communicator/bookmarks/bookmarks.css                     (mac/communicator/bookmarks/bookmarks.css)
   skin/classic/communicator/bookmarks/bookmarksManager.css              (mac/communicator/bookmarks/bookmarksManager.css)
   skin/classic/communicator/bookmarks/bookmarksMenu.png                 (mac/communicator/bookmarks/bookmarksMenu.png)
   skin/classic/communicator/bookmarks/bookmarksToolbar.css              (mac/communicator/bookmarks/bookmarksToolbar.css)
   skin/classic/communicator/bookmarks/bookmarksToolbar.png              (mac/communicator/bookmarks/bookmarksToolbar.png)
@@ -49,16 +50,17 @@ classic.jar:
   skin/classic/communicator/icons/warning-24.png                        (mac/communicator/icons/warning-24.png)
   skin/classic/communicator/toolbar/toolbar-gradient22.png              (mac/communicator/toolbar/toolbar-gradient22.png)
   skin/classic/communicator/toolbar/toolbar-gradient34.png              (mac/communicator/toolbar/toolbar-gradient34.png)
 #else
   skin/classic/communicator/aboutPrivateBrowsing.css                    (communicator/aboutPrivateBrowsing.css)
   skin/classic/communicator/aboutSessionRestore.css                     (communicator/aboutSessionRestore.css)
   skin/classic/communicator/button.css                                  (communicator/button.css)
   skin/classic/communicator/communicator.css                            (communicator/communicator.css)
+  skin/classic/communicator/config.css                                  (communicator/config.css)
   skin/classic/communicator/helpOverlay.css                             (communicator/helpOverlay.css)
   skin/classic/communicator/toolbar.css                                 (communicator/toolbar.css)
   skin/classic/communicator/viewSourceOverlay.css                       (communicator/viewSourceOverlay.css)
   skin/classic/communicator/bookmarks/bookmark-folder-closed.png        (communicator/bookmarks/bookmark-folder-closed.png)
   skin/classic/communicator/bookmarks/bookmark-folder-dis.png           (communicator/bookmarks/bookmark-folder-dis.png)
   skin/classic/communicator/bookmarks/bookmark-folder-open.png          (communicator/bookmarks/bookmark-folder-open.png)
   skin/classic/communicator/bookmarks/bookmarks.css                     (communicator/bookmarks/bookmarks.css)
   skin/classic/communicator/bookmarks/bookmarksManager.css              (communicator/bookmarks/bookmarksManager.css)
@@ -466,9 +468,11 @@ classic.jar:
   skin/classic/navigator/btn1/previous.gif                              (navigator/btn1/previous.gif)
   skin/classic/navigator/btn1/top.gif                                   (navigator/btn1/top.gif)
   skin/classic/navigator/btn1/up.gif                                    (navigator/btn1/up.gif)
   skin/classic/navigator/icons/chevron.gif                              (navigator/icons/chevron.gif)
   skin/classic/navigator/icons/popup-blocked.png                        (navigator/icons/popup-blocked.png)
   skin/classic/navigator/icons/tab-drag-indicator.gif                   (navigator/icons/tab-drag-indicator.gif)
   skin/classic/navigator/icons/tab-new.gif                              (navigator/icons/tab-new.gif)
 [extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
-% override chrome://mozapps/skin/places/defaultFavicon.png chrome://communicator/skin/bookmarks/bookmark-item.png
+% override chrome://global/skin/config.css                        chrome://communicator/skin/config.css
+% override chrome://global/skin/in-content/info-pages.css         chrome://communicator/skin/communicator.css
+% override chrome://mozapps/skin/places/defaultFavicon.png        chrome://communicator/skin/bookmarks/bookmark-item.png
new file mode 100644
--- /dev/null
+++ b/suite/themes/classic/mac/communicator/config.css
@@ -0,0 +1,79 @@
+/* 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/. */
+
+@import url("chrome://global/skin/");
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+#warningScreen {
+  background-color: -moz-Dialog;
+}
+
+#warningBox {
+  background-image: url("chrome://global/skin/icons/warning-large.png");
+  background-repeat: no-repeat;
+  background-position: 30px 3em;
+  max-width: 55em;
+  background-color: -moz-Field;
+  color: -moz-FieldText;
+  border: 1px solid ThreeDShadow;
+  border-radius: 10px;
+  padding: 3em;
+  -moz-padding-start: 64px;
+  -moz-margin-start: 1em;
+  -moz-margin-end: 1em;
+}
+
+.title, .description {
+  max-width: 50em;
+  -moz-padding-start: 3em;
+}
+
+#warningTitle {
+  margin: 0 0 .6em 0;
+  font-size: 160%;
+  border-bottom: 1px solid ThreeDLightShadow;
+}
+
+#warningText {
+  font-size: 110%;
+  -moz-margin-start: 0;
+}
+
+#warningButton {
+  margin-top: 0.6em;
+}
+
+#showWarningNextTime {
+  margin-top: 0.6em;
+}
+
+#configTreeBody::-moz-tree-cell-text(user) {
+  font-weight: bold;
+}
+
+#configTreeBody::-moz-tree-cell-text(locked) {
+  font-style: italic;
+}
+
+#configTree {
+  margin: 0;
+  -moz-appearance: none;
+}
+
+#filterRow {
+  background: linear-gradient(#E8E8E8, #D0D0D0) repeat-x;
+  border-bottom: 1px solid #888;
+  padding: 1px 2px 0;
+}
+
+#filterRow > label {
+  margin: 0 4px;
+  color:  #6D6D6D;
+  text-shadow:  0 1px rgba(255, 255, 255, .4);
+  font-weight: bold;
+}
+
+#textbox {
+  max-width: 35em;
+}
--- a/suite/themes/modern/global/config.css
+++ b/suite/themes/modern/global/config.css
@@ -35,20 +35,16 @@
   max-width: 50em;
   -moz-padding-start: 3em;
 }
 
 #warningTitle
 {
   margin: 0 0 .6em;
   font-size: 160%;
-}
-
-.title-text
-{
   border-bottom: 1px solid #7A8490;
 }
 
 #warningText
 {
   font-size: 110%;
   -moz-margin-start: 0;
 }