@@ -15,7 +15,6 @@ import androidx.compose.runtime.*
15
15
import androidx.compose.ui.Alignment
16
16
import androidx.compose.ui.Modifier
17
17
import androidx.compose.ui.draw.alpha
18
- import androidx.compose.ui.draw.shadow
19
18
import androidx.compose.ui.res.stringResource
20
19
import androidx.compose.ui.unit.dp
21
20
import androidx.compose.ui.unit.sp
@@ -131,6 +130,7 @@ fun PresentInstallsContent(
131
130
132
131
item(key = " ADD_INSTALL_BUTTON" ) {
133
132
InstallButton (
133
+ secondaryInstall = true ,
134
134
onClick = onClickInstall,
135
135
modifier = Modifier
136
136
.fillMaxWidth()
@@ -141,7 +141,7 @@ fun PresentInstallsContent(
141
141
item(key = " SUPPORTED_VERSION" ) {
142
142
AnimatedVersionDisplay (
143
143
version = model.supportedVersion,
144
- modifier = Modifier .padding(bottom = 22 .dp),
144
+ modifier = Modifier .padding(bottom = 30 .dp),
145
145
)
146
146
}
147
147
@@ -166,6 +166,21 @@ fun PresentInstallsContent(
166
166
)
167
167
}
168
168
}
169
+
170
+ item(key = " END_INDICATOR" ) {
171
+ Box (
172
+ contentAlignment = Alignment .Center ,
173
+ modifier = Modifier
174
+ .alpha(.6f )
175
+ .padding(top = 12 .dp)
176
+ .fillMaxWidth(),
177
+ ) {
178
+ Text (
179
+ text = " ..." ,
180
+ style = MaterialTheme .typography.labelSmall,
181
+ )
182
+ }
183
+ }
169
184
}
170
185
}
171
186
@@ -185,6 +200,7 @@ fun NoInstallsContent(
185
200
ProjectHeader ()
186
201
187
202
InstallButton (
203
+ secondaryInstall = false ,
188
204
onClick = onClickInstall,
189
205
modifier = Modifier
190
206
.fillMaxWidth()
@@ -193,54 +209,27 @@ fun NoInstallsContent(
193
209
194
210
AnimatedVersionDisplay (
195
211
version = supportedVersion,
196
- modifier = Modifier .padding(bottom = 22 .dp),
212
+ modifier = Modifier .padding(bottom = 30 .dp),
197
213
)
198
214
199
- Box (
200
- modifier = Modifier .fillMaxSize(),
215
+ Column (
216
+ verticalArrangement = Arrangement .spacedBy(12 .dp, Alignment .CenterVertically ),
217
+ horizontalAlignment = Alignment .CenterHorizontally ,
218
+ modifier = Modifier
219
+ .alpha(.7f )
220
+ .padding(bottom = 90 .dp)
221
+ .fillMaxSize()
201
222
) {
202
- Column (
203
- verticalArrangement = Arrangement .spacedBy(6 .dp),
204
- modifier = Modifier
205
- .alpha(.1f )
206
- .fillMaxSize()
207
- ) {
208
- for (i in 0 .. < 3 ) key(i) {
209
- Surface (
210
- content = {},
211
- shape = MaterialTheme .shapes.medium,
212
- tonalElevation = 2 .dp,
213
- modifier = Modifier
214
- .fillMaxWidth()
215
- .height(195 .dp)
216
- .shadow(
217
- clip = false ,
218
- elevation = 2 .dp,
219
- shape = MaterialTheme .shapes.medium,
220
- ),
221
- )
222
- }
223
- }
224
-
225
- Column (
226
- verticalArrangement = Arrangement .spacedBy(14 .dp),
227
- horizontalAlignment = Alignment .CenterHorizontally ,
228
- modifier = Modifier
229
- .alpha(.8f )
230
- .align(Alignment .Center )
231
- .padding(bottom = 80 .dp),
232
- ) {
233
- Text (
234
- text = """ /ᐠﹷ ‸ ﹷ ᐟ\ノ""" ,
235
- style = MaterialTheme .typography.labelLarge
236
- .copy(fontSize = 38 .sp),
237
- )
223
+ Text (
224
+ text = """ /ᐠﹷ ‸ ﹷ ᐟ\ノ""" ,
225
+ style = MaterialTheme .typography.labelLarge
226
+ .copy(fontSize = 38 .sp),
227
+ )
238
228
239
- Text (
240
- text = stringResource(R .string.installs_no_installs),
241
- style = MaterialTheme .typography.labelMedium,
242
- )
243
- }
229
+ Text (
230
+ text = stringResource(R .string.installs_no_installs),
231
+ style = MaterialTheme .typography.labelLarge,
232
+ )
244
233
}
245
234
}
246
235
}
0 commit comments