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
|
function mySettings(props) {
return (
<Page>
<Select
label="Theme"
settingsKey="theme"
options={[
{
name: "Classic Green",
value: {
background: "#002200",
foreground: "#00ff00"
}
},
{
name: "Classic Red",
value: {
background: "#220000",
foreground: "#ff0000"
}
},
{
name: "Classic Blue",
value: {
background: "#000022",
foreground: "#0000ff"
}
},
{
name: "Classic Yellow",
value: {
background: "#222200",
foreground: "#ffff00"
}
},
{
name: "Classic Pink",
value: {
background: "#220022",
foreground: "#ff00ff"
}
},
{
name: "Classic Cyan",
value: {
background: "#002222",
foreground: "#00ffff"
}
},
{
name: "I love Gold",
value: {
background: "#221100",
foreground: "#FF8C00"
}
},
{
name: "Black and White",
value: {
background: "#FFFFFF",
foreground: "#000000"
}
},
{
name: "White and Black",
value: {
background: "#000000",
foreground: "#FFFFFF"
}
}]
}
/>
</Page>
);
}
registerSettingsPage(mySettings);
|