forked from mirrors/gecko-dev
		
	 16e7fa093b
			
		
	
	
		16e7fa093b
		
	
	
	
	
		
			
			These are two other cases where grouping is not really necessary. For accessibility, the checkbox at the end of the download interstitial dialog does not need to be in the same group as the radio button, and the question text can more simply just label the radiogroup. The vbox is still necessary to hide the section, but is not related to accessibility or dialog structure. Differential Revision: https://phabricator.services.mozilla.com/D8421 --HG-- extra : source : b11d646505c15a1b9ecdcf4dc21199c13ed432c2
		
			
				
	
	
		
			85 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
 | |
| 
 | |
| # 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/.
 | |
| 
 | |
| <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 | |
| <?xml-stylesheet href="chrome://browser/skin/setDesktopBackground.css" type="text/css"?>
 | |
| 
 | |
| 
 | |
| <!DOCTYPE dialog [
 | |
| <!ENTITY % setDesktopBackgroundDTD SYSTEM "chrome://browser/locale/setDesktopBackground.dtd">
 | |
| %setDesktopBackgroundDTD;
 | |
| #ifdef XP_MACOSX
 | |
| #include ../../../base/content/browser-doctype.inc
 | |
| #endif
 | |
| ]>
 | |
| 
 | |
| <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 | |
|         xmlns:html="http://www.w3.org/1999/xhtml"
 | |
|         windowtype="Shell:SetDesktopBackground"
 | |
| #ifndef XP_MACOSX
 | |
|         buttons="accept,cancel"
 | |
| #else
 | |
|         buttons="accept"
 | |
| #endif
 | |
|         buttonlabelaccept="&setDesktopBackground.title;"
 | |
|         onload="gSetBackground.load();"
 | |
|         ondialogaccept="gSetBackground.setDesktopBackground();"
 | |
|         title="&setDesktopBackground.title;"
 | |
|         style="width: 30em;">
 | |
| 
 | |
| #ifdef XP_MACOSX
 | |
| #include ../../../base/content/macWindow.inc.xul
 | |
| #endif
 | |
| 
 | |
|     <stringbundle id="backgroundBundle"
 | |
|                   src="chrome://browser/locale/shellservice.properties"/>
 | |
|     <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
 | |
|     <script type="application/javascript" src="chrome://browser/content/setDesktopBackground.js"/>
 | |
|     <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
 | |
| 
 | |
| #ifndef XP_MACOSX
 | |
|     <hbox align="center">
 | |
|       <label value="&position.label;"/>
 | |
|       <menulist id="menuPosition"
 | |
|                 label="&position.label;"
 | |
|                 oncommand="gSetBackground.updatePosition();">
 | |
|         <menupopup>
 | |
|           <menuitem label="¢er.label;"  value="CENTER"/>
 | |
|           <menuitem label="&tile.label;"    value="TILE"/>
 | |
|           <menuitem label="&stretch.label;" value="STRETCH"/>
 | |
|           <menuitem label="&fill.label;"    value="FILL" id="fillPosition"/>
 | |
|           <menuitem label="&fit.label;"     value="FIT"  id="fitPosition"/>
 | |
|         </menupopup>
 | |
|       </menulist>
 | |
|       <spacer flex="1"/>
 | |
|       <label value="&color.label;"/>
 | |
|       <html:input id="desktopColor"
 | |
|                   type="color"
 | |
|                   onchange="gSetBackground.updateColor(this.value);"/> 
 | |
|     </hbox>
 | |
| #endif
 | |
| 
 | |
|     <stack>
 | |
|       <!-- if width and height are not present, they default to 300x150 and stretch the stack -->
 | |
|       <html:canvas id="screen" width="1" height="1" role="presentation"/>
 | |
|       <image id="monitor"/>
 | |
|     </stack>
 | |
| 
 | |
| #ifdef XP_MACOSX
 | |
|     <separator/>
 | |
| 
 | |
|     <hbox align="right">
 | |
|       <button id="setDesktopBackground"
 | |
|               label="&setDesktopBackground.title;"
 | |
|               oncommand="gSetBackground.setDesktopBackground();"/>
 | |
|       <button id="showDesktopPreferences"
 | |
|               label="&openDesktopPrefs.label;"
 | |
|               oncommand="gSetBackground.showDesktopPrefs();"
 | |
|               hidden="true"/>
 | |
|     </hbox>
 | |
| #endif
 | |
| 
 | |
| </dialog>
 |