Skip to content

Меню выбора иконок, работа хоткеев в Manage Subscription URLs - #1

Open
xdshkaaa wants to merge 6 commits into
danilagoleen:mainfrom
xdshkaaa:main
Open

Меню выбора иконок, работа хоткеев в Manage Subscription URLs#1
xdshkaaa wants to merge 6 commits into
danilagoleen:mainfrom
xdshkaaa:main

Conversation

@xdshkaaa

Copy link
Copy Markdown

изменения

меню «Change Icon» для иконки в строке меню

  • добавлено подменю «Change Icon» с 10 иконками на выбор для смены в меню бар
  • выбор иконки сохраняется в state.json
  • если запуск на macOS < 11 (нет SF Symbols) - откидывается текстовый фолбэк.

Хоткеи Cmd+C/V/X/A в диалоге «Manage Subscription URLs»

  • При запуске устанавливается добавлено скрытое меню Edit - вставка, копирование, вырезание и снова работают.

Сборка: отключены библиотеки совместимости Swift runtime

В вызов swiftc в build_back_to_ussr_app.command добавлен флаг, отключающий линковку Swift runtime compatibility

Затронутые файлы

  • src/main.swift - меню иконок + хоткеи

  • build_back_to_ussr_app.command - флаг сборки (без этой шляпы у меня билд не работал)

  • tested on ARM macOS

image

xdshkaaa and others added 6 commits July 12, 2026 03:17
Agent app had no main menu, so text editing key equivalents were dead.
Install a hidden Edit menu at launch to enable paste/copy/select-all.
Some providers (e.g. connliberty) serve full Xray client configs as JSON
instead of vless:// links or base64. Extract VLESS outbounds (address,
port, uuid, flow, reality/tls stream settings) and synthesize vless://
URIs so the existing pipeline handles them unchanged.
Add Change Icon submenu with 10 selectable SF Symbols icons.
Selection persists in state.json (menuBarIcon, default star.fill)
and applies immediately. Text fallback on macOS < 11.
Remove decodeXrayJSON and its call in parse(); subscriptions
are parsed from vless:// links and base64 payloads only.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant