Loading packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/SettingsShape.kt +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.settingslib.spa.framework.theme import androidx.compose.foundation.shape.CornerSize import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.ui.unit.dp Loading @@ -31,4 +32,7 @@ object SettingsShape { val CornerExtraLarge = RoundedCornerShape(28.dp) val CornerExtraLarge1 = RoundedCornerShape(40.dp) val BottomCornerMedium2 = RoundedCornerShape(CornerSize(0), CornerSize(0), CornerSize(20.dp), CornerSize(20.dp)) } packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/Category.kt +12 −3 Original line number Diff line number Diff line Loading @@ -106,7 +106,9 @@ fun Category( } .then( if (isSpaExpressiveEnabled) Modifier.fillMaxWidth().clip(SettingsShape.CornerMedium2) Modifier .fillMaxWidth() .clip(SettingsShape.CornerMedium2) else Modifier ), verticalArrangement = Loading Loading @@ -144,7 +146,8 @@ fun LazyCategory( ) { header() Column( Modifier.padding( Modifier .padding( PaddingValues( start = SettingsDimension.paddingLarge, end = SettingsDimension.paddingLarge, Loading @@ -161,8 +164,14 @@ fun LazyCategory( ) { items(count = list.size, key = key) { title?.invoke(it)?.let { title -> CategoryTitle(title) } if (list.isNotEmpty() && it < list.size - 1) { CompositionLocalProvider(LocalIsInCategory provides true) { entry(it)() } } else { Column(modifier = Modifier.clip(SettingsShape.BottomCornerMedium2)) { CompositionLocalProvider(LocalIsInCategory provides true) { entry(it)() } } } } item { CompositionLocalProvider(LocalIsInCategory provides true) { footer() } } } Loading Loading
packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/SettingsShape.kt +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.settingslib.spa.framework.theme import androidx.compose.foundation.shape.CornerSize import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.ui.unit.dp Loading @@ -31,4 +32,7 @@ object SettingsShape { val CornerExtraLarge = RoundedCornerShape(28.dp) val CornerExtraLarge1 = RoundedCornerShape(40.dp) val BottomCornerMedium2 = RoundedCornerShape(CornerSize(0), CornerSize(0), CornerSize(20.dp), CornerSize(20.dp)) }
packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/Category.kt +12 −3 Original line number Diff line number Diff line Loading @@ -106,7 +106,9 @@ fun Category( } .then( if (isSpaExpressiveEnabled) Modifier.fillMaxWidth().clip(SettingsShape.CornerMedium2) Modifier .fillMaxWidth() .clip(SettingsShape.CornerMedium2) else Modifier ), verticalArrangement = Loading Loading @@ -144,7 +146,8 @@ fun LazyCategory( ) { header() Column( Modifier.padding( Modifier .padding( PaddingValues( start = SettingsDimension.paddingLarge, end = SettingsDimension.paddingLarge, Loading @@ -161,8 +164,14 @@ fun LazyCategory( ) { items(count = list.size, key = key) { title?.invoke(it)?.let { title -> CategoryTitle(title) } if (list.isNotEmpty() && it < list.size - 1) { CompositionLocalProvider(LocalIsInCategory provides true) { entry(it)() } } else { Column(modifier = Modifier.clip(SettingsShape.BottomCornerMedium2)) { CompositionLocalProvider(LocalIsInCategory provides true) { entry(it)() } } } } item { CompositionLocalProvider(LocalIsInCategory provides true) { footer() } } } Loading