Skip to content

Commit 9a9d1ea

Browse files
committed
feat: Finish up design
1 parent 690ab65 commit 9a9d1ea

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

app/src/main/java/app/revanced/manager/ui/screen/settings/DownloadsSettingsScreen.kt

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import androidx.compose.ui.input.nestedscroll.nestedScroll
3939
import androidx.compose.ui.platform.LocalContext
4040
import androidx.compose.ui.res.stringResource
4141
import androidx.compose.ui.text.style.TextAlign
42-
import androidx.compose.ui.tooling.preview.Preview
4342
import androidx.compose.ui.unit.dp
4443
import androidx.compose.ui.zIndex
4544
import androidx.lifecycle.compose.collectAsStateWithLifecycle
@@ -241,21 +240,6 @@ fun DownloadsSettingsScreen(
241240
}
242241
}
243242

244-
@Preview
245-
@Composable
246-
private fun PreviewTrustDialog() {
247-
TrustDialog(
248-
title = R.string.downloader_plugin_trust_dialog_title,
249-
body = stringResource(
250-
R.string.downloader_plugin_trust_dialog_body,
251-
),
252-
onDismiss = { },
253-
onConfirm = { },
254-
pluginName = "app.revanced.manager.apkmirror",
255-
signature = "23 01 84 F6 0B AE 2F EA F2 44 F1 0A 8B AC 05 3C 8F F3 3A 18 3B CC 36 5B 4D 8B 87 6D 2B 7F 48 09"
256-
)
257-
}
258-
259243
@Composable
260244
private fun TrustDialog(
261245
@StringRes title: Int,
@@ -281,7 +265,11 @@ private fun TrustDialog(
281265
text = {
282266
Column(verticalArrangement = Arrangement.spacedBy(12.dp)) {
283267
Text(body)
284-
Card {
268+
Card(
269+
colors = CardDefaults.outlinedCardColors(
270+
containerColor = MaterialTheme.colorScheme.surfaceContainer
271+
)
272+
) {
285273
Column(
286274
Modifier.padding(12.dp),
287275
verticalArrangement = Arrangement.spacedBy(12.dp)
@@ -294,7 +282,7 @@ private fun TrustDialog(
294282
)
295283
OutlinedCard(
296284
colors = CardDefaults.outlinedCardColors(
297-
containerColor = MaterialTheme.colorScheme.surfaceContainerHighest
285+
containerColor = MaterialTheme.colorScheme.surfaceContainerHigh
298286
)
299287
) {
300288
Text(

0 commit comments

Comments
 (0)