From 17d0a2d85525ca7ce49d91044b8dd478aaa1c903 Mon Sep 17 00:00:00 2001 From: Kaede Akino Date: Wed, 23 Sep 2026 08:02:50 +0800 Subject: [PATCH] Refine protocol picker glass shape --- Frameworks/Resources/Localizable.xcstrings | 203 +++++++++--------- .../HostChooser/HostChooserView.swift | 3 +- 2 files changed, 107 insertions(+), 99 deletions(-) diff --git a/Frameworks/Resources/Localizable.xcstrings b/Frameworks/Resources/Localizable.xcstrings index a31d6799..7417213a 100644 --- a/Frameworks/Resources/Localizable.xcstrings +++ b/Frameworks/Resources/Localizable.xcstrings @@ -3077,6 +3077,22 @@ } } }, + "Answer" : { + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "回答" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "回答" + } + } + } + }, "Any active forwarding session for this rule will be stopped." : { "localizations" : { "zh-Hans" : { @@ -3109,22 +3125,6 @@ } } }, - "Answer" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "回答" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "回答" - } - } - } - }, "API Key" : { "localizations" : { "zh-Hans" : { @@ -3556,6 +3556,7 @@ }, "Assigned roles will return to their defaults." : { "comment" : "A message displayed in a confirmation dialog that warns of the consequences of deleting a provider.", + "extractionState" : "stale", "isCommentAutoGenerated" : true, "localizations" : { "zh-Hans" : { @@ -5025,6 +5026,22 @@ } } }, + "Clear Call History?" : { + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "清空调用历史?" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "清除呼叫歷史?" + } + } + } + }, "Clear command history for this Host?" : { "localizations" : { "zh-Hans" : { @@ -5091,22 +5108,6 @@ } } }, - "Clear Call History?" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "清空调用历史?" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "清除呼叫歷史?" - } - } - } - }, "Clear Filter" : { "localizations" : { "zh-Hans" : { @@ -7796,22 +7797,6 @@ } } }, - "Delete %lld Items?" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "删除%lld项?" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "刪除%lld項?" - } - } - } - }, "Delete %lld items?" : { "localizations" : { "zh-Hans" : { @@ -7828,6 +7813,22 @@ } } }, + "Delete %lld Items?" : { + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "删除%lld项?" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "刪除%lld項?" + } + } + } + }, "Delete %lld Keys?" : { "localizations" : { "zh-Hans" : { @@ -7845,6 +7846,7 @@ } }, "Delete %lld Snippets" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -8147,6 +8149,7 @@ } }, "Delete Keychain Items?" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -8245,6 +8248,7 @@ } }, "Delete Server?" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -8262,6 +8266,7 @@ }, "Delete Skill" : { "comment" : "A button that deletes a skill.", + "extractionState" : "stale", "isCommentAutoGenerated" : true, "localizations" : { "zh-Hans" : { @@ -8279,6 +8284,7 @@ } }, "Delete Skill?" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -8327,6 +8333,7 @@ } }, "Delete Snippets?" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -8360,6 +8367,7 @@ } }, "Delete Workspace Template?" : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -22129,22 +22137,6 @@ } } }, - "Save Changes?" : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "保存更改?" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "儲存變更?" - } - } - } - }, "Save a host here, or enter ssh user@host on the Welcome page to connect once." : { "comment" : "A description of the empty state of the hosts page.", "isCommentAutoGenerated" : true, @@ -22229,6 +22221,22 @@ } } }, + "Save Changes?" : { + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "保存更改?" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "儲存變更?" + } + } + } + }, "Save Logging" : { "extractionState" : "manual", "localizations" : { @@ -27837,6 +27845,7 @@ } }, "The template “%@” will be removed from the Vault." : { + "extractionState" : "stale", "localizations" : { "zh-Hans" : { "stringUnit" : { @@ -28539,22 +28548,6 @@ } } }, - "This permanently removes all saved MCP call records." : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "这将永久删除所有保存的MCP调用记录。" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "這將永久刪除所有儲存的MCP呼叫記錄。" - } - } - } - }, "This permanently removes all connection history without deleting any Hosts." : { "localizations" : { "zh-Hans" : { @@ -28587,6 +28580,22 @@ } } }, + "This permanently removes all saved MCP call records." : { + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "这将永久删除所有保存的MCP调用记录。" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "這將永久刪除所有儲存的MCP呼叫記錄。" + } + } + } + }, "This permanently removes connection, command, and File History without deleting the Hosts." : { "extractionState" : "stale", "localizations" : { @@ -28620,22 +28629,6 @@ } } }, - "This removes all connection history for this Host." : { - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "这将删除此主机的所有连接历史。" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "這將刪除此主機的所有連線歷史。" - } - } - } - }, "This remote file may contain executable content. Review it before opening." : { "extractionState" : "manual", "localizations" : { @@ -28653,6 +28646,22 @@ } } }, + "This removes all connection history for this Host." : { + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "这将删除此主机的所有连接历史。" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "這將刪除此主機的所有連線歷史。" + } + } + } + }, "This run was interrupted and was not resumed." : { "localizations" : { "zh-Hans" : { @@ -31889,4 +31898,4 @@ } }, "version" : "1.2" -} +} \ No newline at end of file diff --git a/TFM/Features/HostChooser/HostChooserView.swift b/TFM/Features/HostChooser/HostChooserView.swift index f1c4ded4..318ef1f4 100644 --- a/TFM/Features/HostChooser/HostChooserView.swift +++ b/TFM/Features/HostChooser/HostChooserView.swift @@ -320,8 +320,8 @@ struct HostChooserView: View { .frame(maxWidth: .infinity) .overlay { connectionProtocolPicker + .termindGlassSurface(cornerRadius: Metrics.Radius.medium, isInteractive: true) .frame(width: protocolPickerWidth, height: 30) - .termindGlassCapsule(isInteractive: true) } .padding(.horizontal, Metrics.Space.xl) .padding(.top, Metrics.Space.l) @@ -388,7 +388,6 @@ struct HostChooserView: View { } .pickerStyle(.segmented) .labelsHidden() - .frame(maxWidth: .infinity) .accessibilityLabel("Connection protocol") }