summaryrefslogtreecommitdiffstats
path: root/components/preferences/colors.xul
blob: f2109aed7207b44199ac68aba8a6f6120a4557ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0"?>

# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# 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"?>
#ifdef XP_MACOSX
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
#endif

<!DOCTYPE prefwindow SYSTEM "chrome://browser/locale/preferences/colors.dtd" >

<prefwindow id="ColorsDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            title="&colorsDialog.title;"
            dlgbuttons="accept,cancel,help"
            ondialoghelp="openPrefsHelp()"
#ifdef XP_MACOSX
            style="width: &window.macWidth; !important;">
#else
            style="width: &window.width; !important;">
#endif

  <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
  <prefpane id="ColorsDialogPane"
            helpTopic="prefs-fonts-and-colors">
  
    <preferences>
      <preference id="browser.display.document_color_use"   name="browser.display.document_color_use"   type="int"/>
      <preference id="browser.anchor_color"                 name="browser.anchor_color"                 type="string"/>
      <preference id="browser.visited_color"                name="browser.visited_color"                type="string"/>
      <preference id="browser.underline_anchors"            name="browser.underline_anchors"            type="bool"/>
      <preference id="browser.display.foreground_color"     name="browser.display.foreground_color"     type="string"/>
      <preference id="browser.display.background_color"     name="browser.display.background_color"     type="string"/>
      <preference id="browser.display.use_system_colors"    name="browser.display.use_system_colors"    type="bool"/>
    </preferences>
    
    <hbox>
      <groupbox flex="1">
        <caption label="&color;"/>
        <hbox align="center">
          <label value="&textColor.label;" accesskey="&textColor.accesskey;" control="foregroundtextmenu"/>
          <spacer flex="1"/>
          <colorpicker type="button" id="foregroundtextmenu" palettename="standard"
                       preference="browser.display.foreground_color"/>
        </hbox>
        <hbox align="center" style="margin-top: 5px">
          <label value="&backgroundColor.label;" accesskey="&backgroundColor.accesskey;" control="backgroundmenu"/>
          <spacer flex="1"/>
          <colorpicker type="button" id="backgroundmenu" palettename="standard"
                       preference="browser.display.background_color"/>
        </hbox>
        <separator class="thin"/>
        <hbox align="center">
          <checkbox id="browserUseSystemColors" label="&useSystemColors.label;" accesskey="&useSystemColors.accesskey;"
                    preference="browser.display.use_system_colors"/>
        </hbox>
      </groupbox>
        
      <groupbox flex="1">
        <caption label="&links;"/>
        <hbox align="center">
          <label value="&linkColor.label;" accesskey="&linkColor.accesskey;" control="unvisitedlinkmenu"/>
          <spacer flex="1"/>
          <colorpicker type="button" id="unvisitedlinkmenu" palettename="standard"
                       preference="browser.anchor_color"/>
        </hbox>
        <hbox align="center" style="margin-top: 5px">
          <label value="&visitedLinkColor.label;" accesskey="&visitedLinkColor.accesskey;" control="visitedlinkmenu"/>
          <spacer flex="1"/>
          <colorpicker type="button" id="visitedlinkmenu" palettename="standard"
                       preference="browser.visited_color"/>
        </hbox>
        <separator class="thin"/>
        <hbox align="center">
          <checkbox id="browserUnderlineAnchors" label="&underlineLinks.label;" accesskey="&underlineLinks.accesskey;"
                    preference="browser.underline_anchors"/>
        </hbox>
      </groupbox>
    </hbox>
#ifdef XP_WIN
    <vbox align="start">
#else
    <vbox>
#endif
      <label accesskey="&overridePageColors.accesskey;"
             control="useDocumentColors">&overridePageColors.label;</label>
      <menulist id="useDocumentColors" preference="browser.display.document_color_use">
        <menupopup>
          <menuitem label="&overridePageColors.always.label;"
                    value="2" id="documentColorAlways"/>
          <menuitem label="&overridePageColors.auto.label;"
                    value="0" id="documentColorAutomatic"/>
          <menuitem label="&overridePageColors.never.label;"
                    value="1" id="documentColorNever"/>
        </menupopup>
      </menulist>
    </vbox>
  </prefpane>
</prefwindow>