feat(ios): raise the native app type scale
This commit is contained in:
11 files changed
+98
-96
No files matched your search
@@ -132,7 +132,7 @@ public struct ConnectionOnboardingView: View {
|
||||
|
||||
Text("Connect securely to T3 Code running on your computer.")
|
||||
.font(.body)
|
||||
.foregroundStyle(.secondary)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.padding(.top, 12)
|
||||
|
||||
Button {
|
||||
@@ -183,8 +183,8 @@ public struct ConnectionOnboardingView: View {
|
||||
if !model.snapshot.environments.isEmpty {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("KNOWN SERVERS")
|
||||
.font(.caption2.weight(.semibold))
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.eyebrow)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.padding(.top, 34)
|
||||
.padding(.bottom, 8)
|
||||
|
||||
@@ -204,10 +204,11 @@ public struct ConnectionOnboardingView: View {
|
||||
.frame(width: 24)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(environment.name)
|
||||
.font(T3Typography.threadBody)
|
||||
.foregroundStyle(.primary)
|
||||
Text(environment.endpoint)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
Spacer()
|
||||
@@ -237,14 +238,14 @@ public struct ConnectionOnboardingView: View {
|
||||
.font(.largeTitle.bold())
|
||||
.tracking(-0.6)
|
||||
Text("Both values are shown in T3 Code when you create a mobile connection.")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.threadBody)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
Text("SERVER ADDRESS")
|
||||
.font(.caption2.weight(.semibold))
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.eyebrow)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
|
||||
TextField("http://192.168.1.5:3773", text: $endpoint)
|
||||
.textInputAutocapitalization(.never)
|
||||
@@ -260,8 +261,8 @@ public struct ConnectionOnboardingView: View {
|
||||
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
Text("PAIRING CODE")
|
||||
.font(.caption2.weight(.semibold))
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.eyebrow)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
|
||||
TextField("12-character code", text: $pairingCode)
|
||||
.textInputAutocapitalization(.never)
|
||||
@@ -276,7 +277,7 @@ public struct ConnectionOnboardingView: View {
|
||||
pasteConnectionLink()
|
||||
} label: {
|
||||
Label("Paste a connection link instead", systemImage: "doc.on.clipboard")
|
||||
.font(.subheadline.weight(.semibold))
|
||||
.font(T3Typography.control.weight(.semibold))
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
|
||||
@@ -345,8 +346,8 @@ public struct ConnectionOnboardingView: View {
|
||||
Spacer()
|
||||
|
||||
Text("Keep T3 Code open on your computer.")
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
.padding(.horizontal, 32)
|
||||
.padding(.vertical, 28)
|
||||
@@ -362,8 +363,8 @@ public struct ConnectionOnboardingView: View {
|
||||
Text("You're connected")
|
||||
.font(.title.bold())
|
||||
Text("Loading your projects and threads.")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.threadBody)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
}
|
||||
@@ -383,8 +384,8 @@ public struct ConnectionOnboardingView: View {
|
||||
Text(title)
|
||||
.font(.body.weight(.semibold))
|
||||
Text(subtitle)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
Spacer()
|
||||
Image(systemName: "chevron.right")
|
||||
@@ -401,7 +402,7 @@ public struct ConnectionOnboardingView: View {
|
||||
private func connectionError(message: String) -> some View {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
Label(message, systemImage: showsPermissionAction ? "network.slash" : "exclamationmark.circle")
|
||||
.font(.subheadline)
|
||||
.font(T3Typography.control)
|
||||
.foregroundStyle(Color(red: 1, green: 0.58, blue: 0.2))
|
||||
|
||||
if showsPermissionAction {
|
||||
@@ -409,7 +410,7 @@ public struct ConnectionOnboardingView: View {
|
||||
guard let url = URL(string: UIApplication.openSettingsURLString) else { return }
|
||||
UIApplication.shared.open(url)
|
||||
}
|
||||
.font(.subheadline.weight(.semibold))
|
||||
.font(T3Typography.control.weight(.semibold))
|
||||
}
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
|
||||
@@ -46,8 +46,8 @@ struct QRCodeScannerView: View {
|
||||
if availability == .ready {
|
||||
scannerFrame
|
||||
Text("Point your camera at the QR code shown by T3 Code.")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.white.opacity(0.72))
|
||||
.font(T3Typography.threadBody)
|
||||
.foregroundStyle(.white.opacity(0.78))
|
||||
.multilineTextAlignment(.center)
|
||||
.padding(.top, 28)
|
||||
} else {
|
||||
@@ -103,8 +103,8 @@ struct QRCodeScannerView: View {
|
||||
Text("Camera access is off")
|
||||
.font(.title3.bold())
|
||||
Text("Allow camera access in Settings to scan a pairing code.")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.white.opacity(0.65))
|
||||
.font(T3Typography.threadBody)
|
||||
.foregroundStyle(.white.opacity(0.78))
|
||||
.multilineTextAlignment(.center)
|
||||
Button("Open Settings") {
|
||||
guard let url = URL(string: UIApplication.openSettingsURLString) else { return }
|
||||
@@ -122,8 +122,8 @@ struct QRCodeScannerView: View {
|
||||
Text("Camera unavailable")
|
||||
.font(.title3.bold())
|
||||
Text("Paste the connection link instead.")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.white.opacity(0.65))
|
||||
.font(T3Typography.threadBody)
|
||||
.foregroundStyle(.white.opacity(0.78))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ public struct DevicesView: View {
|
||||
VStack(spacing: 12) {
|
||||
ProgressView()
|
||||
Text("Loading devices")
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
} else if let errorMessage, sessions.isEmpty {
|
||||
ContentUnavailableView {
|
||||
@@ -130,12 +130,12 @@ public struct DevicesView: View {
|
||||
Section {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
Label(errorMessage, systemImage: "exclamationmark.circle")
|
||||
.font(.subheadline)
|
||||
.font(T3Typography.control)
|
||||
.foregroundStyle(.orange)
|
||||
Button("Try again") {
|
||||
Task { await reload() }
|
||||
}
|
||||
.font(.subheadline.weight(.semibold))
|
||||
.font(T3Typography.control.weight(.semibold))
|
||||
}
|
||||
.padding(.vertical, 4)
|
||||
}
|
||||
@@ -221,32 +221,32 @@ private struct DeviceSessionRow: View {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
HStack(spacing: 8) {
|
||||
Text(session.displayName)
|
||||
.font(.body.weight(.semibold))
|
||||
.font(T3Typography.homeTitle)
|
||||
if session.isCurrent {
|
||||
Text("Current")
|
||||
.font(.caption)
|
||||
.font(T3Typography.supportingStrong)
|
||||
.foregroundStyle(.green)
|
||||
} else if session.isConnected {
|
||||
Text("Online")
|
||||
.font(.caption)
|
||||
.font(T3Typography.supportingStrong)
|
||||
.foregroundStyle(.green)
|
||||
}
|
||||
}
|
||||
|
||||
if !session.platformDescription.isEmpty {
|
||||
Text(session.platformDescription)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
|
||||
Text(lastSeenDescription)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.tertiary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
|
||||
if let ipAddress = session.ipAddress, !ipAddress.isEmpty {
|
||||
Text(ipAddress)
|
||||
.font(.caption2.monospaced())
|
||||
.foregroundStyle(.tertiary)
|
||||
.font(T3Typography.tool)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
}
|
||||
Spacer(minLength: 8)
|
||||
|
||||
@@ -119,13 +119,13 @@ private struct FeatureFileRow: View {
|
||||
.foregroundStyle(entry.kind == .directory ? .blue : .secondary)
|
||||
.frame(width: 20)
|
||||
Text(entry.name)
|
||||
.font(.subheadline)
|
||||
.font(T3Typography.threadBody)
|
||||
.lineLimit(1)
|
||||
Spacer()
|
||||
if let size = entry.sizeBytes, entry.kind != .directory {
|
||||
Text(ByteCountFormatter.string(fromByteCount: Int64(size), countStyle: .file))
|
||||
.font(.caption2.monospacedDigit())
|
||||
.foregroundStyle(.tertiary)
|
||||
.font(T3Typography.tool.monospacedDigit())
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
}
|
||||
.padding(.vertical, 3)
|
||||
@@ -160,7 +160,7 @@ private struct FeatureFilePreviewView: View {
|
||||
VStack(spacing: 0) {
|
||||
if content.isTruncated {
|
||||
Label("Partial preview", systemImage: "exclamationmark.triangle")
|
||||
.font(.caption.weight(.semibold))
|
||||
.font(T3Typography.supportingStrong)
|
||||
.foregroundStyle(.orange)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(.horizontal, 12)
|
||||
@@ -219,14 +219,14 @@ private struct FeatureSourceTextView: View {
|
||||
HStack(alignment: .top, spacing: 10) {
|
||||
Text("\(index + 1)")
|
||||
.foregroundStyle(.tertiary)
|
||||
.frame(width: 38, alignment: .trailing)
|
||||
.frame(width: 44, alignment: .trailing)
|
||||
.accessibilityHidden(true)
|
||||
Text(String(line).isEmpty ? " " : String(line))
|
||||
.foregroundStyle(.primary)
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
.font(.system(size: 12, design: .monospaced))
|
||||
.frame(minHeight: 19)
|
||||
.font(T3Typography.code)
|
||||
.frame(minHeight: 22)
|
||||
}
|
||||
}
|
||||
.padding(.vertical, 10)
|
||||
|
||||
@@ -50,11 +50,11 @@ public struct FeatureReviewView: View {
|
||||
HStack {
|
||||
VStack(alignment: .leading, spacing: 3) {
|
||||
Text(review.title)
|
||||
.font(.headline)
|
||||
.font(T3Typography.navigationTitle)
|
||||
if let base = review.baseReference {
|
||||
Text(base)
|
||||
.font(.caption.monospaced())
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.tool)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
}
|
||||
Spacer()
|
||||
@@ -64,7 +64,7 @@ public struct FeatureReviewView: View {
|
||||
|
||||
if review.isTruncated {
|
||||
Label("Large diff, showing a partial result", systemImage: "exclamationmark.triangle")
|
||||
.font(.footnote)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(.orange)
|
||||
}
|
||||
}
|
||||
@@ -115,12 +115,12 @@ private struct FeatureReviewFileRow: View {
|
||||
.frame(width: 18)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(fileName)
|
||||
.font(.subheadline.weight(.medium))
|
||||
.font(T3Typography.homeTitle)
|
||||
.lineLimit(1)
|
||||
if !directory.isEmpty {
|
||||
Text(directory)
|
||||
.font(.caption2)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
}
|
||||
@@ -173,7 +173,7 @@ struct FeatureDiffStatsLabel: View {
|
||||
Text("−\(deletions)").foregroundStyle(.red)
|
||||
}
|
||||
}
|
||||
.font(.caption2.monospacedDigit().weight(.medium))
|
||||
.font(T3Typography.tool.monospacedDigit().weight(.medium))
|
||||
.accessibilityElement(children: .combine)
|
||||
.accessibilityLabel("\(additions) additions, \(deletions) deletions")
|
||||
}
|
||||
@@ -228,8 +228,8 @@ private struct FeatureDiffLineRow: View {
|
||||
.padding(.trailing, 12)
|
||||
}
|
||||
}
|
||||
.font(.system(size: 12, design: .monospaced))
|
||||
.frame(minHeight: line.kind == .hunk ? 28 : 19, alignment: .leading)
|
||||
.font(T3Typography.code)
|
||||
.frame(minHeight: line.kind == .hunk ? 30 : 22, alignment: .leading)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(background)
|
||||
}
|
||||
@@ -237,7 +237,7 @@ private struct FeatureDiffLineRow: View {
|
||||
private func lineNumber(_ value: Int?) -> some View {
|
||||
Text(value.map(String.init) ?? "")
|
||||
.foregroundStyle(.tertiary)
|
||||
.frame(width: 42, alignment: .trailing)
|
||||
.frame(width: 48, alignment: .trailing)
|
||||
.padding(.trailing, 7)
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
|
||||
@@ -75,8 +75,8 @@ private struct FeatureLoadingView: View {
|
||||
ProgressView()
|
||||
.controlSize(.small)
|
||||
Text("Connecting to T3 Code")
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.background(Color.black)
|
||||
|
||||
@@ -98,15 +98,15 @@ public struct SettingsView: View {
|
||||
.frame(width: 22)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(model.snapshot.connection.environmentName ?? "T3 server")
|
||||
.font(.body.weight(.semibold))
|
||||
.font(T3Typography.homeTitle)
|
||||
Text(connectionDescription)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
Spacer()
|
||||
Text(connectionStatus)
|
||||
.font(.caption.weight(.semibold))
|
||||
.font(T3Typography.supportingStrong)
|
||||
.foregroundStyle(connectionColor)
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
@@ -128,10 +128,11 @@ public struct SettingsView: View {
|
||||
.frame(width: 22)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(environment.name)
|
||||
.font(T3Typography.threadBody)
|
||||
.foregroundStyle(.primary)
|
||||
Text(environment.endpoint)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
Spacer()
|
||||
@@ -179,8 +180,8 @@ public struct SettingsView: View {
|
||||
LabeledContent("Provider", value: provider.name)
|
||||
if let detail = selectedModel.detail {
|
||||
Text(detail)
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -199,7 +200,7 @@ public struct SettingsView: View {
|
||||
|
||||
private var aboutSection: some View {
|
||||
Section("About") {
|
||||
LabeledContent("App", value: "T3 Code for iOS")
|
||||
LabeledContent("App", value: "T3 Code (Native)")
|
||||
LabeledContent("Platform", value: "Native SwiftUI")
|
||||
Link("Open source", destination: URL(string: "https://github.com/pingdotgg/t3code")!)
|
||||
}
|
||||
|
||||
@@ -70,8 +70,8 @@ public struct FeatureSourceControlView: View {
|
||||
Spacer()
|
||||
Label("\(status.behindCount) behind", systemImage: "arrow.down")
|
||||
}
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
if let pullRequest = status.pullRequest {
|
||||
if let url = pullRequest.url {
|
||||
Link(destination: url) {
|
||||
@@ -86,7 +86,7 @@ public struct FeatureSourceControlView: View {
|
||||
Section("Actions") {
|
||||
if status.availableActions.isEmpty {
|
||||
Text(status.isBusy ? "Source control operation in progress" : "No actions available")
|
||||
.foregroundStyle(.secondary)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
ForEach(status.availableActions, id: \.self) { action in
|
||||
Button {
|
||||
@@ -102,7 +102,7 @@ public struct FeatureSourceControlView: View {
|
||||
Section("\(status.files.count) changed \(status.files.count == 1 ? "file" : "files")") {
|
||||
if status.files.isEmpty {
|
||||
Label("Working tree clean", systemImage: "checkmark.circle")
|
||||
.foregroundStyle(.secondary)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
ForEach(status.files) { file in
|
||||
HStack(spacing: 10) {
|
||||
@@ -111,12 +111,12 @@ public struct FeatureSourceControlView: View {
|
||||
.foregroundStyle(file.state.color)
|
||||
.frame(width: 18)
|
||||
Text(file.path)
|
||||
.font(.subheadline)
|
||||
.font(T3Typography.threadBody)
|
||||
.lineLimit(1)
|
||||
Spacer()
|
||||
if file.isStaged {
|
||||
Text("STAGED")
|
||||
.font(.system(size: 9, weight: .bold))
|
||||
.font(T3Typography.eyebrow)
|
||||
.foregroundStyle(.green)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,10 +40,10 @@ public struct FeatureTerminalView: View {
|
||||
.frame(width: 7, height: 7)
|
||||
VStack(alignment: .leading, spacing: 1) {
|
||||
Text(terminal?.title ?? "Terminal")
|
||||
.font(.subheadline.weight(.semibold))
|
||||
.font(T3Typography.navigationTitle)
|
||||
Text(terminal?.workingDirectory ?? statusLabel)
|
||||
.font(.caption2.monospaced())
|
||||
.foregroundStyle(.secondary)
|
||||
.font(T3Typography.tool)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
Spacer()
|
||||
@@ -51,12 +51,12 @@ public struct FeatureTerminalView: View {
|
||||
Button("Stop", role: .destructive) {
|
||||
Task { await stop() }
|
||||
}
|
||||
.font(.footnote.weight(.semibold))
|
||||
.font(T3Typography.supportingStrong)
|
||||
} else {
|
||||
Button("Start") {
|
||||
Task { await open() }
|
||||
}
|
||||
.font(.footnote.weight(.semibold))
|
||||
.font(T3Typography.supportingStrong)
|
||||
.disabled(isLoading)
|
||||
}
|
||||
}
|
||||
@@ -80,11 +80,11 @@ public struct FeatureTerminalView: View {
|
||||
ScrollViewReader { proxy in
|
||||
ScrollView([.horizontal, .vertical]) {
|
||||
Text(terminal?.buffer.isEmpty == false ? terminal?.buffer ?? "" : " ")
|
||||
.font(.system(size: 12, design: .monospaced))
|
||||
.font(T3Typography.code)
|
||||
.foregroundStyle(Color(white: 0.86))
|
||||
.textSelection(.enabled)
|
||||
.frame(maxWidth: .infinity, minHeight: 300, alignment: .topLeading)
|
||||
.padding(12)
|
||||
.padding(14)
|
||||
.id("terminal-end")
|
||||
}
|
||||
.defaultScrollAnchor(.bottom)
|
||||
@@ -134,7 +134,7 @@ public struct FeatureTerminalView: View {
|
||||
Button(label) {
|
||||
Task { await write(data) }
|
||||
}
|
||||
.font(.caption.monospaced().weight(.medium))
|
||||
.font(T3Typography.tool.weight(.medium))
|
||||
.buttonStyle(.bordered)
|
||||
.controlSize(.small)
|
||||
.disabled(!isRunning)
|
||||
|
||||
@@ -125,7 +125,7 @@ public struct NewThreadView: View {
|
||||
Text("?")
|
||||
}
|
||||
}
|
||||
.font(.system(size: 24, weight: .regular))
|
||||
.font(T3Typography.threadHeading1.weight(.regular))
|
||||
.tracking(-0.35)
|
||||
.foregroundStyle(T3Colors.textPrimary)
|
||||
.multilineTextAlignment(.center)
|
||||
@@ -136,9 +136,9 @@ public struct NewThreadView: View {
|
||||
.font(.system(size: 11, weight: .medium))
|
||||
Text("on \(environmentName)")
|
||||
}
|
||||
.font(.caption)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textTertiary)
|
||||
.offset(y: 29)
|
||||
.offset(y: 31)
|
||||
}
|
||||
.accessibilityElement(children: .contain)
|
||||
}
|
||||
|
||||
@@ -39,16 +39,16 @@ public struct ProviderModelPicker: View {
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text("Model")
|
||||
.font(.caption)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
Text(selectionLabel)
|
||||
.font(.subheadline.weight(.medium))
|
||||
.font(T3Typography.control)
|
||||
.foregroundStyle(T3Colors.textPrimary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
Spacer()
|
||||
Image(systemName: "chevron.right")
|
||||
.font(.caption.weight(.semibold))
|
||||
.font(T3Typography.supportingStrong)
|
||||
.foregroundStyle(T3Colors.textTertiary)
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
@@ -60,7 +60,7 @@ public struct ProviderModelPicker: View {
|
||||
Image(systemName: "chevron.up.chevron.down")
|
||||
.font(.system(size: 8, weight: .bold))
|
||||
}
|
||||
.font(.caption.weight(.medium))
|
||||
.font(T3Typography.supportingStrong)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
@@ -136,7 +136,7 @@ private struct ModelPickerSheet: View {
|
||||
VStack(spacing: 12) {
|
||||
ProgressView()
|
||||
Text("Loading models")
|
||||
.font(.subheadline)
|
||||
.font(T3Typography.control)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
@@ -198,7 +198,7 @@ private struct ModelPickerSheet: View {
|
||||
"This provider fixes the model when a task starts.",
|
||||
systemImage: "lock"
|
||||
)
|
||||
.font(.caption)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
}
|
||||
@@ -475,10 +475,10 @@ private struct ModelAutomaticRow: View {
|
||||
.frame(width: 24)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text("Automatic")
|
||||
.font(.subheadline.weight(.semibold))
|
||||
.font(T3Typography.homeTitle)
|
||||
.foregroundStyle(T3Colors.textPrimary)
|
||||
Text("Use the environment default")
|
||||
.font(.caption)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
Spacer()
|
||||
@@ -502,7 +502,7 @@ private struct ModelOptionLabel: View {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
HStack(spacing: 7) {
|
||||
Text(option.model.name)
|
||||
.font(.subheadline.weight(.semibold))
|
||||
.font(T3Typography.homeTitle)
|
||||
.foregroundStyle(T3Colors.textPrimary)
|
||||
.lineLimit(1)
|
||||
if option.model.supportsReasoning {
|
||||
@@ -513,7 +513,7 @@ private struct ModelOptionLabel: View {
|
||||
}
|
||||
}
|
||||
Text(option.model.detail ?? option.model.id)
|
||||
.font(.caption)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
@@ -538,7 +538,7 @@ private struct ModelOptionLabel: View {
|
||||
|
||||
private func capability(_ title: String, icon: String) -> some View {
|
||||
Label(title, systemImage: icon)
|
||||
.font(.caption2)
|
||||
.font(T3Typography.supporting)
|
||||
.foregroundStyle(T3Colors.textSecondary)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user