Skip to content
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 subtitle option for outline thickness #179

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/src/main/assets/view/m.css
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,7 @@ c.loader {
-.1vw .1vw .05vw #000,
.1vw .1vw .05vw #000,
0 0 .1vw #000, 0 0 .2vw #000, .1vw .1vw .4vw #000 !important;
-webkit-text-stroke-color: #000 !important;
}
#vtt_subtitle_preview .vtt_obj,
#vtt_subtitle .vtt_obj{
Expand Down Expand Up @@ -2084,6 +2085,7 @@ c.loader {
-.1vw .1vw .05vw #fff,
.1vw .1vw .05vw #fff,
0 0 .1vw #000, 0 0 .2vw #000, .1vw .1vw .4vw #000 !important;
-webkit-text-stroke-color: #fff !important;
}

.vtt_style_background_25 .vtt_obj{
Expand Down Expand Up @@ -2172,6 +2174,15 @@ c.loader {
font-family: "Merienda", cursive, sans-serif;
line-height: 1.2;
}
.vtt_style_medium_outline{
-webkit-text-stroke-width: 0.05vw !important;
}
.vtt_style_thick_outline{
-webkit-text-stroke-width: 0.1vw !important;
}
.vtt_style_extra_thick_outline{
-webkit-text-stroke-width: 0.15vw !important;
}

#pb_action_streamtype{
position:absolute;
Expand Down
11 changes: 9 additions & 2 deletions app/src/main/assets/view/m.js
Original file line number Diff line number Diff line change
Expand Up @@ -4981,6 +4981,7 @@ const vtt={
'Font Type',
'Font Size',
'Font Weight',
'Outline',
'Background',
'Color',
'Text Opacity'
Expand All @@ -4989,6 +4990,7 @@ const vtt={
'brand_family',
'format_size',
'format_bold',
'text_format',
'gradient',
'palette',
'opacity'
Expand All @@ -5004,7 +5006,6 @@ const vtt={
"Philosopher",
"Reddit Sans",
"Exo",

"Merienda"
],
[
Expand All @@ -5019,6 +5020,12 @@ const vtt={
"Bolder",
"Thin"
],
[
"Thin Outline",
"Medium Outline",
"Thick Outline",
"Extra Thick Outline",
],
[
"No Background",
"Background 25%",
Expand Down Expand Up @@ -5050,7 +5057,7 @@ const vtt={
],
],
style_divs:[
1,10,100,1000,10000,100000
1,10,100,1000,10000,100000,1000000
],
style_get:function(v, t, sl){
if (t<0 || t>=vtt.style_order.length){
Expand Down