Skip to content

Commit 5824084

Browse files
committed
feat(HomeScreen): minor layout adjustments
1 parent 9e80857 commit 5824084

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

app/src/main/kotlin/com/aliucord/manager/ui/screens/home/HomeScreen.kt

+21-11
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import androidx.compose.runtime.*
1515
import androidx.compose.ui.Alignment
1616
import androidx.compose.ui.Modifier
1717
import androidx.compose.ui.draw.alpha
18-
import androidx.compose.ui.draw.shadow
1918
import androidx.compose.ui.res.stringResource
2019
import androidx.compose.ui.unit.dp
2120
import androidx.compose.ui.unit.sp
@@ -141,7 +140,7 @@ fun PresentInstallsContent(
141140
item(key = "SUPPORTED_VERSION") {
142141
AnimatedVersionDisplay(
143142
version = model.supportedVersion,
144-
modifier = Modifier.padding(bottom = 22.dp),
143+
modifier = Modifier.padding(bottom = 30.dp),
145144
)
146145
}
147146

@@ -166,6 +165,21 @@ fun PresentInstallsContent(
166165
)
167166
}
168167
}
168+
169+
item(key = "END_INDICATOR") {
170+
Box(
171+
contentAlignment = Alignment.Center,
172+
modifier = Modifier
173+
.alpha(.6f)
174+
.padding(top = 12.dp)
175+
.fillMaxWidth(),
176+
) {
177+
Text(
178+
text = "...",
179+
style = MaterialTheme.typography.labelSmall,
180+
)
181+
}
182+
}
169183
}
170184
}
171185

@@ -193,7 +207,7 @@ fun NoInstallsContent(
193207

194208
AnimatedVersionDisplay(
195209
version = supportedVersion,
196-
modifier = Modifier.padding(bottom = 22.dp),
210+
modifier = Modifier.padding(bottom = 30.dp),
197211
)
198212

199213
Box(
@@ -202,22 +216,18 @@ fun NoInstallsContent(
202216
Column(
203217
verticalArrangement = Arrangement.spacedBy(6.dp),
204218
modifier = Modifier
205-
.alpha(.1f)
219+
.alpha(.3f)
206220
.fillMaxSize()
207221
) {
208222
for (i in 0..<3) key(i) {
209223
Surface(
210224
content = {},
211225
shape = MaterialTheme.shapes.medium,
212-
tonalElevation = 2.dp,
226+
tonalElevation = 1.dp,
227+
shadowElevation = 2.dp,
213228
modifier = Modifier
214229
.fillMaxWidth()
215-
.height(195.dp)
216-
.shadow(
217-
clip = false,
218-
elevation = 2.dp,
219-
shape = MaterialTheme.shapes.medium,
220-
),
230+
.height(195.dp),
221231
)
222232
}
223233
}

app/src/main/kotlin/com/aliucord/manager/ui/screens/home/components/InstalledItemCard.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fun InstalledItemCard(
4343
)
4444
) {
4545
Column(
46-
verticalArrangement = Arrangement.spacedBy(20.dp),
46+
verticalArrangement = Arrangement.spacedBy(24.dp),
4747
modifier = Modifier.padding(20.dp),
4848
) {
4949
Row(

0 commit comments

Comments
 (0)