diff --git a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt index 8034e566..aee07334 100644 --- a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt +++ b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt @@ -5,7 +5,7 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.fillMaxWidth -import androidx.compose.foundation.layout.wrapContentHeight +import androidx.compose.foundation.layout.size import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material3.ExperimentalMaterial3Api @@ -35,6 +35,7 @@ import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.TextRange import androidx.compose.ui.text.input.ImeAction import androidx.compose.ui.text.input.TextFieldValue +import androidx.compose.ui.unit.dp import com.machiav3lli.fdroid.R import com.machiav3lli.fdroid.ui.compose.icons.Phosphor import com.machiav3lli.fdroid.ui.compose.icons.phosphor.MagnifyingGlass @@ -143,6 +144,7 @@ fun ExpandedSearchView( colors = TextFieldDefaults.textFieldColors(containerColor = Color.Transparent), leadingIcon = { Icon( + modifier = Modifier.size(24.dp), imageVector = Phosphor.MagnifyingGlass, contentDescription = stringResource(id = R.string.search), ) @@ -172,6 +174,10 @@ fun TopBarAction( onClick: (() -> Unit) ) { IconButton(onClick = onClick) { - Icon(imageVector = icon, contentDescription = description) + Icon( + modifier = Modifier.size(24.dp), + imageVector = icon, + contentDescription = description + ) } } \ No newline at end of file