Skip to content
Snippets Groups Projects
Commit ab59f14a authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Fix gradient

parent 93b90c34
No related branches found
No related tags found
No related merge requests found
......@@ -539,7 +539,7 @@ fun ActionItems(onSelect: (Action) -> Unit, onLongSelect: (Action) -> Unit) {
}
}
val gradientColor = actionBarColor()
val gradientColor = LocalKeyboardScheme.current.keyboardSurfaceDim
val drawLeftGradient = lazyListState.firstVisibleItemIndex > 0
val drawRightGradient = lazyListState.layoutInfo.visibleItemsInfo.isNotEmpty() && actionItems.isNotEmpty() && (lazyListState.layoutInfo.visibleItemsInfo.lastOrNull()?.key != actionItems.lastOrNull()?.name)
......@@ -563,7 +563,7 @@ fun ActionItems(onSelect: (Action) -> Unit, onLongSelect: (Action) -> Unit) {
.fillMaxHeight()
.width(72.dp)
.align(Alignment.CenterStart)) {
for(i in 0 until 2) {
for(i in 0 until 1) {
drawRect(
Brush.linearGradient(
0.0f to gradientColor,
......@@ -581,7 +581,7 @@ fun ActionItems(onSelect: (Action) -> Unit, onLongSelect: (Action) -> Unit) {
.fillMaxHeight()
.width(72.dp)
.align(Alignment.CenterEnd)) {
for(i in 0 until 2) {
for(i in 0 until 1) {
drawRect(
Brush.linearGradient(
0.0f to Color.Transparent,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment