Change CompoundIcons.Error to CompoundIcons.ErrorSolid

This commit is contained in:
Benoit Marty 2025-02-26 18:52:31 +01:00
parent 33702588ef
commit d1d130af75
9 changed files with 9 additions and 9 deletions

View file

@ -136,7 +136,7 @@ private fun ColumnScope.Buttons(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
Icon( Icon(
imageVector = CompoundIcons.Error(), imageVector = CompoundIcons.ErrorSolid(),
tint = ElementTheme.colors.iconCriticalPrimary, tint = ElementTheme.colors.iconCriticalPrimary,
contentDescription = null, contentDescription = null,
modifier = Modifier.size(24.dp) modifier = Modifier.size(24.dp)

View file

@ -391,7 +391,7 @@ private fun VerifiedUserSendFailureView(
modifier = modifier modifier = modifier
.clickable(onClick = onClick) .clickable(onClick = onClick)
.padding(horizontal = 16.dp, vertical = 8.dp), .padding(horizontal = 16.dp, vertical = 8.dp),
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Error())), leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.ErrorSolid())),
trailingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.ChevronRight())), trailingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.ChevronRight())),
headlineContent = { headlineContent = {
Text( Text(

View file

@ -68,7 +68,7 @@ fun TimelineEventTimestampView(
val isVerifiedUserSendFailure = event.localSendState is LocalEventSendState.Failed.VerifiedUser val isVerifiedUserSendFailure = event.localSendState is LocalEventSendState.Failed.VerifiedUser
Spacer(modifier = Modifier.width(2.dp)) Spacer(modifier = Modifier.width(2.dp))
Icon( Icon(
imageVector = CompoundIcons.Error(), imageVector = CompoundIcons.ErrorSolid(),
contentDescription = stringResource(id = CommonStrings.common_sending_failed), contentDescription = stringResource(id = CommonStrings.common_sending_failed),
tint = tint, tint = tint,
modifier = Modifier modifier = Modifier

View file

@ -93,7 +93,7 @@ internal fun MatrixBadgeAtomNegativePreview() = ElementPreview {
MatrixBadgeAtom.View( MatrixBadgeAtom.View(
MatrixBadgeAtom.MatrixBadgeData( MatrixBadgeAtom.MatrixBadgeData(
text = "Not trusted", text = "Not trusted",
icon = CompoundIcons.Error(), icon = CompoundIcons.ErrorSolid(),
type = MatrixBadgeAtom.Type.Negative, type = MatrixBadgeAtom.Type.Negative,
) )
) )

View file

@ -118,7 +118,7 @@ private fun InformativeAnnouncement(
AnnouncementSurface(modifier = modifier) { AnnouncementSurface(modifier = modifier) {
Row { Row {
Icon( Icon(
imageVector = if (isError) CompoundIcons.Error() else CompoundIcons.Info(), imageVector = if (isError) CompoundIcons.ErrorSolid() else CompoundIcons.Info(),
tint = if (isError) ElementTheme.colors.iconCriticalPrimary else ElementTheme.colors.iconPrimary, tint = if (isError) ElementTheme.colors.iconCriticalPrimary else ElementTheme.colors.iconPrimary,
contentDescription = null, contentDescription = null,
) )

View file

@ -105,7 +105,7 @@ object BigIcon {
val icon = when (style) { val icon = when (style) {
is Style.Default -> style.vectorIcon is Style.Default -> style.vectorIcon
Style.Alert, Style.Alert,
Style.AlertSolid -> CompoundIcons.Error() Style.AlertSolid -> CompoundIcons.ErrorSolid()
Style.Success, Style.Success,
Style.SuccessSolid -> CompoundIcons.CheckCircleSolid() Style.SuccessSolid -> CompoundIcons.CheckCircleSolid()
} }

View file

@ -259,7 +259,7 @@ private fun SupportingTextLayout(validity: TextFieldValidity?, supportingText: S
when (validity) { when (validity) {
TextFieldValidity.Invalid -> { TextFieldValidity.Invalid -> {
Icon( Icon(
imageVector = CompoundIcons.Error(), imageVector = CompoundIcons.ErrorSolid(),
contentDescription = null, contentDescription = null,
modifier = Modifier.size(16.dp), modifier = Modifier.size(16.dp),
tint = ElementTheme.colors.iconCriticalPrimary tint = ElementTheme.colors.iconCriticalPrimary

View file

@ -68,7 +68,7 @@ fun UnresolvedUserRow(
.padding(top = 3.dp) .padding(top = 3.dp)
) { ) {
Icon( Icon(
imageVector = CompoundIcons.Error(), imageVector = CompoundIcons.ErrorSolid(),
contentDescription = null, contentDescription = null,
modifier = Modifier modifier = Modifier
.size(18.dp) .size(18.dp)

View file

@ -98,7 +98,7 @@ private fun ColumnScope.TroubleshootTestView(
Icon( Icon(
contentDescription = null, contentDescription = null,
modifier = Modifier.size(24.dp), modifier = Modifier.size(24.dp),
imageVector = CompoundIcons.Error(), imageVector = CompoundIcons.ErrorSolid(),
tint = ElementTheme.colors.textCriticalPrimary tint = ElementTheme.colors.textCriticalPrimary
) )
} }