all repos — openbox @ aca8327244e0e1ebc4e367a57339ff2dc944782c

openbox fork - make it a bit more like ryudo

data/themerc.xsd (raw)

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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?xml version="1.0"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://openbox.org/4.0/themerc"
    xmlns:obt="http://openbox.org/4.0/themerc"
    elementFormDefault="qualified"
    version="1.0">

  <xs:annotation>
    <xs:documentation xml:lang="en">
      Openbox theme definition
      Version 1
      Copyright 2007 Dana Jansens
    </xs:documentation>
  </xs:annotation>

  <xs:element name="openbox_theme" type="obt:theme">
    <xs:annotation>
      <xs:documentation xml:lang="en">
        The root node
      </xs:documentation>
    </xs:annotation>
  </xs:element>

  <xs:complexType name="color">
    <xs:attribute name="r" type="xs:integer"/>
    <xs:attribute name="g" type="xs:integer"/>
    <xs:attribute name="b" type="xs:integer"/>
    <xs:attribute name="a" type="xs:integer"/>
  </xs:complexType>

  <xs:complexType name="point">
    <xs:attribute name="x" type="xs:integer"/>
    <xs:attribute name="y" type="xs:integer"/>
  </xs:complexType>

  <xs:simpleType name="justify">
    <xs:restriction base="xs:string">
      <xs:enumeration value="left"/>
      <xs:enumeration value="right"/>
      <xs:enumeration value="center"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:complexType name="shadow">
    <xs:all>
      <xs:element name="offset" type="obt:point" minOccurs="0"/>
      <xs:element name="primary" type="obt:color" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="text">
    <xs:all>
      <xs:element name="primary" type="obt:color" minOccurs="0"/>
      <xs:element name="shadow" type="obt:shadow" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="textarea">
    <xs:all>
      <xs:element name="style" type="xs:string" minOccurs="0"/>
      <xs:element name="primary" type="obt:color" minOccurs="0"/>
      <xs:element name="secondary" type="obt:color" minOccurs="0"/>
      <xs:element name="interlace" type="obt:color" minOccurs="0"/>
      <xs:element name="border" type="obt:color" minOccurs="0"/>
      <xs:element name="text" type="obt:text" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="area">
    <xs:all>
      <xs:element name="style" type="xs:string" minOccurs="0"/>
      <xs:element name="primary" type="obt:color" minOccurs="0"/>
      <xs:element name="secondary" type="obt:color" minOccurs="0"/>
      <xs:element name="interlace" type="obt:color" minOccurs="0"/>
      <xs:element name="border" type="obt:color" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="buttonarea">
    <xs:all>
      <xs:element name="style" type="xs:string" minOccurs="0"/>
      <xs:element name="primary" type="obt:color" minOccurs="0"/>
      <xs:element name="secondary" type="obt:color" minOccurs="0"/>
      <xs:element name="interlace" type="obt:color" minOccurs="0"/>
      <xs:element name="border" type="obt:color" minOccurs="0"/> 
      <xs:element name="image" type="obt:color" minOccurs="0"/>
   </xs:all>
  </xs:complexType>

  <xs:complexType name="allmenus">
    <xs:all>
      <xs:element name="border" type="obt:color" minOccurs="0"/>
      <xs:element name="overlap" type="xs:integer" minOccurs="0"/>
      <xs:element name="justify" type="obt:justify" minOccurs="0"/>
      <xs:element name="title" type="obt:textarea" minOccurs="0"/>
      <xs:element name="entries" type="obt:area" minOccurs="0"/>
      <xs:element name="inactive" type="obt:text" minOccurs="0"/>
      <xs:element name="active" type="obt:textarea" minOccurs="0"/>
      <xs:element name="disabled" type="obt:text" minOccurs="0"/>
      <xs:element name="activedisabled" type="obt:textarea" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="allbuttons">
    <xs:all>
      <xs:element name="unpressed" type="obt:buttonarea" minOccurs="0"/>
      <xs:element name="pressed" type="obt:buttonarea" minOccurs="0"/>
      <xs:element name="hover" type="obt:buttonarea" minOccurs="0"/>
      <xs:element name="disabled" type="obt:buttonarea" minOccurs="0"/>
      <xs:element name="toggled-unpressed" type="obt:buttonarea" minOccurs="0"/>
      <xs:element name="toggled-pressed" type="obt:buttonarea" minOccurs="0"/>
      <xs:element name="toggled-hover" type="obt:buttonarea" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="window">
    <xs:all>
      <xs:element name="border" type="obt:color" minOccurs="0"/>
      <xs:element name="titleseparator" type="obt:color" minOccurs="0"/>
      <xs:element name="clientpadding" type="obt:color" minOccurs="0"/>
      <xs:element name="titlebar" type="obt:area" minOccurs="0"/>
      <xs:element name="label" type="obt:textarea" minOccurs="0"/>
      <xs:element name="handle" type="obt:area" minOccurs="0"/>
      <xs:element name="grip" type="obt:area" minOccurs="0"/>
      <xs:element name="buttons" type="obt:allbuttons" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="allwindows">
    <xs:all>
      <xs:element name="justify" type="obt:justify" minOccurs="0"/>
      <xs:element name="inactive" type="obt:window" minOccurs="0"/>
      <xs:element name="active" type="obt:window" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="allosd">
    <xs:all>
      <xs:element name="label" type="obt:textarea" minOccurs="0"/>
      <xs:element name="background" type="obt:area" minOccurs="0"/>
      <xs:element name="hilight" type="obt:area" minOccurs="0"/>
      <xs:element name="unhilight" type="obt:area" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="windowDimensions">
    <xs:all>
      <xs:element name="borderwidth" type="xs:integer" minOccurs="0"/>
      <xs:element name="clientpadding" type="obt:point" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="menuDimensions">
    <xs:all>
      <xs:element name="borderwidth" type="xs:integer" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="themeDimensions">
    <xs:all>
      <xs:element name="padding" type="obt:point" minOccurs="0"/>
      <xs:element name="handle" type="xs:integer" minOccurs="0"/>
      <xs:element name="window" type="obt:windowDimensions" minOccurs="0"/>
      <xs:element name="menu" type="obt:menuDimensions" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="about">
    <xs:all>
      <xs:element name="author" type="xs:string" minOccurs="0"/>
      <xs:element name="email" type="xs:string" minOccurs="0"/>
      <xs:element name="webpage" type="xs:string" minOccurs="0"/>
      <xs:element name="comment" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="theme">
    <xs:all>
      <xs:element name="about" type="obt:about" minOccurs="0"/>
      <xs:element name="dimensions" type="obt:themeDimensions" minOccurs="0"/>
      <xs:element name="osd" type="obt:allosd" minOccurs="0"/>
      <xs:element name="menu" type="obt:allmenus" minOccurs="0"/>
      <xs:element name="window" type="obt:allwindows" minOccurs="0"/>
    </xs:all>
    <xs:attribute name="version" type="xs:integer" use="required" fixed="1"/>
    <xs:attribute name="engine" type="xs:string" use="required" fixed="box"/>
  </xs:complexType>
</xs:schema>