Skip to content

Commit

Permalink
feat(HomeScreen): minor layout adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Mar 4, 2024
1 parent 9e80857 commit 5824084
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
Expand Down Expand Up @@ -141,7 +140,7 @@ fun PresentInstallsContent(
item(key = "SUPPORTED_VERSION") {
AnimatedVersionDisplay(
version = model.supportedVersion,
modifier = Modifier.padding(bottom = 22.dp),
modifier = Modifier.padding(bottom = 30.dp),
)
}

Expand All @@ -166,6 +165,21 @@ fun PresentInstallsContent(
)
}
}

item(key = "END_INDICATOR") {
Box(
contentAlignment = Alignment.Center,
modifier = Modifier
.alpha(.6f)
.padding(top = 12.dp)
.fillMaxWidth(),
) {
Text(
text = "...",
style = MaterialTheme.typography.labelSmall,
)
}
}
}
}

Expand Down Expand Up @@ -193,7 +207,7 @@ fun NoInstallsContent(

AnimatedVersionDisplay(
version = supportedVersion,
modifier = Modifier.padding(bottom = 22.dp),
modifier = Modifier.padding(bottom = 30.dp),
)

Box(
Expand All @@ -202,22 +216,18 @@ fun NoInstallsContent(
Column(
verticalArrangement = Arrangement.spacedBy(6.dp),
modifier = Modifier
.alpha(.1f)
.alpha(.3f)
.fillMaxSize()
) {
for (i in 0..<3) key(i) {
Surface(
content = {},
shape = MaterialTheme.shapes.medium,
tonalElevation = 2.dp,
tonalElevation = 1.dp,
shadowElevation = 2.dp,
modifier = Modifier
.fillMaxWidth()
.height(195.dp)
.shadow(
clip = false,
elevation = 2.dp,
shape = MaterialTheme.shapes.medium,
),
.height(195.dp),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fun InstalledItemCard(
)
) {
Column(
verticalArrangement = Arrangement.spacedBy(20.dp),
verticalArrangement = Arrangement.spacedBy(24.dp),
modifier = Modifier.padding(20.dp),
) {
Row(
Expand Down

0 comments on commit 5824084

Please sign in to comment.