mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Update: Smaller TopBar action icons
This commit is contained in:
parent
c91d9ca379
commit
a7e5772310
@ -5,7 +5,7 @@ import androidx.compose.foundation.layout.Arrangement
|
|||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.RowScope
|
import androidx.compose.foundation.layout.RowScope
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
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.KeyboardActions
|
||||||
import androidx.compose.foundation.text.KeyboardOptions
|
import androidx.compose.foundation.text.KeyboardOptions
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
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.TextRange
|
||||||
import androidx.compose.ui.text.input.ImeAction
|
import androidx.compose.ui.text.input.ImeAction
|
||||||
import androidx.compose.ui.text.input.TextFieldValue
|
import androidx.compose.ui.text.input.TextFieldValue
|
||||||
|
import androidx.compose.ui.unit.dp
|
||||||
import com.machiav3lli.fdroid.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.machiav3lli.fdroid.ui.compose.icons.Phosphor
|
import com.machiav3lli.fdroid.ui.compose.icons.Phosphor
|
||||||
import com.machiav3lli.fdroid.ui.compose.icons.phosphor.MagnifyingGlass
|
import com.machiav3lli.fdroid.ui.compose.icons.phosphor.MagnifyingGlass
|
||||||
@ -143,6 +144,7 @@ fun ExpandedSearchView(
|
|||||||
colors = TextFieldDefaults.textFieldColors(containerColor = Color.Transparent),
|
colors = TextFieldDefaults.textFieldColors(containerColor = Color.Transparent),
|
||||||
leadingIcon = {
|
leadingIcon = {
|
||||||
Icon(
|
Icon(
|
||||||
|
modifier = Modifier.size(24.dp),
|
||||||
imageVector = Phosphor.MagnifyingGlass,
|
imageVector = Phosphor.MagnifyingGlass,
|
||||||
contentDescription = stringResource(id = R.string.search),
|
contentDescription = stringResource(id = R.string.search),
|
||||||
)
|
)
|
||||||
@ -172,6 +174,10 @@ fun TopBarAction(
|
|||||||
onClick: (() -> Unit)
|
onClick: (() -> Unit)
|
||||||
) {
|
) {
|
||||||
IconButton(onClick = onClick) {
|
IconButton(onClick = onClick) {
|
||||||
Icon(imageVector = icon, contentDescription = description)
|
Icon(
|
||||||
|
modifier = Modifier.size(24.dp),
|
||||||
|
imageVector = icon,
|
||||||
|
contentDescription = description
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user