browser/components/shell/content/setDesktopBackground.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 
     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/.
     7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
     8 <?xml-stylesheet href="chrome://browser/skin/setDesktopBackground.css" type="text/css"?>
    10 <!DOCTYPE dialog SYSTEM "chrome://browser/locale/setDesktopBackground.dtd">
    12 #ifdef XP_MACOSX
    13 <?xul-overlay href="chrome://browser/content/macBrowserOverlay.xul"?>
    14 #endif
    16 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    17         xmlns:html="http://www.w3.org/1999/xhtml"
    18         windowtype="Shell:SetDesktopBackground"
    19 #ifndef XP_MACOSX
    20         buttons="accept,cancel"
    21 #else
    22         buttons="accept"
    23 #endif
    24         buttonlabelaccept="&setDesktopBackground.title;"
    25         onload="gSetBackground.load();"
    26         ondialogaccept="gSetBackground.setDesktopBackground();"
    27         title="&setDesktopBackground.title;"
    28         style="width: 30em;">
    30     <stringbundle id="backgroundBundle"
    31                   src="chrome://browser/locale/shellservice.properties"/>
    32     <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
    33     <script type="application/javascript" src="chrome://browser/content/setDesktopBackground.js"/>
    34     <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
    36 #ifndef XP_MACOSX
    37     <hbox align="center">
    38       <label value="&position.label;"/>
    39       <menulist id="menuPosition"
    40                 label="&position.label;" 
    41                 oncommand="gSetBackground.updatePosition();">
    42         <menupopup>
    43           <menuitem label="&center.label;"  value="CENTER"/>
    44           <menuitem label="&tile.label;"    value="TILE"/>
    45           <menuitem label="&stretch.label;" value="STRETCH"/>
    46           <menuitem label="&fill.label;"    value="FILL" id="fillPosition"/>
    47           <menuitem label="&fit.label;"     value="FIT"  id="fitPosition"/>
    48         </menupopup>
    49       </menulist>
    50       <spacer flex="1"/>
    51       <label value="&color.label;"/>
    52       <colorpicker id="desktopColor"
    53                    type="button" 
    54                    onchange="gSetBackground.updateColor(this.color);"/> 
    55     </hbox>
    56 #endif
    57     <groupbox align="center">
    58       <caption label="&preview.label;"/>
    59       <stack>
    60         <!-- if width and height are not present, they default to 300x150 and stretch the stack -->
    61         <html:canvas id="screen" width="1" height="1"/>
    62         <image id="monitor"/>
    63       </stack>
    64     </groupbox>
    66 #ifdef XP_MACOSX
    67     <separator/>
    69     <hbox align="right">
    70       <button id="setDesktopBackground"
    71               label="&setDesktopBackground.title;" 
    72               oncommand="gSetBackground.setDesktopBackground();"/>
    73       <button id="showDesktopPreferences"
    74               label="&openDesktopPrefs.label;"
    75               oncommand="gSetBackground.showDesktopPrefs();"
    76               hidden="true"/>
    77     </hbox>
    78 #endif
    80 #ifdef XP_MACOSX
    81 #include ../../../base/content/browserMountPoints.inc
    82 #endif
    84 </dialog>

mercurial