From 83f84601f052b06bbb3d0fb33b8ae3f3bea8951b Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Tue, 7 Jul 2026 00:47:41 -0700 Subject: [PATCH] =?UTF-8?q?nvrsion:=20Add:=20Apply=20channel=20color=20to?= =?UTF-8?q?=20=E2=80=9CEXPERIMENTAL=E2=80=9D=20pill=20and=20remove=20pre-r?= =?UTF-8?q?elease=20banner=20colors.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nucleic-Promote: 1 Co-authored-by: Nucleic --- .../NucleicRemote/Views/BuildBanner.swift | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Views/BuildBanner.swift b/NucleicRemote/NucleicRemote/Views/BuildBanner.swift index 8e0372b..d570c27 100644 --- a/NucleicRemote/NucleicRemote/Views/BuildBanner.swift +++ b/NucleicRemote/NucleicRemote/Views/BuildBanner.swift @@ -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)) } }