Subtitle Styles strings
This commit is contained in:
parent
1b7a602b1a
commit
dcdaa25aad
5 changed files with 31 additions and 11 deletions
|
|
@ -235,7 +235,7 @@ private fun EpisodeStreamsView(
|
|||
|
||||
uiState.episodeStreamsError != null -> {
|
||||
Text(
|
||||
text = uiState.episodeStreamsError ?: "Failed to load streams",
|
||||
text = uiState.episodeStreamsError ?: stringResource(R.string.panel_failed_load_streams),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
color = Color.White.copy(alpha = 0.85f)
|
||||
)
|
||||
|
|
@ -320,7 +320,7 @@ private fun EpisodesListView(
|
|||
|
||||
uiState.episodesError != null -> {
|
||||
Text(
|
||||
text = uiState.episodesError ?: "Failed to load episodes",
|
||||
text = uiState.episodesError ?: stringResource(R.string.panel_failed_load_episodes),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
color = Color.White.copy(alpha = 0.85f)
|
||||
)
|
||||
|
|
@ -563,7 +563,7 @@ private fun EpisodeItem(
|
|||
verticalArrangement = Arrangement.spacedBy(4.dp)
|
||||
) {
|
||||
Text(
|
||||
text = episode.title.ifBlank { "Episode" },
|
||||
text = episode.title.ifBlank { stringResource(R.string.episodes_episode) },
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = NuvioColors.TextPrimary,
|
||||
maxLines = 1,
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ internal fun StreamSourcesSidePanel(
|
|||
|
||||
uiState.sourceStreamsError != null -> {
|
||||
Text(
|
||||
text = uiState.sourceStreamsError ?: "Failed to load streams",
|
||||
text = uiState.sourceStreamsError ?: stringResource(R.string.panel_failed_load_streams),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
color = Color.White.copy(alpha = 0.85f)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ internal fun SubtitleStyleSidePanel(
|
|||
) {
|
||||
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
SubtitleStyleSection(
|
||||
title = "Font Size",
|
||||
title = stringResource(R.string.subtitle_style_font_size),
|
||||
modifier = Modifier
|
||||
.width(StyleCardWidth)
|
||||
.height(StyleCardHeight)
|
||||
|
|
@ -139,7 +139,7 @@ internal fun SubtitleStyleSidePanel(
|
|||
}
|
||||
}
|
||||
SubtitleStyleSection(
|
||||
title = "Bold",
|
||||
title = stringResource(R.string.subtitle_style_bold),
|
||||
modifier = Modifier
|
||||
.width(StyleCardWidth)
|
||||
.height(StyleCardHeight)
|
||||
|
|
@ -155,7 +155,7 @@ internal fun SubtitleStyleSidePanel(
|
|||
|
||||
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
SubtitleStyleSection(
|
||||
title = "Text Color",
|
||||
title = stringResource(R.string.subtitle_style_text_color),
|
||||
modifier = Modifier
|
||||
.width(StyleCardWidth)
|
||||
.height(StyleCardHeight)
|
||||
|
|
@ -171,7 +171,7 @@ internal fun SubtitleStyleSidePanel(
|
|||
}
|
||||
}
|
||||
SubtitleStyleSection(
|
||||
title = "Outline",
|
||||
title = stringResource(R.string.subtitle_style_outline),
|
||||
centerContent = false,
|
||||
modifier = Modifier
|
||||
.width(StyleCardWidth)
|
||||
|
|
@ -212,7 +212,7 @@ internal fun SubtitleStyleSidePanel(
|
|||
|
||||
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
SubtitleStyleSection(
|
||||
title = "Bottom Offset",
|
||||
title = stringResource(R.string.subtitle_style_bottom_offset),
|
||||
modifier = Modifier
|
||||
.width(StyleCardWidth)
|
||||
.height(StyleCardHeight)
|
||||
|
|
@ -230,7 +230,7 @@ internal fun SubtitleStyleSidePanel(
|
|||
}
|
||||
}
|
||||
SubtitleStyleSection(
|
||||
title = "Defaults",
|
||||
title = stringResource(R.string.subtitle_style_defaults),
|
||||
modifier = Modifier
|
||||
.width(StyleCardWidth)
|
||||
.height(StyleCardHeight)
|
||||
|
|
@ -406,7 +406,7 @@ private fun SubtitleStyleToggleButton(
|
|||
shape = CardDefaults.shape(RoundedCornerShape(10.dp))
|
||||
) {
|
||||
Text(
|
||||
text = if (isEnabled) "On" else "Off",
|
||||
text = if (isEnabled) stringResource(R.string.subtitle_style_on) else stringResource(R.string.subtitle_style_off),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = if (isEnabled) Color.White else Color.White.copy(alpha = 0.55f),
|
||||
modifier = Modifier.padding(horizontal = 12.dp, vertical = 6.dp)
|
||||
|
|
|
|||
|
|
@ -606,6 +606,16 @@
|
|||
<string name="subtitle_style_title">Styl napisów</string>
|
||||
<string name="subtitle_style_color">Kolor</string>
|
||||
<string name="subtitle_style_reset">Resetuj</string>
|
||||
<string name="subtitle_style_font_size">Rozmiar czcionki</string>
|
||||
<string name="subtitle_style_bold">Pogrubienie</string>
|
||||
<string name="subtitle_style_text_color">Kolor tekstu</string>
|
||||
<string name="subtitle_style_outline">Obramowanie</string>
|
||||
<string name="subtitle_style_bottom_offset">Przesunięcie od dołu</string>
|
||||
<string name="subtitle_style_defaults">Domyślne</string>
|
||||
<string name="subtitle_style_on">Wł.</string>
|
||||
<string name="subtitle_style_off">Wył.</string>
|
||||
<string name="panel_failed_load_streams">Nie udało się załadować strumieni</string>
|
||||
<string name="panel_failed_load_episodes">Nie udało się załadować odcinków</string>
|
||||
|
||||
<!-- PauseOverlay -->
|
||||
<string name="pause_you_are_watching">Oglądasz</string>
|
||||
|
|
|
|||
|
|
@ -609,6 +609,16 @@
|
|||
<string name="subtitle_style_title">Subtitle Style</string>
|
||||
<string name="subtitle_style_color">Color</string>
|
||||
<string name="subtitle_style_reset">Reset</string>
|
||||
<string name="subtitle_style_font_size">Font Size</string>
|
||||
<string name="subtitle_style_bold">Bold</string>
|
||||
<string name="subtitle_style_text_color">Text Color</string>
|
||||
<string name="subtitle_style_outline">Outline</string>
|
||||
<string name="subtitle_style_bottom_offset">Bottom Offset</string>
|
||||
<string name="subtitle_style_defaults">Defaults</string>
|
||||
<string name="subtitle_style_on">On</string>
|
||||
<string name="subtitle_style_off">Off</string>
|
||||
<string name="panel_failed_load_streams">Failed to load streams</string>
|
||||
<string name="panel_failed_load_episodes">Failed to load episodes</string>
|
||||
|
||||
<!-- PauseOverlay -->
|
||||
<string name="pause_you_are_watching">You\'re watching</string>
|
||||
|
|
|
|||
Loading…
Reference in a new issue