Skip to content
Snippets Groups Projects
Commit 295f1852 authored by Anton Potapov's avatar Anton Potapov Committed by Android (Google) Code Review
Browse files

Merge "Remove button padding value for the icon to work with the max display scale" into main

parents 3559a202 12dc6012
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment