Skip to content

Commit

Permalink
Replace "add" text button with icon button in feed link input
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Oct 27, 2023
1 parent fbab6ca commit 86ac5d3
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.CheckCircle
import androidx.compose.material.icons.rounded.ArrowBack
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.IconButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.material3.TextField
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -127,17 +127,16 @@ internal fun FeedLinkInputField(
strokeWidth = 4.dp
)
} else {
TextButton(
modifier = Modifier.padding(end = 8.dp),
enabled = !isInputBlank,
IconButton(
onClick = { onAddFeed() },
enabled = !isInputBlank,
colors =
ButtonDefaults.textButtonColors(
IconButtonDefaults.iconButtonColors(
contentColor = AppTheme.colorScheme.tintedForeground,
disabledContentColor = AppTheme.colorScheme.tintedForeground.copy(alpha = 0.4f)
)
),
) {
Text(text = LocalStrings.current.buttonAdd, style = MaterialTheme.typography.labelLarge)
Icon(Icons.Outlined.CheckCircle, contentDescription = LocalStrings.current.buttonAdd)
}
}
},
Expand Down

0 comments on commit 86ac5d3

Please sign in to comment.