Files
ggbond268--mactools/Sources/App/PluginReleaseChannelBadge.swift
wehub-resource-sync 1d1286fadb
Build / Build and test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:18:38 +08:00

21 lines
636 B
Swift

import SwiftUI
import MacToolsPluginKit
struct PluginReleaseChannelBadge: View {
let releaseChannel: String?
var body: some View {
if let channel = PluginReleaseChannel(rawString: releaseChannel) {
Text(channel.displayName)
.font(PluginSettingsTheme.Typography.statusBadge.weight(.semibold))
.foregroundStyle(Color.orange)
.padding(.horizontal, 6)
.padding(.vertical, 1)
.background(
Capsule(style: .continuous)
.fill(Color.orange.opacity(0.14))
)
}
}
}