Skip to content

Commit

Permalink
banner added and #422 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Sep 4, 2023
1 parent c1abe76 commit cdd20c1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("KotlinConstantConditions")

package ru.tech.imageresizershrinker.presentation.erase_background_screen.components

import androidx.compose.foundation.BorderStroke
Expand All @@ -24,6 +26,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import ru.tech.imageresizershrinker.BuildConfig
import ru.tech.imageresizershrinker.R
import ru.tech.imageresizershrinker.presentation.root.theme.mixedColor
import ru.tech.imageresizershrinker.presentation.root.theme.onMixedColor
Expand All @@ -42,28 +45,30 @@ fun AutoEraseBackgroundCard(
.padding(start = 16.dp, end = 16.dp, top = 8.dp)
.block(resultPadding = 8.dp, shape = RoundedCornerShape(24.dp))
) {
Row(
modifier = Modifier
.block(
applyResultPadding = false,
color = MaterialTheme.colorScheme.mixedColor.copy(0.7f)
if (BuildConfig.FLAVOR != "foss") {
Row(
modifier = Modifier
.block(
applyResultPadding = false,
color = MaterialTheme.colorScheme.mixedColor.copy(0.7f)
)
.clickable { onClick() }
.padding(16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Text(
stringResource(id = R.string.auto_erase_background),
modifier = Modifier.weight(1f),
color = MaterialTheme.colorScheme.onMixedColor
)
.clickable { onClick() }
.padding(16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Text(
stringResource(id = R.string.auto_erase_background),
modifier = Modifier.weight(1f),
color = MaterialTheme.colorScheme.onMixedColor
)
Icon(
imageVector = Icons.Rounded.AutoFixHigh,
contentDescription = null,
tint = MaterialTheme.colorScheme.onMixedColor
)
Icon(
imageVector = Icons.Rounded.AutoFixHigh,
contentDescription = null,
tint = MaterialTheme.colorScheme.onMixedColor
)
}
Spacer(modifier = Modifier.height(4.dp))
}
Spacer(modifier = Modifier.height(4.dp))
OutlinedButton(
colors = ButtonDefaults.filledTonalButtonColors(
containerColor = MaterialTheme.colorScheme.mixedColor.copy(0.4f),
Expand Down
Binary file added fastlane/metadata/android/en-US/images/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cdd20c1

Please sign in to comment.