mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user