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,
|
/// 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
|
/// and copy as the Mac's `BuildBanner`. The strip stays untinted; the channel color rides on
|
||||||
/// for beta, gold for a release candidate. The leading edge names the channel; the build
|
/// the all-caps "EXPERIMENTAL" pill instead: red for local builds, canary-yellow for canary,
|
||||||
/// label and an all-caps "EXPERIMENTAL" badge sit on the trailing edge. Renders nothing for
|
/// blue for beta, gold for a release candidate. The leading edge names the channel; the build
|
||||||
/// a shipping App Store release.
|
/// label and the pill sit on the trailing edge. Renders nothing for a shipping App Store
|
||||||
|
/// release.
|
||||||
struct BuildBanner: View {
|
struct BuildBanner: View {
|
||||||
var info: BuildInfo = .current
|
var info: BuildInfo = .current
|
||||||
|
|
||||||
@@ -106,15 +107,15 @@ struct BuildBanner: View {
|
|||||||
Text("EXPERIMENTAL")
|
Text("EXPERIMENTAL")
|
||||||
.font(.caption2.weight(.heavy))
|
.font(.caption2.weight(.heavy))
|
||||||
.tracking(0.9)
|
.tracking(0.9)
|
||||||
|
.foregroundStyle(.white)
|
||||||
.padding(.horizontal, 6)
|
.padding(.horizontal, 6)
|
||||||
.padding(.vertical, 2)
|
.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(.horizontal, 12)
|
||||||
.padding(.vertical, 5)
|
.padding(.vertical, 5)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
.background(style.tint.opacity(0.5))
|
|
||||||
.accessibilityLabel(style.tooltip(version: info.version, build: info.buildLabel))
|
.accessibilityLabel(style.tooltip(version: info.version, build: info.buildLabel))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user