From a7e57723109af4e9c8f0e4feee559a0abf197161 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Sat, 8 Oct 2022 02:47:28 +0200 Subject: [PATCH] Update: Smaller TopBar action icons --- .../machiav3lli/fdroid/ui/compose/components/TopBar.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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