From 12dc6012641a15ae82688b5e0019e8599896cf28 Mon Sep 17 00:00:00 2001 From: Anton Potapov Date: Tue, 7 May 2024 13:39:02 +0100 Subject: Remove button padding value for the icon to work with the max display scale Flag: aconfig new_volume_panel NEXTFOOD Test: manual on the phone with max display scale Fixes: 338949421 Change-Id: Ia0d6bec3a346ec4f2a5da009166dadb00bb7c661 --- .../panel/component/button/ui/composable/ToggleButtonComponent.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) } -- cgit v1.2.3-59-g8ed1b