From e74c15571af954d93c48636512eba6f875f64b5f Mon Sep 17 00:00:00 2001 From: Lsong Date: Thu, 29 Aug 2024 17:25:19 +0800 Subject: [PATCH] update --- app/src/main/java/me/lsong/mytv/ui/MainScreen.kt | 6 ++++-- app/src/main/java/me/lsong/mytv/ui/components/Menu.kt | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/me/lsong/mytv/ui/MainScreen.kt b/app/src/main/java/me/lsong/mytv/ui/MainScreen.kt index 587f044..7544b77 100644 --- a/app/src/main/java/me/lsong/mytv/ui/MainScreen.kt +++ b/app/src/main/java/me/lsong/mytv/ui/MainScreen.kt @@ -197,7 +197,8 @@ fun MyTvMenuWidget( verticalArrangement = Arrangement.SpaceBetween, modifier = Modifier .width(250.dp) - .fillMaxHeight(), + .fillMaxHeight() + .background(androidx.tv.material3.MaterialTheme.colorScheme.background.copy(0.9f)), ) { MyTvMenuItemList( items = groups, @@ -238,7 +239,8 @@ fun MyTvMenuWidget( onSelected(selectedChannel) }, onUserAction = onUserAction, - focusRequester = rightListFocusRequester + focusRequester = rightListFocusRequester, + modifier = Modifier.background(androidx.tv.material3.MaterialTheme.colorScheme.background.copy(0.8f)), ) } diff --git a/app/src/main/java/me/lsong/mytv/ui/components/Menu.kt b/app/src/main/java/me/lsong/mytv/ui/components/Menu.kt index ce4f95c..bb732ac 100644 --- a/app/src/main/java/me/lsong/mytv/ui/components/Menu.kt +++ b/app/src/main/java/me/lsong/mytv/ui/components/Menu.kt @@ -153,7 +153,6 @@ fun MyTvMenuItemList( verticalArrangement = Arrangement.spacedBy(8.dp), modifier = modifier .width(250.dp) - .background(MaterialTheme.colorScheme.background.copy(0.8f)) .focusRequester(focusRequester) ) { itemsIndexed(items, key = { _, item -> item.hashCode() }) { index, item ->