nvrsion: Add: Full-height top area color for EXPERIMENTAL Pill Colors in BuildBanner.swift.
Nucleic-Promote: 1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -114,12 +114,10 @@ struct BuildBanner: View {
|
|||||||
.padding(.horizontal, 12)
|
.padding(.horizontal, 12)
|
||||||
.padding(.vertical, 3)
|
.padding(.vertical, 3)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
// The channel-colored stripe spans the full width, with the content (channel name,
|
// The channel-colored stripe fills the full width and height of the top area, with
|
||||||
// build label, and the EXPERIMENTAL pill) held at the leading edge. Its height is
|
// the content (channel name, build label, and the EXPERIMENTAL pill) laid across it
|
||||||
// just the row of text plus padding; the trailing vertical padding is transparent
|
// — the channel name at the leading edge, the build label and pill at the trailing.
|
||||||
// margin that keeps the stripe from filling the header's full height.
|
|
||||||
.background(style.tint.opacity(0.9))
|
.background(style.tint.opacity(0.9))
|
||||||
.padding(.vertical, 4)
|
|
||||||
.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