setDesktopBackground.xhtml (2860B)
1 <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 2 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 <?csp default-src chrome:; style-src chrome: 'unsafe-inline'; ?> 8 9 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 10 xmlns:html="http://www.w3.org/1999/xhtml" 11 windowtype="Shell:SetDesktopBackground" 12 data-l10n-id="set-desktop-background-window" 13 style="min-width: 30em;"> 14 15 <linkset> 16 <html:link rel="stylesheet" href="chrome://global/skin/global.css" /> 17 <html:link 18 rel="stylesheet" 19 href="chrome://browser/skin/setDesktopBackground.css" 20 /> 21 22 <html:link rel="localization" href="browser/setDesktopBackground.ftl"/> 23 </linkset> 24 25 <dialog id="SetDesktopBackgroundDialog" 26 #ifndef XP_MACOSX 27 buttons="accept,cancel" 28 #else 29 buttons="accept" 30 #endif 31 buttonidaccept="set-desktop-background-accept"> 32 33 #ifdef XP_MACOSX 34 #include ../../../base/content/macWindow.inc.xhtml 35 #else 36 <script src="chrome://browser/content/utilityOverlay.js"/> 37 #endif 38 39 <script src="chrome://browser/content/setDesktopBackground.js"/> 40 <script src="chrome://global/content/contentAreaUtils.js"/> 41 42 #ifndef XP_MACOSX 43 <hbox align="center"> 44 <label data-l10n-id="set-background-position"/> 45 <menulist id="menuPosition" native="true"> 46 <menupopup> 47 <menuitem data-l10n-id="set-background-center" value="CENTER"/> 48 <menuitem data-l10n-id="set-background-tile" value="TILE"/> 49 <menuitem data-l10n-id="set-background-stretch" value="STRETCH"/> 50 <menuitem data-l10n-id="set-background-fill" value="FILL"/> 51 <menuitem data-l10n-id="set-background-fit" value="FIT"/> 52 <menuitem data-l10n-id="set-background-span" value="SPAN" id="spanPosition"/> 53 </menupopup> 54 </menulist> 55 <spacer flex="1"/> 56 <label data-l10n-id="set-background-color"/> 57 <html:input id="desktopColor" type="color"/> 58 </hbox> 59 #endif 60 61 <vbox align="center"> 62 <!-- default to 16:9, will be adjusted to match user's actual screen --> 63 <stack> 64 <html:canvas id="screen" width="202" height="114" role="presentation"/> 65 <vbox pack="center"> 66 <html:p id="preview-unavailable" hidden="" data-l10n-id="set-background-preview-unavailable"></html:p> 67 </vbox> 68 </stack> 69 <image id="monitor-base"/> 70 </vbox> 71 72 #ifdef XP_MACOSX 73 <separator/> 74 75 <hbox pack="end"> 76 <button id="setDesktopBackground" 77 data-l10n-id="set-desktop-background-accept"/> 78 <button id="showDesktopPreferences" 79 data-l10n-id="open-desktop-prefs" 80 hidden="true"/> 81 </hbox> 82 #endif 83 84 </dialog> 85 </window>