Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
## Unreleased

* 🐛 Changed THEOplayer to be an `api` dependency in Gradle. ([#76](https://github.com/THEOplayer/android-ui/pull/76))
* 🐛 The alpha value of the `UIController`'s background color is now correctly preserved. ([#78](https://github.com/THEOplayer/android-ui/issues/78), [#79](https://github.com/THEOplayer/android-ui/pull/79))

## v1.13.0 (2025-09-12)

Expand Down
6 changes: 3 additions & 3 deletions ui/src/main/java/com/theoplayer/android/ui/UIController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fun UIController(
modifier: Modifier = Modifier,
config: THEOplayerConfig,
source: SourceDescription? = null,
color: Color = Color.Black,
color: Color = Color.Black.copy(alpha = 0.5f),
centerOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
errorOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
topChrome: (@Composable UIControllerScope.() -> Unit)? = null,
Expand Down Expand Up @@ -126,7 +126,7 @@ fun UIController(
fun UIController(
modifier: Modifier = Modifier,
player: Player = rememberPlayer(),
color: Color = Color.Black,
color: Color = Color.Black.copy(alpha = 0.5f),
centerOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
errorOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
topChrome: (@Composable UIControllerScope.() -> Unit)? = null,
Expand Down Expand Up @@ -187,7 +187,7 @@ fun UIController(
}
val background by animateColorAsState(
label = "BackgroundAnimation",
targetValue = color.copy(alpha = if (backgroundVisible) 0.5f else 0f),
targetValue = if (backgroundVisible) color else color.copy(alpha = 0f),
animationSpec = tween(
easing = LinearEasing,
durationMillis = if (backgroundVisible) {
Expand Down
Loading