@@ -11,6 +11,7 @@ import androidx.compose.material3.Text
1111import androidx.compose.runtime.Composable
1212import androidx.compose.runtime.getValue
1313import androidx.compose.ui.Modifier
14+ import androidx.compose.ui.graphics.Color
1415import androidx.compose.ui.input.nestedscroll.nestedScroll
1516import androidx.compose.ui.platform.rememberNestedScrollInteropConnection
1617import androidx.compose.ui.res.pluralStringResource
@@ -25,13 +26,15 @@ import androidx.paging.compose.collectAsLazyPagingItems
2526import kotlinx.coroutines.flow.Flow
2627import kotlinx.coroutines.flow.flowOf
2728import my.nanihadesuka.compose.LazyColumnScrollbar
29+ import my.nanihadesuka.compose.ScrollbarSettings
2830import org.schabi.newpipe.R
2931import org.schabi.newpipe.extractor.Page
3032import org.schabi.newpipe.extractor.comments.CommentsInfoItem
3133import org.schabi.newpipe.extractor.stream.Description
3234import org.schabi.newpipe.ui.components.common.LoadingIndicator
3335import org.schabi.newpipe.ui.components.common.NoItemsMessage
3436import org.schabi.newpipe.ui.theme.AppTheme
37+ import org.schabi.newpipe.ui.theme.md_theme_dark_primary
3538import org.schabi.newpipe.viewmodels.CommentsViewModel
3639import org.schabi.newpipe.viewmodels.util.Resource
3740
@@ -77,7 +80,13 @@ fun CommentSection(
7780 val nestedScrollInterop = rememberNestedScrollInteropConnection()
7881 val state = rememberLazyListState()
7982
80- LazyColumnScrollbar (state = state) {
83+ LazyColumnScrollbar (
84+ state = state,
85+ settings = ScrollbarSettings .Default .copy(
86+ thumbSelectedColor = md_theme_dark_primary,
87+ thumbUnselectedColor = Color .Red
88+ )
89+ ) {
8190 LazyColumn (
8291 modifier = Modifier .nestedScroll(nestedScrollInterop),
8392 state = state
0 commit comments