From 8fda90e09a9b8c10af7e7b42edc315532d3b6c46 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Sun, 26 May 2019 03:10:28 +0200 Subject: [PATCH] - --- README.md | 10 +++++----- mpv.net/Resources/mpvConfToml.txt | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bf63b74..0be31c5 100644 --- a/README.md +++ b/README.md @@ -203,17 +203,17 @@ mpv.net bugs and requests: ### -- on the start screen the mpv.net logo is shown instead of the mpv logo -- everytime only one file is opened mpv.net loads the complete folder - in the playlist +- on the start screen the mpv.net icon is shown instead of the mpv icon +- everytime only one file is opened the complete folder is loaded in the playlist - the info command (i key) shows the audio format -- new option osd-font-size added +- new options osd-font-size, sub-font, sub-font-size, sub-color, + sub-border-color, sub-back-color added - the config editor no longer shows the command line switches as they are identical to the names ### 3.7 -- new icon design +- new icon design, probably better then before but still too simple - the radio buttons in the config editor have now a Windows 10 like design, they are larger and use the Windows theme color diff --git a/mpv.net/Resources/mpvConfToml.txt b/mpv.net/Resources/mpvConfToml.txt index 555df7d..85c8cf9 100644 --- a/mpv.net/Resources/mpvConfToml.txt +++ b/mpv.net/Resources/mpvConfToml.txt @@ -178,6 +178,36 @@ options = [{ name = "no", help = "Don't automatically load external subtitle { name = "fuzzy", help = "Load all subs containing media filename." }, { name = "all", help = "Load all subs in the current and sub-file-paths directories." }] +[[settings]] +name = "sub-font" +default = "" +filter = "Subtitle" +help = "Specify font to use for subtitles that do not themselves specify a particular font. The default is sans-serif." + +[[settings]] +name = "sub-font-size" +default = "" +filter = "Subtitle" +help = "Specify the sub font size. The unit is the size in scaled pixels at a window height of 720. The actual pixel size is scaled with the window height: if the window height is larger or smaller than 720, the actual size of the text increases or decreases as well. Default: 55" + +[[settings]] +name = "sub-color" +default = "" +filter = "Subtitle" +help = "Specify the color used for unstyled text subtitles.\n\nThe color is specified in the form r/g/b, where each color component is specified as number in the range 0.0 to 1.0. It's also possible to specify the transparency by using r/g/b/a, where the alpha value 0 means fully transparent, and 1.0 means opaque. If the alpha component is not given, the color is 100% opaque.\n\nPassing a single number to the option sets the sub to gray, and the form gray/a lets you specify alpha additionally.\n\nExamples\n\n1.0/0.0/0.0 set sub to opaque red\n1.0/0.0/0.0/0.75 set sub to opaque red with 75% alpha\n0.5/0.75 set sub to 50% gray with 75% alpha\n\nAlternatively, the color can be specified as a RGB hex triplet in the form #RRGGBB, where each 2-digit group expresses a color value in the range 0 (00) to 255 (FF). For example, #FF0000 is red. This is similar to web colors. Alpha is given with #AARRGGBB.\n\nExamples\n\n#FF0000 set sub to opaque red\n#C0808080 set sub to 50% gray with 75% alpha" + +[[settings]] +name = "sub-border-color" +default = "" +filter = "Subtitle" +help = "See --sub-color. Color used for the sub font border. Ignored when sub-back-color is specified (or more exactly: when that option is not set to completely transparent)." + +[[settings]] +name = "sub-back-color" +default = "" +filter = "Subtitle" +help = "See sub-color. Color used for sub text background. You can use sub-shadow-offset to change its size relative to the text." + [[settings]] name = "screen" default = ""