Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Nov 30, 2023
1 parent 3a661ed commit d11684e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ fun EraseBackgroundScreen(
secondaryControls()
}
}
Spacer(modifier = Modifier.height(8.dp))
Spacer(modifier = Modifier.height(16.dp))
EraseModeCard(
isRecoveryOn = viewModel.isRecoveryOn,
onClick = viewModel::toggleEraser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package ru.tech.imageresizershrinker.presentation.erase_background_screen.compon
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.ContentCut
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import ru.tech.imageresizershrinker.R
Expand All @@ -14,13 +16,15 @@ import ru.tech.imageresizershrinker.presentation.root.widget.preferences.Prefere
fun TrimImageToggle(
checked: Boolean,
onCheckedChange: (Boolean) -> Unit,
color: Color = MaterialTheme.colorScheme.surfaceContainer,
modifier: Modifier = Modifier
) {
PreferenceRowSwitch(
modifier = modifier,
title = stringResource(R.string.trim_image),
subtitle = stringResource(R.string.trim_image_sub),
checked = checked,
color = color,
shape = RoundedCornerShape(24.dp),
onClick = onCheckedChange,
startIcon = Icons.Rounded.ContentCut
Expand Down

0 comments on commit d11684e

Please sign in to comment.