Remove card border

This commit is contained in:
MM20 2025-06-29 17:00:58 +02:00
parent e179ef9a31
commit 01daecec40
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
3 changed files with 0 additions and 17 deletions

View File

@ -26,11 +26,6 @@ fun ProvideSettings(
val settings: UiSettings = koinInject()
val widgetRepository: WidgetRepository = koinInject()
val cardStyle by remember {
settings.cardStyle.distinctUntilChanged()
}.collectAsState(
CardStyle()
)
val iconShape by remember {
settings.iconShape.distinctUntilChanged()
}.collectAsState(IconShape.Circle)
@ -47,7 +42,6 @@ fun ProvideSettings(
}.collectAsState(GridSettings())
CompositionLocalProvider(
LocalCardStyle provides cardStyle,
LocalFavoritesEnabled provides favoritesEnabled,
LocalGridSettings provides gridSettings,
) {

View File

@ -24,14 +24,11 @@ fun LauncherCard(
1f
)
),
border: BorderStroke? = LocalCardStyle.current.borderWidth.takeIf { it > 0 }
?.let { BorderStroke(it.dp, MaterialTheme.colorScheme.surface) },
content: @Composable () -> Unit = {}
) {
Surface(
modifier = modifier,
shape = shape,
border = border,
content = content,
contentColor = MaterialTheme.colorScheme.onSurface,
color = color,

View File

@ -102,14 +102,6 @@ fun AppearanceSettingsScreen() {
},
icon = Icons.Rounded.Opacity,
)
Preference(
title = stringResource(R.string.preference_cards),
summary = stringResource(R.string.preference_cards_summary),
onClick = {
navController?.navigate("settings/appearance/cards")
}
)
}
}