Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f10c0538 authored by Valentin Iftime's avatar Valentin Iftime
Browse files

Use correct icons for BundleHeaderGuts switch

 Use the correct icons and colors for the switch thumb icon.

Flag: com.android.systemui.notification_bundle_ui

Test: manual

Bug: 430179607
Change-Id: Ib2eee0a0a2163ed22fbb396c2b08b9498a8b2eca
parent 88a96f40
Loading
Loading
Loading
Loading
+19 −8
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.Settings
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.Icon
@@ -145,13 +146,23 @@ private fun ContentRow(viewModel: BundleHeaderGutsViewModel, modifier: Modifier
        Switch(
            checked = viewModel.switchState,
            onCheckedChange = null, // handled at the Row level above
            thumbContent = {
            thumbContent =
                if (viewModel.switchState) {
                    {
                        Icon(
                            imageVector = Icons.Default.Check,
                            contentDescription = null,
                            modifier = Modifier.size(SwitchDefaults.IconSize),
                    tint = MaterialTheme.colorScheme.onSecondaryContainer,
                        )
                    }
                } else {
                    {
                        Icon(
                            imageVector = Icons.Default.Close,
                            contentDescription = null,
                            modifier = Modifier.size(SwitchDefaults.IconSize),
                        )
                    }
                },
        )
    }