mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update dependency element-hq/compound-design-tokens to v6.10.1 (#5123)
* Update dependency element-hq/compound-design-tokens to v6.10.0 * Further Compound updates. The gradients have been simplified and are now opaque. * Missed snapshots. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
@@ -10,15 +10,14 @@ import Compound
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
func highlight(gradient: Gradient, borderColor: Color, backgroundColor: Color = .clear) -> some View {
|
||||
modifier(HorizontalHighlightGradient(gradient: gradient, borderColor: borderColor, backgroundColor: backgroundColor))
|
||||
func highlight(gradient: Gradient, borderColor: Color) -> some View {
|
||||
modifier(HorizontalHighlightGradient(gradient: gradient, borderColor: borderColor))
|
||||
}
|
||||
}
|
||||
|
||||
struct HorizontalHighlightGradient: ViewModifier {
|
||||
let gradient: Gradient
|
||||
let borderColor: Color
|
||||
let backgroundColor: Color
|
||||
|
||||
func body(content: Content) -> some View {
|
||||
ZStack(alignment: .top) {
|
||||
@@ -28,7 +27,6 @@ struct HorizontalHighlightGradient: ViewModifier {
|
||||
LinearGradient(gradient: gradient,
|
||||
startPoint: .top,
|
||||
endPoint: .bottom)
|
||||
.background(backgroundColor)
|
||||
}
|
||||
content
|
||||
.layoutPriority(1)
|
||||
|
||||
Reference in New Issue
Block a user