mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Update the foreground colour of BigIcon's default style. (#4871)
* Update the foreground colour of BigIcon's default style. * Bump the design tokens and fix a bug in the inspector app.
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/element-hq/compound-design-tokens.git",
|
||||
"state" : {
|
||||
"revision" : "bd38d61c1af0b7a786f3a7d4bf1d0afa3da86870",
|
||||
"version" : "6.4.2"
|
||||
"revision" : "3f7b00aa7e3724cd26be9a0913430191e3afd656",
|
||||
"version" : "6.4.3"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -31,6 +31,8 @@ enum Screen: Hashable, View {
|
||||
case textFields
|
||||
/// The `BigIcon` component.
|
||||
case bigIcon
|
||||
/// The `TitleAndIcon` component.
|
||||
case titleAndIcon
|
||||
|
||||
/// The system's confirmation dialog component
|
||||
case actionSheet
|
||||
@@ -56,6 +58,7 @@ enum Screen: Hashable, View {
|
||||
case .buttons: ButtonsScreen()
|
||||
case .textFields: EmptyView()
|
||||
case .bigIcon: BigIconScreen()
|
||||
case .titleAndIcon: TitleAndIconScreen()
|
||||
|
||||
case .actionSheet: ActionSheetScreen()
|
||||
case .alert: AlertScreen()
|
||||
|
||||
@@ -48,7 +48,7 @@ struct SidebarList: View {
|
||||
NavigationLink(value: Screen.bigIcon) {
|
||||
Label("Big Icon", systemImage: "square.dashed")
|
||||
}
|
||||
NavigationLink(value: Screen.bigIcon) {
|
||||
NavigationLink(value: Screen.titleAndIcon) {
|
||||
Label("Title & Icon", systemImage: "richtext.page")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/element-hq/compound-design-tokens",
|
||||
"state" : {
|
||||
"revision" : "bd38d61c1af0b7a786f3a7d4bf1d0afa3da86870",
|
||||
"version" : "6.4.2"
|
||||
"revision" : "3f7b00aa7e3724cd26be9a0913430191e3afd656",
|
||||
"version" : "6.4.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.4.2"),
|
||||
.package(url: "https://github.com/element-hq/compound-design-tokens", exact: "6.4.3"),
|
||||
// .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"),
|
||||
|
||||
@@ -23,7 +23,7 @@ public struct BigIcon: View {
|
||||
var foregroundColor: Color {
|
||||
switch self {
|
||||
case .defaultSolid, .default:
|
||||
.compound.iconSecondary
|
||||
.compound.iconPrimary
|
||||
case .alertSolid, .alert:
|
||||
.compound.iconCriticalPrimary
|
||||
case .successSolid, .success:
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:331ca045d1cf2a934949e4d036e6319cc3d2d7b7c6dfa8e0da72d4aea14131bc
|
||||
size 86689
|
||||
oid sha256:cfb365f0661902e712378ba2231c8cac0a2218d3c10fa600e8cc60db1d5105ba
|
||||
size 86933
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d3f5bf778a60fc5619035c4ffb6b77b27477261a2addf1a0da7e2c01b23451af
|
||||
size 45807
|
||||
oid sha256:d0dab51c3b09212a708aa59da25662f585a33d842bcd21f0e9fd858186e56bff
|
||||
size 46019
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:64e82affdf3abe32d17b942a3f8eda1b417c2c86c183b3584fbd1f17fd6c7ad4
|
||||
size 98586
|
||||
oid sha256:da64e75268e94c78e9f1f245545559ec0ace5885faf345bb0f7ca9dc5d334775
|
||||
size 98716
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4a6e5b16fa2324399611d629a869d4eb15a085ae78de6275969f4d503a3e93d4
|
||||
size 56345
|
||||
oid sha256:be5f7af155dd7ee94d93422189fdd9affdbc2a54dcd81ad783b60793f4a3eb09
|
||||
size 56392
|
||||
|
||||
Reference in New Issue
Block a user