This commit is contained in:
Lsong 2024-08-29 17:25:19 +08:00
parent 27e07dae05
commit e74c15571a
2 changed files with 4 additions and 3 deletions

View File

@ -197,7 +197,8 @@ fun MyTvMenuWidget(
verticalArrangement = Arrangement.SpaceBetween, verticalArrangement = Arrangement.SpaceBetween,
modifier = Modifier modifier = Modifier
.width(250.dp) .width(250.dp)
.fillMaxHeight(), .fillMaxHeight()
.background(androidx.tv.material3.MaterialTheme.colorScheme.background.copy(0.9f)),
) { ) {
MyTvMenuItemList( MyTvMenuItemList(
items = groups, items = groups,
@ -238,7 +239,8 @@ fun MyTvMenuWidget(
onSelected(selectedChannel) onSelected(selectedChannel)
}, },
onUserAction = onUserAction, onUserAction = onUserAction,
focusRequester = rightListFocusRequester focusRequester = rightListFocusRequester,
modifier = Modifier.background(androidx.tv.material3.MaterialTheme.colorScheme.background.copy(0.8f)),
) )
} }

View File

@ -153,7 +153,6 @@ fun MyTvMenuItemList(
verticalArrangement = Arrangement.spacedBy(8.dp), verticalArrangement = Arrangement.spacedBy(8.dp),
modifier = modifier modifier = modifier
.width(250.dp) .width(250.dp)
.background(MaterialTheme.colorScheme.background.copy(0.8f))
.focusRequester(focusRequester) .focusRequester(focusRequester)
) { ) {
itemsIndexed(items, key = { _, item -> item.hashCode() }) { index, item -> itemsIndexed(items, key = { _, item -> item.hashCode() }) { index, item ->