From 51bd00c33a905c3e5de149870b897bc99843e0be Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Mon, 13 Nov 2023 08:46:29 +0100 Subject: 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. --- DOCS/man/stats.rst | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'DOCS/man/stats.rst') 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 -- cgit v1.2.3