-
-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add subtitles font size and background switch
Added five font sizes to choose from (XLarge, Large, Normal, Small, XSmall) Added an option to disable the subtitles black background and the shadow color was changed to black from transparent, that adds slight shadow to the text which is much needed for when the black background is disabled, but not really visible when enabled.
- Loading branch information
1 parent
b21a222
commit d7569da
Showing
5 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
app/src/main/java/org/jellyfin/androidtv/preference/constant/SubtitlesSize.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.jellyfin.androidtv.preference.constant | ||
|
||
import org.jellyfin.androidtv.R | ||
import org.jellyfin.androidtv.ui.preference.dsl.EnumDisplayOptions | ||
|
||
enum class SubtitlesSize { | ||
/** | ||
* Sets the subtitles size to huge. | ||
*/ | ||
@EnumDisplayOptions(R.string.subs_size_xlarge) | ||
SUBS_SIZE_XLARGE, | ||
|
||
/** | ||
* Sets the subtitles size to big. | ||
*/ | ||
@EnumDisplayOptions(R.string.subs_size_large) | ||
SUBS_SIZE_LARGE, | ||
|
||
/** | ||
* Sets the subtitles size to normal. | ||
*/ | ||
@EnumDisplayOptions(R.string.subs_size_normal) | ||
SUBS_SIZE_NORMAL, | ||
|
||
/** | ||
* Sets the subtitles size to small. | ||
*/ | ||
@EnumDisplayOptions(R.string.subs_size_small) | ||
SUBS_SIZE_SMALL, | ||
|
||
/** | ||
* Sets the subtitles size to xsmall. | ||
*/ | ||
@EnumDisplayOptions(R.string.subs_size_xsmall) | ||
SUBS_SIZE_XSMALL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters