diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-16 10:22:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 10:22:24 -0500 |
commit | 8766744aa4a94193dd03bba39086e4522914e8ef (patch) | |
tree | bfb4a15e264c1fa4f9740bbd763a255e164a51e1 /ext/bg/data | |
parent | dc4d659184a61a55083e201438bff7732acece1b (diff) |
Popup window options (#1245)
* Add popupWindow options
* Add toBoolean converter
* Add settings
* Use new options
* Add test link
* Fix window state not working
* Make the window section advanced only
Diffstat (limited to 'ext/bg/data')
-rw-r--r-- | ext/bg/data/options-schema.json | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json index 405d62a9..def279cc 100644 --- a/ext/bg/data/options-schema.json +++ b/ext/bg/data/options-schema.json @@ -63,6 +63,7 @@ "type": "object", "required": [ "general", + "popupWindow", "audio", "scanning", "translation", @@ -288,6 +289,57 @@ } } }, + "popupWindow": { + "type": "object", + "required": [ + "width", + "height", + "left", + "top", + "useLeft", + "useTop", + "windowType", + "windowState" + ], + "properties": { + "width": { + "type": "integer", + "minimum": 0, + "default": 400 + }, + "height": { + "type": "integer", + "minimum": 0, + "default": 250 + }, + "left": { + "type": "integer", + "default": 0 + }, + "top": { + "type": "integer", + "default": 0 + }, + "useLeft": { + "type": "boolean", + "default": false + }, + "useTop": { + "type": "boolean", + "default": false + }, + "windowType": { + "type": "string", + "enum": ["normal", "popup"], + "default": "popup" + }, + "windowState": { + "type": "string", + "enum": ["normal", "maximized", "fullscreen"], + "default": "normal" + } + } + }, "audio": { "type": "object", "required": [ |