Skip to content

Commit 5dfd200

Browse files
committed
Add schema
1 parent 6aae635 commit 5dfd200

File tree

1 file changed

+148
-0
lines changed

1 file changed

+148
-0
lines changed

settings.schema.json

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema#",
3+
"title": "TranslucentTB Settings Schema",
4+
"$defs": {
5+
"TaskbarAppearance": {
6+
"properties": {
7+
"accent": {
8+
"enum": [
9+
"normal",
10+
"opaque",
11+
"clear",
12+
"blur",
13+
"acrylic"
14+
],
15+
"type": "string"
16+
},
17+
"color": {
18+
"pattern": "^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$",
19+
"type": "string",
20+
"format": "color"
21+
},
22+
"show_peek": {
23+
"type": "boolean"
24+
},
25+
"show_line": {
26+
"type": "boolean"
27+
}
28+
},
29+
"type": "object"
30+
},
31+
"OptionalTaskbarAppearance": {
32+
"allOf": [
33+
{
34+
"properties": {
35+
"enabled": {
36+
"type": "boolean"
37+
}
38+
},
39+
"type": "object"
40+
},
41+
{
42+
"$ref": "#/$defs/TaskbarAppearance"
43+
}
44+
]
45+
},
46+
"RuleSet": {
47+
"type": "object",
48+
"additionalProperties": {
49+
"$ref": "#/$defs/TaskbarAppearance"
50+
}
51+
},
52+
"RuledTaskbarAppearance": {
53+
"allOf": [
54+
{
55+
"properties": {
56+
"rules": {
57+
"properties" : {
58+
"window_class": {
59+
"$ref": "#/$defs/RuleSet"
60+
},
61+
"window_title": {
62+
"$ref": "#/$defs/RuleSet"
63+
},
64+
"process_name": {
65+
"$ref": "#/$defs/RuleSet"
66+
}
67+
}
68+
}
69+
},
70+
"type": "object"
71+
},
72+
{
73+
"$ref": "#/$defs/OptionalTaskbarAppearance"
74+
}
75+
]
76+
},
77+
"FilterSet": {
78+
"items": {
79+
"type": "string"
80+
},
81+
"uniqueItems": true,
82+
"type": "array"
83+
}
84+
},
85+
"properties": {
86+
"desktop_appearance": {
87+
"$ref": "#/$defs/TaskbarAppearance"
88+
},
89+
"visible_window_appearance": {
90+
"$ref": "#/$defs/RuledTaskbarAppearance"
91+
},
92+
"maximized_window_appearance": {
93+
"$ref": "#/$defs/RuledTaskbarAppearance"
94+
},
95+
"start_opened_appearance": {
96+
"$ref": "#/$defs/OptionalTaskbarAppearance"
97+
},
98+
"search_opened_appearance": {
99+
"$ref": "#/$defs/OptionalTaskbarAppearance"
100+
},
101+
"task_view_opened_appearance": {
102+
"$ref": "#/$defs/OptionalTaskbarAppearance"
103+
},
104+
"battery_saver_appearance": {
105+
"$ref": "#/$defs/OptionalTaskbarAppearance"
106+
},
107+
"ignored_windows": {
108+
"properties": {
109+
"window_class": {
110+
"$ref": "#/$defs/FilterSet"
111+
},
112+
"window_title": {
113+
"$ref": "#/$defs/FilterSet"
114+
},
115+
"process_name": {
116+
"$ref": "#/$defs/FilterSet"
117+
}
118+
},
119+
"type": "object"
120+
},
121+
"hide_tray": {
122+
"type": "boolean"
123+
},
124+
"disable_saving": {
125+
"type": "boolean"
126+
},
127+
"verbosity": {
128+
"enum": [
129+
"trace",
130+
"debug",
131+
"info",
132+
"warn",
133+
"err",
134+
"critical",
135+
"off"
136+
],
137+
"type": "string"
138+
},
139+
"language": {
140+
"pattern": "^[a-z]{2}(-[A-Z]{2})?$",
141+
"type": "string"
142+
},
143+
"use_xaml_context_menu": {
144+
"type": "boolean"
145+
}
146+
},
147+
"type": "object"
148+
}

0 commit comments

Comments
 (0)