更新代理设置输入框的占位符文本

This commit is contained in:
ZhangLei
2025-11-03 20:03:26 +08:00
parent f88e3eb30f
commit f9f81774a0

View File

@@ -133,7 +133,7 @@ struct PreferencesWindowView: View {
.font(.caption)
.foregroundColor(.secondary)
TextField("IP or proxy.example.com", text: $tempProxyHost)
TextField("ip or proxy.example.com", text: $tempProxyHost)
.textFieldStyle(RoundedBorderTextFieldStyle())
.frame(maxWidth: .infinity)
.disabled(!tempProxyEnabled)
@@ -145,7 +145,7 @@ struct PreferencesWindowView: View {
.font(.caption)
.foregroundColor(.secondary)
TextField("8080", text: $tempProxyPort)
TextField("3128", text: $tempProxyPort)
.textFieldStyle(RoundedBorderTextFieldStyle())
.frame(width: 80)
.disabled(!tempProxyEnabled)
@@ -165,7 +165,7 @@ struct PreferencesWindowView: View {
.font(.caption)
.foregroundColor(.secondary)
TextField("用户名", text: $tempProxyUsername)
TextField("user", text: $tempProxyUsername)
.textFieldStyle(RoundedBorderTextFieldStyle())
.frame(maxWidth: .infinity)
.disabled(!tempProxyEnabled)
@@ -177,7 +177,7 @@ struct PreferencesWindowView: View {
.font(.caption)
.foregroundColor(.secondary)
SecureField("密码", text: $tempProxyPassword)
SecureField("password", text: $tempProxyPassword)
.textFieldStyle(RoundedBorderTextFieldStyle())
.frame(maxWidth: .infinity)
.disabled(!tempProxyEnabled)