Skip to content

Commit 915211a

Browse files
committed
Debug mode
1 parent f60c7a8 commit 915211a

File tree

7 files changed

+448
-30
lines changed

7 files changed

+448
-30
lines changed

README.RU.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
2. Измените название, параметры окна, UserAgent, ссылку и так далее, прокси, в конфигурационном файле `Config.ini`.
1515
3. Измените иконку, с помощью [Resource Hacker](http://www.angusj.com/resourcehacker/).
1616

17+
## Режим отладки
18+
Для быстрой отладки можно включить специальный режим, в котором доступно: изменение размеров, изменение User agent, очистка всех данных. Для включения измените параметр `Debug` на `1`.
19+
[![](https://github.com/user-attachments/assets/cae19d08-4951-44bf-8278-2edcf076eb75)](https://github.com/user-attachments/assets/5d2eafc3-2825-48c3-bc82-718ca471549d)
20+
1721
## Загрузка
1822
>Версия для Windows 10, 11.<br>
1923

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
← Choose language | Выберите язык
44

55
# ProtonShell
6-
Lightweight shell for websites, simple web applications, built on the Microsoft Edge system browser. Based on it you can make a separate window for Google Docs, ChatGPT, Twitch chat, Instagram client for PC, with js userscript or some web application in its own window.
6+
Lightweight shell for websites, simple web applications, built on the Microsoft Edge system browser. Based on it you can make a self window for Google Docs, ChatGPT, Twitch chat, Instagram client for PC, with js userscript or some web application in its own window.
77

88
## Screenshots
99
![](https://github.com/user-attachments/assets/902b2e58-664d-460f-abfd-37de3c8c920b)
@@ -16,6 +16,10 @@ Lightweight shell for websites, simple web applications, built on the Microsoft
1616
2. Change the name, window parameters, UserAgent, link and so on, proxy, in the `Config.ini` configuration file.
1717
3. Change the icon with [Resource Hacker](http://www.angusj.com/resourcehacker/).
1818

19+
## Debug mode
20+
For fast debugging you can enable a special mode in which the following is available: resizing, changing User agent, clearing all data. To enable it, change the `Debug` parameter to `1`.
21+
[![](https://github.com/user-attachments/assets/c71837e8-9097-438f-8e15-93efc42b65d3)](https://github.com/user-attachments/assets/e2e88215-3e52-46dd-b24a-42eb6bfdc3e7)
22+
1923
## Download
2024
>Version for Windows 10, 11.<br>
2125

Source/Config.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ UserScript=
1212
SystemProxy=
1313
# Return to previous system proxy after closing the app (if you use proxy), 1 - on, 0 - off
1414
ReturnPreviousProxy=0
15+
# Debug menu, 1 - on, 0 - off
16+
Debug=0
1517

1618
[Window]
1719
Title=Test App
1820
IconPath=
19-
Width=720
21+
Width=640
2022
Height=480
2123
SaveSize=0
2224

Source/DevicesList.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Default (640x480)
2+
Galaxy S4 (1080x1920)
3+
Galaxy S20/S21 (1440x3200)
4+
Galaxy Note 10/20 (1440x3040)
5+
Pixel 4/5 (1080x2280)
6+
Pixel 6/7 (1080x2400)
7+
OnePlus 8/9 (1080x2400)
8+
iPhone 5/5S/SE (320x568)
9+
iPhone 6/6S/7/8 (750x1334)
10+
iPhone X/XS/11 Pro (1125x2436)
11+
iPhone 11/11 Pro Max/12/12 Pro (1284x2778)
12+
iPad 1/2 (768x1024)
13+
iPad Mini (768x1024)
14+
iPad Pro 11 (834x1194)
15+
iPad Pro 12.9 (1648x2368)

Source/Unit1.dfm

Lines changed: 178 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,193 @@ object Main: TMain
1414
OnClose = FormClose
1515
OnCreate = FormCreate
1616
OnDestroy = FormDestroy
17+
OnResize = FormResize
1718
TextHeight = 13
1819
object EdgeBrowser: TEdgeBrowser
1920
Left = 0
20-
Top = 0
21+
Top = 113
2122
Width = 640
22-
Height = 480
23+
Height = 367
2324
Align = alClient
2425
TabOrder = 0
2526
UserDataFolder = '%LOCALAPPDATA%\bds.exe.WebView2'
2627
OnCreateWebViewCompleted = EdgeBrowserCreateWebViewCompleted
2728
OnNavigationCompleted = EdgeBrowserNavigationCompleted
2829
OnNewWindowRequested = EdgeBrowserNewWindowRequested
29-
ExplicitWidth = 624
30-
ExplicitHeight = 476
30+
ExplicitTop = 0
31+
ExplicitWidth = 636
32+
ExplicitHeight = 479
33+
end
34+
object DebugPanel: TPanel
35+
Left = 0
36+
Top = 0
37+
Width = 640
38+
Height = 113
39+
Align = alTop
40+
TabOrder = 1
41+
Visible = False
42+
object ResolutionLbl: TLabel
43+
Left = 9
44+
Top = 93
45+
Width = 75
46+
Height = 13
47+
Caption = 'Resolution: 0x0'
48+
end
49+
object LeftBtn: TButton
50+
Left = 7
51+
Top = 7
52+
Width = 25
53+
Height = 25
54+
Caption = #8592
55+
Font.Charset = DEFAULT_CHARSET
56+
Font.Color = clWindowText
57+
Font.Height = -11
58+
Font.Name = 'Tahoma'
59+
Font.Style = []
60+
ParentFont = False
61+
TabOrder = 0
62+
OnClick = LeftBtnClick
63+
end
64+
object RightBtn: TButton
65+
Left = 37
66+
Top = 7
67+
Width = 25
68+
Height = 25
69+
Caption = #8594
70+
Font.Charset = DEFAULT_CHARSET
71+
Font.Color = clWindowText
72+
Font.Height = -11
73+
Font.Name = 'Tahoma'
74+
Font.Style = []
75+
ParentFont = False
76+
TabOrder = 1
77+
OnClick = RightBtnClick
78+
end
79+
object RefreshBtn: TButton
80+
Left = 67
81+
Top = 7
82+
Width = 25
83+
Height = 25
84+
Caption = #8635
85+
Font.Charset = DEFAULT_CHARSET
86+
Font.Color = clWindowText
87+
Font.Height = -11
88+
Font.Name = 'Tahoma'
89+
Font.Style = []
90+
ParentFont = False
91+
TabOrder = 2
92+
OnClick = RefreshBtnClick
93+
end
94+
object ClearBtn: TButton
95+
Left = 127
96+
Top = 7
97+
Width = 25
98+
Height = 25
99+
Caption = #55357#56785#65039
100+
Font.Charset = DEFAULT_CHARSET
101+
Font.Color = clWindowText
102+
Font.Height = -11
103+
Font.Name = 'Tahoma'
104+
Font.Style = []
105+
ParentFont = False
106+
ParentShowHint = False
107+
ShowHint = True
108+
TabOrder = 4
109+
OnClick = ClearBtnClick
110+
end
111+
object HomeBtn: TButton
112+
Left = 97
113+
Top = 7
114+
Width = 25
115+
Height = 25
116+
Caption = #55356#57312
117+
Font.Charset = DEFAULT_CHARSET
118+
Font.Color = clWindowText
119+
Font.Height = -11
120+
Font.Name = 'Tahoma'
121+
Font.Style = []
122+
ParentFont = False
123+
ParentShowHint = False
124+
ShowHint = False
125+
TabOrder = 3
126+
OnClick = HomeBtnClick
127+
end
128+
object DevicesCB: TComboBox
129+
Left = 8
130+
Top = 38
131+
Width = 212
132+
Height = 21
133+
Style = csDropDownList
134+
ParentShowHint = False
135+
ShowHint = True
136+
TabOrder = 5
137+
OnChange = DevicesCBChange
138+
end
139+
object SetDeviceBtn: TButton
140+
Left = 226
141+
Top = 7
142+
Width = 25
143+
Height = 25
144+
Caption = #55357#56561
145+
Font.Charset = DEFAULT_CHARSET
146+
Font.Color = clWindowText
147+
Font.Height = -11
148+
Font.Name = 'Tahoma'
149+
Font.Style = []
150+
ParentFont = False
151+
ParentShowHint = False
152+
ShowHint = True
153+
TabOrder = 6
154+
OnClick = SetDeviceBtnClick
155+
end
156+
object RotateDeviceBtn: TButton
157+
Left = 256
158+
Top = 7
159+
Width = 25
160+
Height = 25
161+
Caption = #8634
162+
ParentShowHint = False
163+
ShowHint = True
164+
TabOrder = 7
165+
OnClick = RotateDeviceBtnClick
166+
end
167+
object UserAgentsCB: TComboBox
168+
Left = 8
169+
Top = 66
170+
Width = 272
171+
Height = 21
172+
Style = csDropDownList
173+
ItemIndex = 0
174+
ParentShowHint = False
175+
ShowHint = True
176+
TabOrder = 8
177+
Text = 'Default User Agent'
178+
OnChange = UserAgentsCBChange
179+
Items.Strings = (
180+
'Default User Agent')
181+
end
182+
object ZoomCB: TComboBox
183+
Left = 227
184+
Top = 38
185+
Width = 53
186+
Height = 21
187+
Style = csDropDownList
188+
ItemIndex = 7
189+
TabOrder = 9
190+
Text = '100%'
191+
Items.Strings = (
192+
'30%'
193+
'40%'
194+
'50%'
195+
'60%'
196+
'70%'
197+
'80%'
198+
'90%'
199+
'100%'
200+
'125%'
201+
'150%'
202+
'175%'
203+
'200%')
204+
end
31205
end
32206
end

0 commit comments

Comments
 (0)