Skip to content

Commit

Permalink
feat: make step group more square
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Feb 8, 2024
1 parent 4ae22ce commit e705f4f
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
Expand All @@ -16,7 +15,6 @@ import androidx.compose.ui.unit.dp
import com.aliucord.manager.R
import com.aliucord.manager.installer.steps.base.Step
import com.aliucord.manager.installer.steps.base.StepState
import com.aliucord.manager.ui.util.thenIf
import kotlinx.collections.immutable.ImmutableList

@Composable
Expand Down Expand Up @@ -49,18 +47,16 @@ fun StepGroupCard(
Column(
modifier = Modifier
.fillMaxWidth()
.clip(RoundedCornerShape(16.dp))
.thenIf(isExpanded) {
background(MaterialTheme.colorScheme.surfaceColorAtElevation(1.dp))
}
.clip(MaterialTheme.shapes.large)
.background(MaterialTheme.colorScheme.surfaceColorAtElevation(1.dp))
) {
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(12.dp),
modifier = Modifier
.clickable(true, onClick = onExpand)
.fillMaxWidth()
.padding(16.dp)
.padding(horizontal = 16.dp, vertical = 20.dp)
) {
StepStateIcon(groupState, 24.dp)

Expand Down

0 comments on commit e705f4f

Please sign in to comment.