summaryrefslogtreecommitdiffstats
path: root/DOCS/man/stats.rst
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2023-11-13 08:46:29 +0100
committerKacper Michajłow <kasper93@gmail.com>2024-04-17 23:47:55 +0200
commit51bd00c33a905c3e5de149870b897bc99843e0be (patch)
tree92bc0ab4637542d993e7e0979bd9ff4ec0ce71a8 /DOCS/man/stats.rst
parent75d899bcaff9a6becda6029440b635360d74698e (diff)
downloadmpv-51bd00c33a905c3e5de149870b897bc99843e0be.tar.bz2
mpv-51bd00c33a905c3e5de149870b897bc99843e0be.tar.xz
stats.lua: inherit OSD styles
Avoid having to configure both the OSD and the stats script opts when you change the OSD options, in particular avoid having to convert colors to BGR. Also document the shadow options. font_size, border_size and shadow offset defaults are kept because the same values look much bigger in the stats than in the corresponding OSD options. osd-back-color is now respected without extra checks until you explicitly set a shadow_color.
Diffstat (limited to 'DOCS/man/stats.rst')
-rw-r--r--DOCS/man/stats.rst29
1 files changed, 23 insertions, 6 deletions
diff --git a/DOCS/man/stats.rst b/DOCS/man/stats.rst
index 7ddf851567..58cae9a0b1 100644
--- a/DOCS/man/stats.rst
+++ b/DOCS/man/stats.rst
@@ -120,7 +120,7 @@ Configurable Options
Clear data buffers used for drawing graphs when toggling.
``font``
- Default: sans-serif
+ Default: same as ``osd-font``
Font name. Should support as many font weights as possible for optimal
visual experience.
@@ -137,9 +137,9 @@ Configurable Options
Font size used to render text.
``font_color``
- Default: FFFFFF
+ Default: same as ``osd-color``
- Font color.
+ Color of the text.
``border_size``
Default: 0.8
@@ -147,14 +147,31 @@ Configurable Options
Size of border drawn around the font.
``border_color``
- Default: 262626
+ Default: same as ``osd-border-color``
+
+ Color of the text border.
+
+``shadow_x_offset``
+ Default: 0
+
+ The horizontal distance from the text to position the shadow at.
+
+``shadow_y_offset``
+ Default: 0
+
+ The vertical distance from the text to position the shadow at.
+
+``shadow_color``
+ Default: same as ``osd-shadow-color``
- Color of drawn border.
+ Color of the text shadow.
``alpha``
Default: 11
- Transparency for drawn text.
+ Transparency of text when ``font_color`` is specified, of text borders when
+ ``border_color`` is specified, and of text shadows when ``shadow_color`` is
+ specified.
``plot_bg_border_color``
Default: 0000FF