Skip to content

Commit

Permalink
💄 Optimize shadow effects
Browse files Browse the repository at this point in the history
  • Loading branch information
guiyanakuang committed Jun 23, 2024
1 parent 27ede7b commit a85d15e
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ fun ClipPreviewsView() {
EmptyScreenView()
}

ShadowClipPreviewView(rememberClipDataList.size)

VerticalScrollbar(
modifier =
Modifier.background(color = Color.Transparent)
Expand Down Expand Up @@ -217,31 +215,6 @@ fun EmptyScreenView() {
}
}

@Composable
fun ShadowClipPreviewView(size: Int) {
Column(modifier = Modifier.fillMaxSize()) {
if (size > 0) {
Row(
modifier =
Modifier
.height(24.dp)
.fillMaxWidth()
.background(
brush =
Brush.verticalGradient(
colors =
listOf(
MaterialTheme.colors.onBackground.copy(alpha = 0.18f),
MaterialTheme.colors.onBackground.copy(alpha = 0.0f),
),
),
),
) { }
}
Spacer(modifier = Modifier.weight(1f))
}
}

@OptIn(ExperimentalComposeUiApi::class)
@Composable
fun ToTop(toTopAction: () -> Unit) {
Expand Down

0 comments on commit a85d15e

Please sign in to comment.