fix: use tnum for audio lengths
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
1b476ed7de
commit
29c1f2c569
|
|
@ -20,6 +20,7 @@ import androidx.compose.material3.DropdownMenu
|
||||||
import androidx.compose.material3.DropdownMenuItem
|
import androidx.compose.material3.DropdownMenuItem
|
||||||
import androidx.compose.material3.Icon
|
import androidx.compose.material3.Icon
|
||||||
import androidx.compose.material3.IconButton
|
import androidx.compose.material3.IconButton
|
||||||
|
import androidx.compose.material3.LocalTextStyle
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.Slider
|
import androidx.compose.material3.Slider
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
|
|
@ -209,11 +210,13 @@ fun AudioPlayer(url: String, filename: String, contentType: String) {
|
||||||
Spacer(modifier = Modifier.width(8.dp))
|
Spacer(modifier = Modifier.width(8.dp))
|
||||||
Text(
|
Text(
|
||||||
text = formatTime(currentTime.longValue),
|
text = formatTime(currentTime.longValue),
|
||||||
fontWeight = FontWeight.Medium
|
fontWeight = FontWeight.Medium,
|
||||||
|
style = LocalTextStyle.current.copy(fontFeatureSettings = "tnum")
|
||||||
)
|
)
|
||||||
if (player.duration >= 0) {
|
if (player.duration >= 0) {
|
||||||
Text(
|
Text(
|
||||||
text = " / ${formatTime(player.duration)}"
|
text = " / ${formatTime(player.duration)}",
|
||||||
|
style = LocalTextStyle.current.copy(fontFeatureSettings = "tnum")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue