-
-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add subtitles font size and background configurations #1303
Conversation
A shadow is not the same as an outline for text and imho is an insufficient solution to maintain subtitle legibility. |
d7569da
to
f2cd547
Compare
All recommendations have been implemented |
b0679f2
to
7412e65
Compare
Sorry. I forgot to include a link to the source of the class that I've used for outlining the text. :) |
7412e65
to
c9f2334
Compare
Removed all abbreviations. |
0770edd
to
8163f9e
Compare
app/src/main/java/org/jellyfin/androidtv/preference/UserPreferences.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/preference/UserPreferences.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/ui/shared/OutlineSpan.kt
Outdated
Show resolved
Hide resolved
9ab8885
to
3ce8f8c
Compare
app/src/main/java/org/jellyfin/androidtv/preference/UserPreferences.kt
Outdated
Show resolved
Hide resolved
3ce8f8c
to
c697f42
Compare
Ok guys, my last try to do this the way you want... I wrote the outlining class from scratch and I made it as simple as possible. I also used seekbar for the subtitles size as I didn't found a way of doing it as a list with int preference and I don't see the need of using ARGB instead of a simple boolean to enable/disable the background. Anyway, coding random fixes and mods for the things I'm using is just a hobby to me(I'm self taught) and I just wanted to help with something that many people request from a long time (and looked simple enough to do), but it seems that my skills are not enough to make you guys happy, so fell free to help me out, or just close the request. Happy holidays to all! |
I don't think we support lists with int right now so this solution is fine for now
It was a suggestion, it's not required or anything
We definitely appreciate the pull request, replying "out of my knowledge" or "not interested" to a suggestion is valid.
Same to you! I'll try to review this PR again when I find some time, I think it's mostly fine now :) |
c697f42
to
11cd2f1
Compare
11cd2f1
to
325f95a
Compare
Added seekbar for choosing subtitles font size (18-38 range, keeping 28 by default) Added text outlining for better legibility and an option to disable the subtitles black background.
325f95a
to
fe2cfa1
Compare
Approval was submitted accidentally.
app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/ui/preference/category/playback.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/ui/shared/OutlineSpan.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/ui/shared/OutlineSpan.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/ui/shared/OutlineSpan.kt
Outdated
Show resolved
Hide resolved
Could a subtitle ¿height? (bottom distance) be added as a slider also? P.S.: The outline looks amazing, thanks for all of your work. |
I also think the subtitles bottom padding(the empty space underneath them) is too big, but I don't think we need a slider for it, maybe finding a better value would do the job (now on most of the movies when 2 lines of subtitles are shown, the first one is mostly over the video, the other one under it on the black lane). I was thinking of doing another PR about it(so we can comment it/more ideas/opinions and so on) as I've tested with different values and find the value of 20(currently 48) to be the best (imo) on most of the media I've and even when 2 lines of subtitles are shown they both are under the video in the black lane and also looks much better when the video is full screen (with no black lanes on top/bottom). But we could discuss it here also, as it's a really small (codewise) change!? |
I'm using a value of 20 bottom padding in my build. It works best and I tried with several aspect ratios. |
I'm also experimenting with slight to even zero padding, but the first line to be on the same place all the time (ie when a second line should be shown it is underneath the first one which is on a "constant" place(when not more than 2 lines are shown, but that should be a really rare thing for subs usage)) I know that's not a standard solution and most probably won't be merged here, but I guess my custom builds would be using it. Anyway, I probably should really do a new PR and we should move that convo there as that's a thing out of this PR topic right now :) |
Hey @siankatabg it looks like this PR broke subtitle line wrapping. This is especially noticeable on large sizes. |
Changes
Added seekbar for choosing subtitles font size (18-38 range, keeping 28 by default)
Added text outlining for better legibility and an option to disable the subtitles black background.
Few screenshots and debug apk for who wants to test
Issues
Fixes: #1055
Fixes: #437