This repository was archived by the owner on Sep 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathSettings.py
71 lines (69 loc) · 2.35 KB
/
Settings.py
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
#### Jade Application Kit
# * https://codesardine.github.io/Jade-Application-Kit
# * Vitor Lopes Copyright (c) 2016 - 2020
# * https://vitorlopes.me
from JAK.Utils import bindings
if bindings() == "PyQt5":
from PyQt5.QtCore import Qt
from PyQt5.QtWebEngineWidgets import QWebEngineSettings
else:
from PySide2.QtCore import Qt
from PySide2.QtWebEngineWidgets import QWebEngineSettings
def config():
return {
"debug": False,
"remote-debug": False,
"setAAttribute": (),
"disableGPU": False,
"window": {
"title": "Jade Application Kit",
"icon": None,
"backgroundImage": None,
"setFlags": Qt.Window,
"setAttribute": (),
"state": None,
"fullScreen": False,
"transparent": False,
"toolbar": None,
"menus": None,
"SystemTrayIcon": False,
"showHelpMenu": False,
},
"webview": {
"webContents": "https://codesardine.github.io/Jade-Application-Kit",
"online": False,
"urlRules": None,
"cookiesPath": None,
"userAgent": None,
"addCSS": None,
"runJavaScript": None,
"IPC": True,
"MediaAudioVideoCapture": False,
"MediaVideoCapture": False,
"MediaAudioCapture": False,
"Geolocation": False,
"MouseLock": False,
"DesktopVideoCapture": False,
"DesktopAudioVideoCapture": False,
"injectJavaScript": {
"JavaScript": None,
"name": "Application Script"
},
"webChannel": {
"active": False,
"sharedOBJ": None
},
"enabledSettings": (
QWebEngineSettings.JavascriptCanPaste,
QWebEngineSettings.FullScreenSupportEnabled,
QWebEngineSettings.AllowWindowActivationFromJavaScript,
QWebEngineSettings.LocalContentCanAccessRemoteUrls,
QWebEngineSettings.JavascriptCanAccessClipboard,
QWebEngineSettings.SpatialNavigationEnabled,
QWebEngineSettings.TouchIconsEnabled
),
"disabledSettings": (
QWebEngineSettings.PlaybackRequiresUserGesture
)
}
}