diff options
| author | 2024-05-08 10:20:56 +0000 | |
|---|---|---|
| committer | 2024-05-08 10:20:56 +0000 | |
| commit | 295f1852f8e8456bdc94fb0a6acb39d13d82ac6f (patch) | |
| tree | a18d09968f64989359ceca35f1097500028fa43b | |
| parent | 3559a2028062dff70f9e8921aeb026e53036b38a (diff) | |
| parent | 12dc6012641a15ae82688b5e0019e8599896cf28 (diff) | |
Merge "Remove button padding value for the icon to work with the max display scale" into main
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ToggleButtonComponent.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ToggleButtonComponent.kt b/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ToggleButtonComponent.kt index 874c0a299d2b..12debbc9c011 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ToggleButtonComponent.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/ToggleButtonComponent.kt @@ -19,6 +19,7 @@ package com.android.systemui.volume.panel.component.button.ui.composable import androidx.compose.foundation.basicMarquee import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size @@ -91,7 +92,8 @@ class ToggleButtonComponent( }, onClick = { onCheckedChange(!viewModel.isActive) }, shape = RoundedCornerShape(28.dp), - colors = colors + colors = colors, + contentPadding = PaddingValues(0.dp) ) { Icon(modifier = Modifier.size(24.dp), icon = viewModel.icon) } |