diff --git a/app/src/main/java/ru/tech/imageresizershrinker/widget/GradientEdge.kt b/app/src/main/java/ru/tech/imageresizershrinker/widget/GradientEdge.kt index de658374fb..0f00fb71d9 100644 --- a/app/src/main/java/ru/tech/imageresizershrinker/widget/GradientEdge.kt +++ b/app/src/main/java/ru/tech/imageresizershrinker/widget/GradientEdge.kt @@ -21,7 +21,9 @@ fun GradientEdge( modifier = modifier .background( brush = Brush.verticalGradient( - 0f to startColor, 1f to endColor + 0f to startColor, + 0.7f to startColor, + 1f to endColor ) ) ) @@ -32,7 +34,7 @@ fun GradientEdge( modifier = modifier .background( brush = Brush.horizontalGradient( - 0f to startColor, 1f to endColor + 0f to startColor, 0.7f to startColor, 1f to endColor ) ) ) diff --git a/app/src/main/java/ru/tech/imageresizershrinker/widget/utils/AvailableHeight.kt b/app/src/main/java/ru/tech/imageresizershrinker/widget/utils/AvailableHeight.kt index 8b64ee6f48..f83bbf8089 100644 --- a/app/src/main/java/ru/tech/imageresizershrinker/widget/utils/AvailableHeight.kt +++ b/app/src/main/java/ru/tech/imageresizershrinker/widget/utils/AvailableHeight.kt @@ -43,7 +43,7 @@ fun availableHeight(expanded: Boolean, collapsed: Boolean = false): Dp { .weight(1f) .onSizeChanged { with(density) { - fullHeight = it.height.toDp() - 20.dp + fullHeight = it.height.toDp() - 16.dp } } )