@@ -131,51 +131,44 @@ const schema: Schema<SettingsSchema> = {
131131 properties : {
132132 lastWallpaper : {
133133 type : "object" ,
134- patternProperties : {
135- ".*" : {
134+ properties : {
135+ type : { type : "string" , enum : [ "image" , "video" , "wallpaper-engine" ] } ,
136+ id : { type : "string" , minLength : 1 } ,
137+ name : { type : "string" , minLength : 1 } ,
138+ applyPath : { type : "string" , minLength : 1 } ,
139+ monitors : {
140+ type : "array" ,
141+ minItems : 1 ,
142+ items : {
143+ type : "object" ,
144+ properties : {
145+ id : { type : "string" , minLength : 1 } ,
146+ scalingMethod : { type : "string" } ,
147+ } ,
148+ required : [ "id" ] ,
149+ } ,
150+ } ,
151+ wallpaperEngineOptions : {
136152 type : "object" ,
137153 properties : {
138- type : { type : "string" , enum : [ "image" , "video" , "wallpaper-engine" ] } ,
139- id : { type : "string" , minLength : 1 } ,
140- name : { type : "string" , minLength : 1 } ,
141- applyPath : { type : "string" , minLength : 1 } ,
142- monitors : {
143- type : "array" ,
144- minItems : 1 ,
145- items : {
146- type : "object" ,
147- properties : {
148- id : { type : "string" , minLength : 1 } ,
149- scalingMethod : { type : "string" } ,
150- } ,
151- required : [ "id" ] ,
152- } ,
153- } ,
154- wallpaperEngineOptions : {
155- type : "object" ,
156- properties : {
157- silent : { type : "boolean" } ,
158- volume : { type : "number" , minimum : 0 , maximum : 100 } ,
159- noAutomute : { type : "boolean" } ,
160- noAudioProcessing : { type : "boolean" } ,
161- fps : { type : "number" , minimum : 1 , maximum : 200 } ,
162- clamping : { type : "string" , enum : [ "clamp" , "border" , "repeat" ] } ,
163- disableMouse : { type : "boolean" } ,
164- disableParallax : { type : "boolean" } ,
165- noFullscreenPause : { type : "boolean" } ,
166- } ,
167- } ,
168- videoOptions : {
169- type : "object" ,
170- properties : {
171- mute : { type : "boolean" } ,
172- } ,
173- } ,
154+ silent : { type : "boolean" } ,
155+ volume : { type : "number" , minimum : 0 , maximum : 100 } ,
156+ noAutomute : { type : "boolean" } ,
157+ noAudioProcessing : { type : "boolean" } ,
158+ fps : { type : "number" , minimum : 1 , maximum : 200 } ,
159+ clamping : { type : "string" , enum : [ "clamp" , "border" , "repeat" ] } ,
160+ disableMouse : { type : "boolean" } ,
161+ disableParallax : { type : "boolean" } ,
162+ noFullscreenPause : { type : "boolean" } ,
163+ } ,
164+ } ,
165+ videoOptions : {
166+ type : "object" ,
167+ properties : {
168+ mute : { type : "boolean" } ,
174169 } ,
175- required : [ "type" , "id" , "name" , "path" , "monitors" ] ,
176170 } ,
177171 } ,
178- additionalProperties : false ,
179172 default : { } ,
180173 } ,
181174 } ,
0 commit comments