Skip to content

Commit

Permalink
🎨 时间背景透明
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxieyoulei committed Oct 30, 2024
1 parent f7d30c4 commit 8687e66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.tv.material3.DenseListItem
import androidx.tv.material3.ListItem
import androidx.tv.material3.ListItemDefaults
import androidx.tv.material3.MaterialTheme
import androidx.tv.material3.Text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package top.yogiczy.mytv.tv.ui.screens.datetime

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
Expand All @@ -12,7 +11,6 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.tv.material3.MaterialTheme
import androidx.tv.material3.Text
import kotlinx.coroutines.delay
Expand Down Expand Up @@ -67,12 +65,7 @@ fun DatetimeScreen(
style = MaterialTheme.typography.titleLarge,
modifier = Modifier
.align(Alignment.TopEnd)
.padding(top = childPadding.top, end = childPadding.end)
.background(
color = MaterialTheme.colorScheme.surface.copy(0.8f),
shape = MaterialTheme.shapes.medium,
)
.padding(horizontal = 8.dp, vertical = 4.dp),
.padding(top = childPadding.top, end = childPadding.end),
)
}
}
Expand Down

0 comments on commit 8687e66

Please sign in to comment.