nvrsion: Add: Apply channel color to “EXPERIMENTAL” pill and remove pre-release banner colors.
Nucleic-Promote: 1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -84,10 +84,11 @@ struct BuildInfo {
|
||||
}
|
||||
|
||||
/// Header strip warning that this is a non-release build — the same channel colors, icons,
|
||||
/// and copy as the Mac's `BuildBanner`: red for local builds, canary-yellow for canary, blue
|
||||
/// for beta, gold for a release candidate. The leading edge names the channel; the build
|
||||
/// label and an all-caps "EXPERIMENTAL" badge sit on the trailing edge. Renders nothing for
|
||||
/// a shipping App Store release.
|
||||
/// and copy as the Mac's `BuildBanner`. The strip stays untinted; the channel color rides on
|
||||
/// the all-caps "EXPERIMENTAL" pill instead: red for local builds, canary-yellow for canary,
|
||||
/// blue for beta, gold for a release candidate. The leading edge names the channel; the build
|
||||
/// label and the pill sit on the trailing edge. Renders nothing for a shipping App Store
|
||||
/// release.
|
||||
struct BuildBanner: View {
|
||||
var info: BuildInfo = .current
|
||||
|
||||
@@ -106,15 +107,15 @@ struct BuildBanner: View {
|
||||
Text("EXPERIMENTAL")
|
||||
.font(.caption2.weight(.heavy))
|
||||
.tracking(0.9)
|
||||
.foregroundStyle(.white)
|
||||
.padding(.horizontal, 6)
|
||||
.padding(.vertical, 2)
|
||||
.background(.white.opacity(0.16), in: .capsule)
|
||||
.background(style.tint, in: .capsule)
|
||||
}
|
||||
.foregroundStyle(.white.opacity(0.92))
|
||||
.foregroundStyle(.primary)
|
||||
.padding(.horizontal, 12)
|
||||
.padding(.vertical, 5)
|
||||
.frame(maxWidth: .infinity)
|
||||
.background(style.tint.opacity(0.5))
|
||||
.accessibilityLabel(style.tooltip(version: info.version, build: info.buildLabel))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user