-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
224 lines (224 loc) · 7.1 KB
/
Copy pathpackage.json
File metadata and controls
224 lines (224 loc) · 7.1 KB
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"name": "dath-vscode",
"displayName": "Dath — Color & Visual Comfort",
"description": "Your editor, tuned to your eyes. CVD correction, contrast comfort, rainbow brackets, font controls and profiles — as a layer over any theme.",
"version": "0.3.2",
"publisher": "RyanConnolly",
"license": "LicenseRef-PolyForm-Noncommercial-1.0.0",
"icon": "resources/dath-icon.png",
"repository": {
"type": "git",
"url": "https://github.com/ryanjames85/dath"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Themes",
"Other"
],
"keywords": [
"colorblind",
"colour blind",
"color blind",
"deuteranopia",
"protanopia",
"tritanopia",
"accessibility",
"visual comfort",
"rainbow brackets",
"contrast",
"dyslexia",
"CVD",
"color correction",
"color filter",
"font"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "dath.openPanel",
"title": "Dath: Open Panel"
},
{
"command": "dath.toggle",
"title": "Dath: Toggle On/Off"
},
{
"command": "dath.selectProfile",
"title": "Dath: Switch Profile"
},
{
"command": "dath.saveProfile",
"title": "Dath: Save Current Settings as Profile"
},
{
"command": "dath.openSettings",
"title": "Dath: Open Settings"
},
{
"command": "dath.runOnboarding",
"title": "Dath: Run Setup Wizard"
},
{
"command": "dath.exportProfiles",
"title": "Dath: Export Profiles to Clipboard"
},
{
"command": "dath.importProfiles",
"title": "Dath: Import Profiles from Clipboard"
},
{
"command": "dath.renameProfile",
"title": "Dath: Rename Profile"
},
{
"command": "dath.deleteProfile",
"title": "Dath: Delete Profile"
}
],
"keybindings": [
{
"command": "dath.openPanel",
"key": "ctrl+alt+d",
"mac": "cmd+alt+d"
}
],
"configuration": {
"title": "Dath",
"properties": {
"dath.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable Dath's colour corrections."
},
"dath.cvdMode": {
"type": "string",
"enum": ["none", "deuteranopia", "protanopia", "tritanopia", "achromatopsia", "custom1", "custom2", "custom3"],
"default": "none",
"description": "Correction mode. Select a standard preset or one of your custom-defined palettes."
},
"dath.cvdSeverity": {
"type": "number",
"default": 1.0,
"minimum": 0.1,
"maximum": 1.0,
"description": "Correction strength. Ignored for custom palettes."
},
"dath.contrastMode": {
"type": "string",
"enum": ["none", "soften", "warm", "cool", "dim"],
"default": "none",
"enumDescriptions": [
"No background adjustment",
"Soften pure white to a warm off-white — reduces snow blindness",
"Warm the background tone slightly",
"Cool the background tone slightly",
"Reduce overall brightness"
],
"description": "Background and contrast comfort adjustment."
},
"dath.contrastStrength": {
"type": "number",
"default": 0.5,
"minimum": 0.1,
"maximum": 1.0,
"description": "Strength of the contrast/background adjustment (0.1–1.0)."
},
"dath.rainbowBrackets": {
"type": "boolean",
"default": false,
"description": "Enable rainbow bracket colouring with CVD-safe palettes."
},
"dath.rainbowIndents": {
"type": "boolean",
"default": false,
"description": "Colour indent guides to match the active bracket palette. Automatically enables editor.guides.bracketPairs."
},
"dath.bracketShapeHints": {
"type": "boolean",
"default": false,
"description": "Add shape hints (underline) to bracket pairs so they are distinguishable without relying on colour alone."
},
"dath.fontOverride": {
"type": "string",
"default": "none",
"description": "Override the editor font. Use 'none' to disable, or enter any font name installed on your system. Suggested: OpenDyslexic, Atkinson Hyperlegible, Lexie Readable."
},
"dath.fontSizeOverride": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 32,
"description": "Override editor font size in px. 0 = use VS Code default."
},
"dath.lineHeightOverride": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 3,
"description": "Override editor line height. 0 = use VS Code default. Suggested range: 1.4–1.8 for improved readability."
},
"dath.letterSpacingOverride": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 5,
"description": "Override editor letter spacing in pixels. 0 = use VS Code default."
},
"dath.simulationMode": {
"type": "boolean",
"default": false,
"description": "Show how your theme looks to someone with the selected CVD type, instead of correcting it. Useful for theme authors and for demonstrating CVD to others."
},
"dath.warmthBias": {
"type": "number",
"default": 0,
"minimum": -1.0,
"maximum": 1.0,
"description": "Hue tint applied on top of all other corrections. Positive = warm, negative = cool. 0 = neutral."
},
"dath.activeProfile": {
"type": "string",
"default": "",
"description": "Name of the currently active saved profile. Managed by Dath — avoid editing directly."
},
"dath.customPalettes": {
"type": "object",
"default": {},
"description": "Storage for your custom defined color mappings (Custom 1, 2, 3)."
},
"dath.darkModeProfile": {
"type": "string",
"default": "",
"description": "Profile to auto-apply when VS Code switches to a dark colour theme. Leave blank to disable."
},
"dath.lightModeProfile": {
"type": "string",
"default": "",
"description": "Profile to auto-apply when VS Code switches to a light colour theme. Leave blank to disable."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^8.0.0",
"typescript": "^5.3.0",
"@vscode/vsce": "^2.22.0"
}
}