jellyfin-web icon indicating copy to clipboard operation
jellyfin-web copied to clipboard

Improve subs

Open dannymichel opened this issue 2 years ago • 24 comments

Changes Improve subtitles by changing default dont to universal system font stack(the same one github uses) and improving stroke for uniform option.

Before/after video 00:00-00:17 = before(current jellyfin) 00:18-00:32 = after(pull request version) https://youtu.be/XpWnDU5S_6k

Screenshot Screen Shot 2022-04-29 at 8 36 47 AM

dannymichel avatar Apr 29 '22 12:04 dannymichel

When making visual changes it's very helpful if you include before and after pics.

cvium avatar Apr 29 '22 12:04 cvium

When making visual changes it's very helpful if you include before and after pics.

Good point Screen Shot 2022-04-29 at 8 32 46 AM Screen Shot 2022-04-29 at 8 33 40 AM

dannymichel avatar Apr 29 '22 12:04 dannymichel

Before/after video 00:00-00:17 = before(current jellyfin) 00:18-00:32 = after(pull request version) https://youtu.be/XpWnDU5S_6k

dannymichel avatar Apr 29 '22 15:04 dannymichel

I think the font changes are fine, but the shadow looks a bit harsh. I believe @dmitrylyzo had a suggestion for a softer shadow.

thornbill avatar May 09 '22 13:05 thornbill

I think the font changes are fine, but the shadow looks a bit harsh. I believe @dmitrylyzo had a suggestion for a softer shadow.

Thanks I mean sure I guess I can do that I just took the css directly from Netflix to be perfectly honest

dannymichel avatar May 09 '22 19:05 dannymichel

The problem is that px is always px. With a small font, the shadow starts to look oversized.

As has been said, to show the UI changes, it is better to add "before/after" pics. The video is good for demonstrating changes in behavior (or issues).

Before These are Smaller, Normal and Extra Large. But they are scaled down in the preview window, so you can skip the first line, and the rest are equal to Smaller and Normal. subs-old After (px - yours) subs1

I tried to use em as 1px -> 0.02em and added more layers (which I don't like because it is more things to draw). In my test, I also removed 0,0.

After (em) subs-em

Your pattern:

 22222 
3211123
3210123
3211123
 22222 

My pattern:

 33333 
3222223
3211123
321 123
3211123
3222223
 33333 

You could try (with 1px -> 0.03em):

 222 
21112
21 12
21112
 222 

Actually, I just tried it and it looks acceptable.

Moreover, I think we can use #000 for short.

dmitrylyzo avatar May 09 '22 21:05 dmitrylyzo

I'll change it to em

dannymichel avatar May 09 '22 22:05 dannymichel

Moreover, I think we can use #000 for short.

I changed it to em and it looks much better small or large

dannymichel avatar May 09 '22 23:05 dannymichel

Did the cleanup, removed the bold

dannymichel avatar May 10 '22 10:05 dannymichel

Did the cleanup

The question about the pattern still stands. The pattern I believe is a preference or standard thing. I see this pattern as a standard on other platforms.

dannymichel avatar May 10 '22 10:05 dannymichel

Did the cleanup

You overdid it a bit.

Changed that to 03

dannymichel avatar May 10 '22 10:05 dannymichel

Added bold option https://github.com/jellyfin/jellyfin-web/pull/3625

dannymichel avatar May 10 '22 11:05 dannymichel

What they look like now. subs-em4-wide

dmitrylyzo avatar May 10 '22 11:05 dmitrylyzo

What they look like now. subs-em4-wide

looks great

dannymichel avatar May 10 '22 11:05 dannymichel

New PR for bold option https://github.com/jellyfin/jellyfin-web/pull/3625

dannymichel avatar May 10 '22 12:05 dannymichel

Everything good, @dmitrylyzo ?

dannymichel avatar May 10 '22 14:05 dannymichel

@dmitrylyzo if it's not all good, please post your commit suggestion for the following and i will do it

list.push({ name: 'text-shadow', value: '#000 0px 0.04em, #000 0px -0.04em, #000 0px 0.07em, #000 0px -0.07em, #000 0.04em 0px, #000 -0.04em 0px, #000 0.04em 0.04em, #000 -0.04em 0.04em, #000 0.04em -0.04em, #000 -0.04em -0.04em, #000 0.04em 0.07em, #000 -0.04em 0.07em, #000 0.04em -0.07em, #000 -0.04em -0.07em, #000 0.07em 0px, #000 -0.07em 0px, #000 0.07em 0.04em, #000 -0.07em 0.04em, #000 0.07em -0.04em, #000 -0.07em -0.04em, #000 0.07em 0.07em, #000 -0.07em 0.07em, #000 0.07em -0.07em, #000 -0.07em -0.07em, #000 0.09em 0px, #000 -0.09em 0px, #000 0.09em 0.04em, #000 -0.09em 0.04em, #000 0.09em -0.04em, #000 -0.09em -0.04em' });

dannymichel avatar May 10 '22 15:05 dannymichel

I think the shadows are still too thick - the contrast hits the eye. test1

dmitrylyzo avatar May 10 '22 15:05 dmitrylyzo

I think the shadows are still too thick - the contrast hits the eye. test1

Can you post your version as a commit suggestion as you did above with other lines?

dannymichel avatar May 10 '22 15:05 dannymichel

With original sizing (170%). Before subs-before Now 0.03em 0.06em subs-em-opt

dmitrylyzo avatar May 10 '22 16:05 dmitrylyzo

If you need to make it thinner, you should add the old px-version which will be used for the small font.

it looks so much better

dannymichel avatar May 10 '22 18:05 dannymichel

If you need to make it thinner, you should add the old px-version which will be used for the small font.

it looks so much better

I meant that if you want to go for, say, 0.02em 0.04em, you can prepend -1px 0px #000, 0px 1px #000, 1px 0px #000, 0px -1px #000, (<- old px-version). In this case the 1px-shadow takes the place of the zeroed em-shadow if the font is small.

You have returned useless 0px blur and useless "0,0" shadow.

With the "oval" pattern, the stroke width is uneven, and the flat (horizontal) edge on the e is bigger.

dmitrylyzo avatar May 10 '22 19:05 dmitrylyzo

I've played around with the values and I think I like 0.03em 0.05em more. But it is more a question of rounding em to px. subs-em-5

dmitrylyzo avatar May 12 '22 20:05 dmitrylyzo

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
75.0% 75.0% Duplication

sonarcloud[bot] avatar May 13 '22 10:05 sonarcloud[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

sonarcloud[bot] avatar Sep 29 '22 21:09 sonarcloud[bot]