feat(ui): small tweaks

This commit is contained in:
junkfood 2024-11-12 16:48:17 +08:00
parent 8eb940192d
commit 10901be1ec
No known key found for this signature in database
GPG Key ID: 2EA5B648DB112A34
2 changed files with 14 additions and 12 deletions

View File

@ -26,7 +26,9 @@ import androidx.compose.material.icons.rounded.UnfoldLess
import androidx.compose.material.icons.rounded.UnfoldMore
import androidx.compose.material.rememberModalBottomSheetState
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FilledTonalIconButton
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.pulltorefresh.PullToRefreshBox
@ -282,14 +284,12 @@ fun FeedsPage(
color = MaterialTheme.colorScheme.primary,
style = MaterialTheme.typography.labelLarge,
)
Row(
modifier = Modifier
.padding(end = 12.dp)
.size(20.dp)
.clip(CircleShape)
.clickable { if (hasGroupVisible) collapseAllGroups() else expandAllGroups() },
horizontalArrangement = Arrangement.Center,
verticalAlignment = Alignment.CenterVertically,
IconButton(
onClick = {
if (hasGroupVisible) collapseAllGroups() else expandAllGroups()
}, modifier = Modifier
.padding(end = 8.dp)
.size(28.dp)
) {
Icon(
imageVector = if (hasGroupVisible) Icons.Rounded.UnfoldLess else Icons.Rounded.UnfoldMore,

View File

@ -72,7 +72,9 @@ fun Content(
.fillMaxSize()
) {
Column(modifier = Modifier.verticalScroll(scrollState)) {
Column(modifier = Modifier
.fillMaxSize()
.verticalScroll(scrollState)) {
// Top bar height
Spacer(modifier = Modifier.height(64.dp))
// padding