diff --git a/mobile/chrome/content/browser.css b/mobile/chrome/content/browser.css index 3569c2bcac3..ba960096f11 100644 --- a/mobile/chrome/content/browser.css +++ b/mobile/chrome/content/browser.css @@ -23,31 +23,31 @@ documenttab { } settings { - -moz-binding: url("chrome://browser/content/bindings/setting.xml#settings"); + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#settings"); } setting[type="bool"] { - -moz-binding: url("chrome://browser/content/bindings/setting.xml#setting-bool"); + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-bool"); } setting[type="bool"][localized="true"] { - -moz-binding: url("chrome://browser/content/bindings/setting.xml#setting-localized-bool"); + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-localized-bool"); } setting[type="boolint"] { - -moz-binding: url("chrome://browser/content/bindings/setting.xml#setting-boolint"); + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-boolint"); } setting[type="integer"] { - -moz-binding: url("chrome://browser/content/bindings/setting.xml#setting-integer"); + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-integer"); } setting[type="control"] { - -moz-binding: url("chrome://browser/content/bindings/setting.xml#setting-control"); + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-control"); } setting[type="string"] { - -moz-binding: url("chrome://browser/content/bindings/setting.xml#setting-string"); + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-string"); } #browsers > notificationbox { diff --git a/mobile/chrome/content/config.js b/mobile/chrome/content/config.js index c18da7e93e3..7f9432a08d8 100644 --- a/mobile/chrome/content/config.js +++ b/mobile/chrome/content/config.js @@ -256,13 +256,13 @@ var ViewConfig = { row.setAttribute("default", aPref.default); let label = document.createElement("label"); - label.setAttribute("class", "preftitle"); + label.setAttribute("class", "preferences-title"); label.setAttribute("value", aPref.name); label.setAttribute("crop", "end"); row.appendChild(label); label = document.createElement("label"); - label.setAttribute("class", "prefvalue"); + label.setAttribute("class", "preferences-value"); label.setAttribute("value", aPref.value); label.setAttribute("crop", "end"); row.appendChild(label); diff --git a/mobile/chrome/jar.mn b/mobile/chrome/jar.mn index 0c4f17e6131..61fe4702f8d 100644 --- a/mobile/chrome/jar.mn +++ b/mobile/chrome/jar.mn @@ -48,7 +48,6 @@ chrome.jar: content/bindings/console.xml (content/bindings/console.xml) content/bindings/dialog.xml (content/bindings/dialog.xml) content/bindings/pageaction.xml (content/bindings/pageaction.xml) - content/bindings/setting.xml (content/bindings/setting.xml) content/bindings/arrowbox.xml (content/bindings/arrowbox.xml) content/browser.css (content/browser.css) content/cursor.css (content/cursor.css) diff --git a/mobile/themes/core/browser.css b/mobile/themes/core/browser.css index 6934a2cd7b3..b1fe81eb4db 100644 --- a/mobile/themes/core/browser.css +++ b/mobile/themes/core/browser.css @@ -1216,37 +1216,41 @@ pageaction:not([image]) > hbox >.pageaction-image { border-bottom: @border_width_tiny@ solid #cacdd5; } -/* XXX should be a richlistitem */ -.prefbox { +setting { padding: @padding_xsmall@; border-bottom: @border_width_tiny@ solid rgb(207,207,207); min-height: @touch_row@; /* row size */ -moz-box-align: center; + -moz-box-orient: horizontal; } -.setting-group > .prefbox { +.setting-label { + -moz-box-flex: 1; +} + +.setting-group > setting { border-bottom: none; } -.setting-subgroup > .prefbox { +.setting-subgroup > setting { border-bottom: none; -moz-margin-start: @margin_xxxnormal@; } -.setting-subgroup + :not(.setting-subgroup) > .prefbox { +.setting-subgroup + :not(.setting-subgroup) > setting { border-top: @border_width_tiny@ solid rgb(207,207,207); } /* Put setting textboxes on a separate row in portrait */ @media (@orientation@: portrait) { - .setting-integer, - .setting-string { + setting[type="integer"], + setting[type="string"] { -moz-box-align: start; -moz-box-orient: vertical; } - .setting-integer > .setting-input > textbox, - .setting-string > .setting-input > textbox { + setting[type="integer"] > .setting-input > textbox, + setting[type="string"] > .setting-input > textbox { width: 499px; /* textboxes seem to need a width in order to flex */ -moz-box-flex: 1; } @@ -1256,17 +1260,17 @@ pageaction:not([image]) > hbox >.pageaction-image { -moz-margin-start: 28px; /* sized based on the 32px addon image */ } -.options-box > setting:last-child > .prefbox { +.options-box > setting:last-child { border-bottom: 0; } /* XXX should be a richlistitem description.title */ -.preftitle { +.preferences-title { font-size: @font_normal@ !important; } /* XXX should be a richlistitem description.normal */ -.prefdesc { +.preferences-description { font-size: @font_small@ !important; color: grey; } diff --git a/mobile/themes/core/config.css b/mobile/themes/core/config.css index c5fde619c17..c6b2ce7ebd6 100644 --- a/mobile/themes/core/config.css +++ b/mobile/themes/core/config.css @@ -44,7 +44,7 @@ richlistitem { -moz-box-align: center; } -richlistitem .preftitle { +richlistitem .preferences-title { pointer-events: none; min-width: 200px; -moz-box-flex: 1; @@ -52,7 +52,7 @@ richlistitem .preftitle { } /* XXX look + sync */ -richlistitem[default="false"] .preftitle { +richlistitem[default="false"] .preferences-title { font-weight: bold; } @@ -98,11 +98,11 @@ richlistitem .prefvalue { display: none; } -#editor[default="false"] .preftitle { +#editor[default="false"] .preferences-title { font-weight: bold; } -#editor-setting .prefbox { +#editor-setting setting { border-color: transparent !important; } diff --git a/toolkit/mozapps/extensions/content/extensions.css b/toolkit/mozapps/extensions/content/extensions.css index ae77c59c054..0e432fff315 100644 --- a/toolkit/mozapps/extensions/content/extensions.css +++ b/toolkit/mozapps/extensions/content/extensions.css @@ -88,6 +88,34 @@ xhtml|link { -moz-binding: url("chrome://mozapps/content/extensions/extensions.xml#detail-row"); } +settings { + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#settings"); +} + +setting[type="bool"] { + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-bool"); +} + +setting[type="bool"][localized="true"] { + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-localized-bool"); +} + +setting[type="boolint"] { + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-boolint"); +} + +setting[type="integer"] { + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-integer"); +} + +setting[type="control"] { + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-control"); +} + +setting[type="string"] { + -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-string"); +} + #addonitem-popup > menuitem[disabled="true"] { display: none; } diff --git a/mobile/chrome/content/bindings/setting.xml b/toolkit/mozapps/extensions/content/setting.xml similarity index 73% rename from mobile/chrome/content/bindings/setting.xml rename to toolkit/mozapps/extensions/content/setting.xml index 202db85c6d3..dc30e9f51e2 100644 --- a/mobile/chrome/content/bindings/setting.xml +++ b/toolkit/mozapps/extensions/content/setting.xml @@ -161,19 +161,17 @@ - + - - - - - - - - - - - + + + + + + + + + @@ -200,19 +198,17 @@ - + - - - - - - - - - - - + + + + + + + + + @@ -238,7 +234,7 @@ - + @@ -265,19 +261,17 @@ - + - - - - - - - - - - - + + + + + + + + + @@ -303,35 +297,31 @@ - + - - - - - - - - - - - + + + + + + + + + - + - - - - - - - - - - - + + + + + + + + + diff --git a/toolkit/mozapps/extensions/jar.mn b/toolkit/mozapps/extensions/jar.mn index 4aab3dfdd56..3465cee40e2 100644 --- a/toolkit/mozapps/extensions/jar.mn +++ b/toolkit/mozapps/extensions/jar.mn @@ -18,3 +18,4 @@ toolkit.jar: * content/mozapps/extensions/update.js (content/update.js) * content/mozapps/extensions/eula.xul (content/eula.xul) * content/mozapps/extensions/eula.js (content/eula.js) + content/mozapps/extensions/setting.xml (content/setting.xml)