forked from monocursive/linux-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
141 lines (132 loc) · 4.38 KB
/
constants.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
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
import os
from .enums import (DashboardKillSwitchIconEnum, DashboardNetshieldIconEnum,
DashboardSecureCoreIconEnum)
APP_VERSION = "1.10.0"
ABSOLUTE_DIR_PATH = os.path.dirname(os.path.abspath(__file__))
ASSETS_DIR_PATH = os.path.join(ABSOLUTE_DIR_PATH, "assets")
UI_DIR_PATH = os.path.join(ASSETS_DIR_PATH, "ui")
CSS_DIR_PATH = os.path.join(ASSETS_DIR_PATH, "css")
ICON_DIR_PATH = os.path.join(ASSETS_DIR_PATH, "icons")
IMG_DIR_PATH = os.path.join(ASSETS_DIR_PATH, "img")
FLAGS_DIR_PATH = os.path.join(IMG_DIR_PATH, "flags")
LOGGER_NAME = "protonvpn-gui"
protonvpn_logo = "protonvpn-logo.png"
VPN_TRAY_ON = "vpn-connected.svg"
VPN_TRAY_OFF = "vpn-disconnected.svg"
VPN_TRAY_ERROR = "vpn-no-network.svg"
KILLSWITCH_ICON_SET = {
DashboardKillSwitchIconEnum.OFF:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-off.svg"
),
DashboardKillSwitchIconEnum.OFF_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-off-active.svg"
),
DashboardKillSwitchIconEnum.ON_DEFAULT:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-on-default.svg"
),
DashboardKillSwitchIconEnum.ALWAYS_ON_DEFAULT:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-always-on-default.svg"
),
DashboardKillSwitchIconEnum.ON_DISABLE:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-on-disable.svg"
),
DashboardKillSwitchIconEnum.ALWAYS_ON_DISABLE:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-always-on-disable.svg"
),
DashboardKillSwitchIconEnum.ON_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-on-active.svg"
),
DashboardKillSwitchIconEnum.ALWAYS_ON_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"kill-switch.imageset/killswitch-always-on-active.svg"
),
}
NETSHIELD_ICON_SET = {
DashboardNetshieldIconEnum.OFF:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-off.svg"
),
DashboardNetshieldIconEnum.OFF_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-off-active.svg"
),
DashboardNetshieldIconEnum.MALWARE_DEFAULT:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-malware-default.svg"
),
DashboardNetshieldIconEnum.MALWARE_ADS_DEFAULT:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-malware-ad-default.svg"
),
DashboardNetshieldIconEnum.MALWARE_DISABLE:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-malware-disable.svg"
),
DashboardNetshieldIconEnum.MALWARE_ADS_DISABLE:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-malware-ad-disable.svg"
),
DashboardNetshieldIconEnum.MALWARE_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-malware-active.svg"
),
DashboardNetshieldIconEnum.MALWARE_ADS_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"netshield.imageset/netshield-malware-ad-active.svg"
),
}
SECURE_CORE_ICON_SET = {
DashboardSecureCoreIconEnum.OFF:
os.path.join(
ICON_DIR_PATH,
"secure-core.imageset/secure-core-off.svg"
),
DashboardSecureCoreIconEnum.OFF_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"secure-core.imageset/secure-core-off-active.svg"
),
DashboardSecureCoreIconEnum.ON_DEFAULT:
os.path.join(
ICON_DIR_PATH,
"secure-core.imageset/secure-core-on-default.svg"
),
DashboardSecureCoreIconEnum.ON_DISABLE:
os.path.join(
ICON_DIR_PATH,
"secure-core.imageset/secure-core-on-disable.svg"
),
DashboardSecureCoreIconEnum.ON_ACTIVE:
os.path.join(
ICON_DIR_PATH,
"secure-core.imageset/secure-core-on-active.svg"
),
DashboardSecureCoreIconEnum.CHEVRON:
os.path.join(
ICON_DIR_PATH,
"secure-core.imageset/secure-core-chevrons-active.svg"
)
}