播放器: BatteryIcon颜色统一到LumaColors + 清理空行
- BatteryIcon: 硬编码颜色→LumaColors.offline/ratingStar/online - 清理sed替换产生的多余空行 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
34e2ef6bd7
commit
0bb52f3ec8
1 file changed
+3
-6
@@ -499,9 +499,6 @@ fun VideoPlayerScreen(
|
|||||||
if (latestConfirmBeforeContinuousPlayback) {
|
if (latestConfirmBeforeContinuousPlayback) {
|
||||||
controlsVisible = true
|
controlsVisible = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
showNextEpisodeConfirmation = true
|
showNextEpisodeConfirmation = true
|
||||||
} else {
|
} else {
|
||||||
latestOnSelectEpisode(nextEpisode)
|
latestOnSelectEpisode(nextEpisode)
|
||||||
@@ -1679,9 +1676,9 @@ private fun PlayerStatusBar(
|
|||||||
@Composable
|
@Composable
|
||||||
private fun BatteryIcon(level: Int, charging: Boolean, modifier: Modifier = Modifier) {
|
private fun BatteryIcon(level: Int, charging: Boolean, modifier: Modifier = Modifier) {
|
||||||
val fillColor = when {
|
val fillColor = when {
|
||||||
level <= 20 -> Color(0xFFFF3B30)
|
level <= 20 -> LumaColors.offline
|
||||||
level <= 50 -> Color(0xFFFFC107)
|
level <= 50 -> LumaColors.ratingStar
|
||||||
else -> Color(0xFF34C759)
|
else -> LumaColors.online
|
||||||
}
|
}
|
||||||
Canvas(modifier) {
|
Canvas(modifier) {
|
||||||
val w = size.width
|
val w = size.width
|
||||||
|
|||||||
Reference in new issue
Block a user