mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Updates to details pages including videos' stream details display (#279)
## Details This PR updates the detail pages for Movies & TV Shows. - Increase backdrop image size & brightness (now matches home page) - Increase max width for titles - Decrease max width for detail text - Switch to using a customized display labels for video, audio, & subtitle streams Additional change for movie pages: - Don't dim movie details text - Move video stream details below play buttons - Move first row up higher ### Labels Instead of using the server provided `DisplayTitle`, create display labels in-app. In general, this shortens the text without losing significant detail. It is similar to the official app. Some of the changes: - Don't show "SDR", only "HDR" - Simplify audio channel info, eg "Surround 5.1" => "5.1" - Show chosen subtitle language - Show chosen subtitle codec - Show "(+#)" if there are additional audio or subtitle tracks - Use gray background slightly tinted by the theme color ## Issues Closes #239
This commit is contained in:
parent
7be4fb5fdf
commit
5b96be6662
14 changed files with 427 additions and 291 deletions
|
|
@ -146,7 +146,9 @@ fun checkForSupport(tracks: Tracks): List<TrackSupport> =
|
|||
}
|
||||
|
||||
fun languageName(code: String?): String =
|
||||
if (code != null) {
|
||||
if (code == "und") {
|
||||
"Unknown"
|
||||
} else if (code != null) {
|
||||
try {
|
||||
Locale(code).displayLanguage
|
||||
} catch (ex: Exception) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue