diff options
| author | 2024-12-19 11:30:15 -0800 | |
|---|---|---|
| committer | 2024-12-19 11:30:15 -0800 | |
| commit | 936c43b439507f7734e21943c57cc9620eff4f90 (patch) | |
| tree | c5ff1249b8ecace1ea7dc639d793fd14f3436f4c | |
| parent | 98d6afef9da0e4f65d6d6c3af40dbb98027112bc (diff) | |
| parent | ee446571d4a4cea839f180ec92735cecfb89373c (diff) | |
Merge "Update EmptyStateCta with solid background color" into main
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt index bf3360f0ea14..fab0ca318fbf 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt @@ -1010,8 +1010,11 @@ private fun EmptyStateCta(contentPadding: PaddingValues, viewModel: BaseCommunal val colors = MaterialTheme.colorScheme Card( modifier = Modifier.height(hubDimensions.GridHeight).padding(contentPadding), - colors = CardDefaults.cardColors(containerColor = Color.Transparent), - border = BorderStroke(3.adjustedDp, colors.secondary), + colors = + CardDefaults.cardColors( + containerColor = colors.primary, + contentColor = colors.onPrimary, + ), shape = RoundedCornerShape(size = 80.adjustedDp), ) { Column( @@ -1032,13 +1035,14 @@ private fun EmptyStateCta(contentPadding: PaddingValues, viewModel: BaseCommunal heading() }, ) + Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.Center) { Button( modifier = Modifier.height(56.dp), colors = ButtonDefaults.buttonColors( - containerColor = colors.primary, - contentColor = colors.onPrimary, + containerColor = colors.primaryContainer, + contentColor = colors.onPrimaryContainer, ), onClick = { viewModel.onOpenWidgetEditor(shouldOpenWidgetPickerOnStart = true) }, ) { |