mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Fix pause indicator color on some devices (#1150)
## Description Ensure the new pause indicator from #1144 is the right color for all devices. ### Related issues Related to #1144 ### Testing Emulator & shield ## Screenshots N/A ## AI or LLM usage None
This commit is contained in:
parent
c35b5cdd0a
commit
bd21c2c46e
1 changed files with 4 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ import androidx.compose.animation.core.spring
|
||||||
import androidx.compose.animation.core.tween
|
import androidx.compose.animation.core.tween
|
||||||
import androidx.compose.animation.fadeOut
|
import androidx.compose.animation.fadeOut
|
||||||
import androidx.compose.animation.scaleIn
|
import androidx.compose.animation.scaleIn
|
||||||
import androidx.compose.foundation.Image
|
|
||||||
import androidx.compose.foundation.layout.size
|
import androidx.compose.foundation.layout.size
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.LaunchedEffect
|
import androidx.compose.runtime.LaunchedEffect
|
||||||
|
|
@ -21,6 +20,8 @@ import androidx.compose.ui.unit.dp
|
||||||
import androidx.media3.common.Player
|
import androidx.media3.common.Player
|
||||||
import androidx.media3.common.util.UnstableApi
|
import androidx.media3.common.util.UnstableApi
|
||||||
import androidx.media3.ui.compose.state.observeState
|
import androidx.media3.ui.compose.state.observeState
|
||||||
|
import androidx.tv.material3.Icon
|
||||||
|
import androidx.tv.material3.MaterialTheme
|
||||||
import com.github.damontecres.wholphin.R
|
import com.github.damontecres.wholphin.R
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import kotlin.time.Duration
|
import kotlin.time.Duration
|
||||||
|
|
@ -57,9 +58,10 @@ fun PauseIndicator(
|
||||||
delay(50)
|
delay(50)
|
||||||
visible = false
|
visible = false
|
||||||
}
|
}
|
||||||
Image(
|
Icon(
|
||||||
modifier = Modifier.size(64.dp, 64.dp),
|
modifier = Modifier.size(64.dp, 64.dp),
|
||||||
painter = painterResource(id = R.drawable.baseline_pause_24),
|
painter = painterResource(id = R.drawable.baseline_pause_24),
|
||||||
|
tint = MaterialTheme.colorScheme.onSurface,
|
||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue