nvrsion: Add revert logic to Sources/NucleicApp/BuildBanner.swift, Sources/NucleicApp/ToolbarGlassKeeper.swift, and ios/NucleicRemote/NucleicRemote/Views/BuildBanner.swift to restore prior state, and fix sidebar color distortion in Sources/NucleicApp/RootView.swift.
Nucleic-Promote: 1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -83,11 +83,11 @@ struct BuildInfo {
|
||||
}
|
||||
}
|
||||
|
||||
/// Header warning that this is a non-release build — the same channel colors, icons, and copy
|
||||
/// as the Mac's `BuildBanner`. A channel-colored stripe — red for local builds, canary-yellow
|
||||
/// for canary, blue for beta, gold for a release candidate — spans the full width, with its
|
||||
/// content (channel name, build label, and an all-caps "EXPERIMENTAL" pill) held at the
|
||||
/// leading edge. Renders nothing for a shipping App Store release.
|
||||
/// 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.
|
||||
struct BuildBanner: View {
|
||||
var info: BuildInfo = .current
|
||||
|
||||
@@ -95,7 +95,7 @@ struct BuildBanner: View {
|
||||
if let style = Style(channel: info.channel) {
|
||||
HStack(spacing: 8) {
|
||||
Image(systemName: style.icon)
|
||||
.font(.system(size: 12, weight: .heavy))
|
||||
.font(.system(size: 15, weight: .heavy))
|
||||
Text(style.label)
|
||||
.font(.footnote.weight(.semibold))
|
||||
.lineLimit(1)
|
||||
@@ -112,12 +112,9 @@ struct BuildBanner: View {
|
||||
}
|
||||
.foregroundStyle(.white.opacity(0.92))
|
||||
.padding(.horizontal, 12)
|
||||
.padding(.vertical, 3)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
// The channel-colored stripe fills the full width and height of the top area, with
|
||||
// the content (channel name, build label, and the EXPERIMENTAL pill) laid across it
|
||||
// — the channel name at the leading edge, the build label and pill at the trailing.
|
||||
.background(style.tint.opacity(0.9))
|
||||
.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