Живой статус в трее: кружок состояния, уведомления о падении и пинг до DC#829
Open
f4rceful wants to merge 5 commits into
Open
Живой статус в трее: кружок состояния, уведомления о падении и пинг до DC#829f4rceful wants to merge 5 commits into
f4rceful wants to merge 5 commits into
Conversation
a7c37f4 to
868ee8c
Compare
- add add_status_dot() to overlay colored dot on base icon at 256px - add _load_dot_image() with PNG support from assets/ folder - add ProxyStatus enum (STOPPED/IDLE/ACTIVE) - add StatusManager with 2s debounce for icon updates - add is_proxy_running() helper - add assets/ folder for custom dot PNG files
- status dot reflects proxy state: idle (amber), active (green), stopped (red) - StatusManager polls every 1s with 2s debounce to prevent icon flickering - crash balloon notification via Shell_NotifyIconW with hBalloonIcon - uses pystray internal _hwnd for direct Win32 API call - _pil_to_hicon converts PIL image to HICON for high-quality balloon icon
- tooltip shows active connections, upload/download speed (bytes/s) - DC ping measured via TCP connect to port 443, updated every 30s - ping shown on separate line: DC2: 45ms DC4: 120ms - pings visible in idle state too, not just when connections are active
868ee8c to
757661b
Compare
f4rceful
added a commit
to f4rceful/tg-ws-proxy
that referenced
this pull request
May 16, 2026
f4rceful
added a commit
to f4rceful/tg-ws-proxy
that referenced
this pull request
May 16, 2026
This reverts commit 45711ca.
f4rceful
added a commit
to f4rceful/tg-ws-proxy
that referenced
this pull request
May 16, 2026
344feb5 to
757661b
Compare
Contributor
|
ставя данный проект юзерам далеким от айти которые в офисе потеряли доступ к телеграмму будет лишним (мое мнение) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что добавлено
dot_ok.png,dot_idle.png,dot_error.pngв папкуassets/и они заменят нарисованные кружки.Технические детали
StatusManagerвutils/tray_common.py— переиспользуемый, подключается одной строкой, работает на всех платформах