Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ internal fun PlaybackToggleButton(
) {
Icon(
painter = icon,
modifier = Modifier.size(20.dp),
contentDescription = label,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
Expand All @@ -32,7 +31,6 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import io.getstream.chat.android.compose.R
import io.getstream.chat.android.compose.state.messages.attachments.AttachmentState
import io.getstream.chat.android.compose.ui.theme.ChatTheme
Expand Down Expand Up @@ -80,7 +78,6 @@ public fun UnsupportedAttachmentContent(
painter = painterResource(R.drawable.stream_design_ic_unsupported_attachment),
tint = ChatTheme.colors.textPrimary,
contentDescription = null,
modifier = Modifier.size(20.dp),
)

Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
Expand All @@ -37,7 +36,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import io.getstream.chat.android.compose.R
import io.getstream.chat.android.compose.state.mediagallerypreview.Delete
import io.getstream.chat.android.compose.state.mediagallerypreview.MediaGalleryPreviewOption
Expand Down Expand Up @@ -132,7 +130,6 @@ internal fun MediaGalleryOptionItem(
verticalAlignment = Alignment.CenterVertically,
) {
Icon(
modifier = Modifier.size(20.dp),
painter = option.iconPainter,
tint = option.iconColor,
contentDescription = option.title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,6 @@ internal fun MediaGalleryPreviewShareIcon(
Icon(
painter = painterResource(id = painter),
contentDescription = stringResource(id = description),
modifier = Modifier.size(20.dp),
)
}
}
Expand Down Expand Up @@ -949,7 +948,6 @@ internal fun MediaGalleryPreviewPhotosIcon(
Icon(
painter = painterResource(id = R.drawable.stream_design_ic_gallery),
contentDescription = stringResource(id = R.string.stream_compose_image_preview_photos),
modifier = Modifier.size(20.dp),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ internal fun VideoPlaybackControls(
Icon(
painter = painterResource(icon),
contentDescription = stringResource(contentDescription),
modifier = Modifier.size(20.dp),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ private fun AddMembersHeader(
style = StreamButtonStyleDefaults.secondaryGhost,
) {
Icon(
modifier = Modifier.size(20.dp),
painter = painterResource(id = R.drawable.stream_design_ic_arrow_left),
contentDescription = stringResource(id = UiCommonR.string.stream_ui_back_button),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package io.getstream.chat.android.compose.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -52,7 +51,6 @@ public fun ComposerCancelIcon(
.border(2.dp, colors.controlRemoveBorder, CircleShape)
.padding(2.dp)
.background(color = colors.controlRemoveBg, shape = CircleShape)
.size(20.dp)
.clickable(bounded = false, onClick = onClick),
painter = painterResource(R.drawable.stream_design_ic_xmark_small),
contentDescription = contentDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.HorizontalDivider
Expand Down Expand Up @@ -96,7 +95,6 @@ internal fun ContextualMenuItem(
painter = it,
contentDescription = null,
tint = iconColor,
modifier = Modifier.size(20.dp),
)
}

Expand All @@ -114,7 +112,6 @@ internal fun ContextualMenuItem(
painter = it,
contentDescription = null,
tint = iconColor,
modifier = Modifier.size(20.dp),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public fun PollMessageContent(
params = MessageFailedIconParams(
modifier = Modifier
.padding(vertical = StreamTokens.spacingXs)
.size(20.dp)
.align(Alignment.TopEnd),
message = message,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Popup
import io.getstream.chat.android.compose.R
import io.getstream.chat.android.compose.ui.components.avatar.AvatarSize
Expand Down Expand Up @@ -155,7 +154,6 @@ private fun Content(
Icon(
painter = painterResource(id = R.drawable.stream_design_ic_edit),
contentDescription = stringResource(id = R.string.stream_compose_add_answer),
modifier = Modifier.size(20.dp),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
Expand Down Expand Up @@ -187,7 +186,6 @@ private fun ReorderableScope.PollOptionRow(
painter = painterResource(R.drawable.stream_design_ic_minus_circle),
contentDescription = stringResource(R.string.stream_compose_poll_option_remove, displayName),
tint = colors.inputTextIcon,
modifier = Modifier.size(20.dp),
)
}
}
Expand Down Expand Up @@ -217,7 +215,6 @@ private fun PollOptionErrorRow(pollOptionError: PollOptionError) {
painter = painterResource(R.drawable.stream_design_ic_exclamation_circle),
contentDescription = null,
tint = colors.accentError,
modifier = Modifier.size(20.dp),
)
Text(
text = pollOptionError.message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ private fun StepperButton(
contentAlignment = Alignment.Center,
) {
Icon(
modifier = Modifier.size(20.dp),
painter = painterResource(id = iconRes),
contentDescription = contentDescription,
tint = if (enabled) ChatTheme.colors.buttonSecondaryText else ChatTheme.colors.textDisabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ public fun EmojiMessageContent(
params = MessageFailedIconParams(
modifier = Modifier
.padding(vertical = StreamTokens.spacingXs)
.size(20.dp)
.align(Alignment.TopEnd),
message = message,
),
Expand Down Expand Up @@ -782,7 +781,6 @@ public fun RegularMessageContent(
params = MessageFailedIconParams(
modifier = Modifier
.padding(vertical = StreamTokens.spacingXs)
.size(20.dp)
.align(Alignment.TopEnd)
.testTag("Stream_MessageFailedIcon"),
message = message,
Expand Down
Loading