Skip to content

Commit

Permalink
Update subtitle style and subtitle font naming
Browse files Browse the repository at this point in the history
  • Loading branch information
amarullz committed Apr 7, 2024
1 parent f50f35e commit b7bbda0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 36 deletions.
42 changes: 15 additions & 27 deletions app/src/main/assets/view/m.css
Original file line number Diff line number Diff line change
Expand Up @@ -1551,33 +1551,7 @@ c.loader {
#vtt_subtitle.vtt_style_5 .vtt_obj,
#vtt_subtitle.vtt_style_6 .vtt_obj,
#vtt_subtitle.vtt_style_7 .vtt_obj {
background:rgba(0,0,0,.4);
}

#vtt_subtitle.vtt_style_8 *,
#vtt_subtitle.vtt_style_9 *,
#vtt_subtitle.vtt_style_10 *,
#vtt_subtitle.vtt_style_11 *{
color:#000;
text-shadow:
-.1vw -.1vw .05vw #fff,
.1vw -.1vw .05vw #fff,
-.1vw .1vw .05vw #fff,
.1vw .1vw .05vw #fff,
0 0 .1vw #000, 0 0 .2vw #000, .1vw .1vw .4vw #000 !important;
}

#vtt_subtitle.vtt_style_12 *,
#vtt_subtitle.vtt_style_13 *,
#vtt_subtitle.vtt_style_14 *,
#vtt_subtitle.vtt_style_15 *{
color:var(--primary-2);
text-shadow:
-.1vw -.1vw .05vw #fff,
.1vw -.1vw .05vw #fff,
-.1vw .1vw .05vw #fff,
.1vw .1vw .05vw #fff,
0 0 .1vw #000, 0 0 .2vw #000, .1vw .1vw .4vw #000 !important;
background:rgba(0,0,0,.3);
}

#vtt_subtitle.vtt_style_1,
Expand All @@ -1603,6 +1577,20 @@ c.loader {
font-size: var(--fs-25vw);
}

#vtt_subtitle.vtt_style_8 *,
#vtt_subtitle.vtt_style_9 *,
#vtt_subtitle.vtt_style_10 *,
#vtt_subtitle.vtt_style_11 *{
font-weight:700 !important;
}

#vtt_subtitle.vtt_style_12 *,
#vtt_subtitle.vtt_style_13 *,
#vtt_subtitle.vtt_style_14 *,
#vtt_subtitle.vtt_style_15 *{
font-weight:900 !important;
}

#pb_action_streamtype{
position:absolute;
top:1vw;
Expand Down
18 changes: 9 additions & 9 deletions app/src/main/assets/view/m.js
Original file line number Diff line number Diff line change
Expand Up @@ -3618,20 +3618,20 @@ const vtt={
],
stylename:function(id){
var fname=[
'Large, Serif',
'Large, Sans-Serif',
'Small, Serif',
'Small, Sans-Serif',
'Serif Large',
'Proportional Large',
'Serif Small',
'Proportional Small',
];
var sname=[
'White',
'White+BG',
'Black',
'Primary',
'Normal',
'With Background',
'Bold',
'Bolder',
];
var fnt=fname[id%4];
var sty=sname[Math.floor(id / 4)];
return sty+', '+fnt;
return fnt+' '+sty;
},
init:function(subs){
if (pb.cfg_data.lang=='nosub'){
Expand Down

0 comments on commit b7bbda0

Please sign in to comment.