Update compound (#3519)

* Update compound

textPlaceholder is now textSecondary.

* Update compound again with support for button shapes on the plain button style.
This commit is contained in:
Doug 2024-11-15 13:42:53 +00:00 committed by GitHub
parent ef288a9662
commit c888a5b4aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
150 changed files with 295 additions and 295 deletions

View File

@ -8249,7 +8249,7 @@
repositoryURL = "https://github.com/element-hq/compound-ios";
requirement = {
kind = revision;
revision = 950a8884e269194e6030cbddabebbb116cdfe02a;
revision = 4af41551fb7a7b9da0fd95171f2dec554726fadd;
};
};
F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */ = {

View File

@ -6,8 +6,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-design-tokens",
"state" : {
"revision" : "f9510e9d309b5aeefe9a7ef6b8c073c84337d4e9",
"version" : "1.9.1"
"revision" : "6190515a2af1eb1cb02114270fd536f1b6daa518",
"version" : "2.0.1"
}
},
{
@ -15,7 +15,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-ios",
"state" : {
"revision" : "950a8884e269194e6030cbddabebbb116cdfe02a"
"revision" : "4af41551fb7a7b9da0fd95171f2dec554726fadd"
}
},
{

View File

@ -21,7 +21,7 @@ struct SFNumberedListView: View {
Image(systemSymbol: getSymbol(for: index))
.imageScale(.large)
.fontWeight(.light)
.foregroundColor(.compound.textPlaceholder)
.foregroundColor(.compound.textSecondary)
}
.foregroundColor(.compound.textPrimary)
.font(.compound.bodyMD)

View File

@ -68,7 +68,7 @@ public struct AuthenticationTextFieldStyle: TextFieldStyle {
/// The color of the placeholder text inside the text field.
private var placeholderColor: UIColor {
.compound.textPlaceholder
.compound.textSecondary
}
/// The color of the label above the text field.

View File

@ -66,7 +66,7 @@ struct LoginScreen: View {
.padding(.bottom, 8)
TextField(text: $context.username) {
Text(L10n.commonUsername).foregroundColor(.compound.textPlaceholder)
Text(L10n.commonUsername).foregroundColor(.compound.textSecondary)
}
.focused($isUsernameFocused)
.textFieldStyle(.authentication(accessibilityIdentifier: A11yIdentifiers.loginScreen.emailUsername))
@ -81,7 +81,7 @@ struct LoginScreen: View {
.padding(.bottom, 20)
SecureField(text: $context.password) {
Text(L10n.commonPassword).foregroundColor(.compound.textPlaceholder)
Text(L10n.commonPassword).foregroundColor(.compound.textSecondary)
}
.focused($isPasswordFocused)
.textFieldStyle(.authentication(accessibilityIdentifier: A11yIdentifiers.loginScreen.password))

View File

@ -66,7 +66,7 @@ struct CreateRoomScreen: View {
TextField(L10n.screenCreateRoomRoomNameLabel,
text: roomNameBinding,
prompt: Text(L10n.commonRoomNamePlaceholder).foregroundColor(.compound.textPlaceholder),
prompt: Text(L10n.commonRoomNamePlaceholder).foregroundColor(.compound.textSecondary),
axis: .horizontal)
.focused($focus, equals: .name)
.accessibilityIdentifier(A11yIdentifiers.createRoomScreen.roomName)

View File

@ -73,7 +73,7 @@ struct HomeScreenInviteCell: View {
!room.isDirect {
RoomInviterLabel(inviter: inviter, mediaProvider: context.mediaProvider)
.font(.compound.bodyMD)
.foregroundStyle(.compound.textPlaceholder)
.foregroundStyle(.compound.textSecondary)
}
}
@ -88,7 +88,7 @@ struct HomeScreenInviteCell: View {
if let subtitle {
Text(subtitle)
.font(.compound.bodyMD)
.foregroundColor(.compound.textPlaceholder)
.foregroundColor(.compound.textSecondary)
}
}
.frame(maxWidth: .infinity, alignment: .leading)

View File

@ -56,7 +56,7 @@ struct HomeScreenKnockedCell: View {
Text(L10n.screenRoomlistKnockEventSentDescription)
.font(.compound.bodyMD)
.foregroundStyle(.compound.textPlaceholder)
.foregroundStyle(.compound.textSecondary)
.padding(.top, room.canonicalAlias == nil ? 0 : 4)
.padding(.trailing, 16)
}
@ -76,7 +76,7 @@ struct HomeScreenKnockedCell: View {
if let subtitle {
Text(subtitle)
.font(.compound.bodyMD)
.foregroundColor(.compound.textPlaceholder)
.foregroundColor(.compound.textSecondary)
}
}
.frame(maxWidth: .infinity, alignment: .leading)

View File

@ -14,7 +14,7 @@ struct TypingIndicatorView: View {
var body: some View {
content
.font(.compound.bodySM)
.foregroundColor(.compound.textPlaceholder)
.foregroundColor(.compound.textSecondary)
.lineLimit(1)
.truncationMode(.middle)
.padding(.horizontal, 4)

Some files were not shown because too many files have changed in this diff Show More