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:
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"originHash" : "f1bd760161a06debbba4152a9ad83d70deae74ffe4d91dd85d4d412572c1cde9",
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "compound-design-tokens",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/element-hq/compound-design-tokens.git",
|
||||
"state" : {
|
||||
"revision" : "d55164b64a67277c62ee4e4ccebea535168ea7be",
|
||||
"version" : "6.9.0"
|
||||
"revision" : "a3dedba504bd1a3d04ce2a62eef00b9eef799ec4",
|
||||
"version" : "6.10.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -64,5 +65,5 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 2
|
||||
"version" : 3
|
||||
}
|
||||
|
||||
@@ -11,7 +11,9 @@ import SwiftUI
|
||||
|
||||
struct GradientsScreen: View {
|
||||
var body: some View {
|
||||
ScreenContent(navigationTitle: "Colors") {
|
||||
ScreenContent(navigationTitle: "Gradients") {
|
||||
// allValues isn't currently working as gradients use computed properties
|
||||
// in order for them to work with colour overrides.
|
||||
ForEach(Gradient.compound.allValues, id: \.name) { gradient in
|
||||
GradientItem(gradient: gradient.value, name: gradient.name)
|
||||
}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"originHash" : "f1bd760161a06debbba4152a9ad83d70deae74ffe4d91dd85d4d412572c1cde9",
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "compound-design-tokens",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/element-hq/compound-design-tokens",
|
||||
"state" : {
|
||||
"revision" : "d55164b64a67277c62ee4e4ccebea535168ea7be",
|
||||
"version" : "6.9.0"
|
||||
"revision" : "a3dedba504bd1a3d04ce2a62eef00b9eef799ec4",
|
||||
"version" : "6.10.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -64,5 +65,5 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 2
|
||||
"version" : 3
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ let package = Package(
|
||||
.library(name: "Compound", targets: ["Compound"])
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/element-hq/compound-design-tokens", exact: "6.9.0"),
|
||||
.package(url: "https://github.com/element-hq/compound-design-tokens", exact: "6.10.1"),
|
||||
// .package(path: "../compound-design-tokens"),
|
||||
.package(url: "https://github.com/siteline/SwiftUI-Introspect", from: "26.0.0"),
|
||||
.package(url: "https://github.com/SFSafeSymbols/SFSafeSymbols", from: "7.0.0"),
|
||||
|
||||
@@ -36,11 +36,10 @@ public struct CompoundGradients {
|
||||
}
|
||||
|
||||
public var info: Gradient {
|
||||
.init(colors: [.compound.gradientInfoStop1,
|
||||
.compound.gradientInfoStop2,
|
||||
.compound.gradientInfoStop3,
|
||||
.compound.gradientInfoStop4,
|
||||
.compound.gradientInfoStop5,
|
||||
.compound.gradientInfoStop6])
|
||||
.init(colors: [.compound.gradientInfoStop1, .compound.gradientInfoStop2])
|
||||
}
|
||||
|
||||
public var critical: Gradient {
|
||||
.init(colors: [.compound.gradientCriticalStop1, .compound.gradientCriticalStop2])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user