1
0
mirror of https://github.com/mpv-player/mpv synced 2025-05-16 23:29:04 +00:00
mpv/DOCS/man
Guido Cella 24cd11d85c console.lua: always draw a background behind items
Draw a background behind selectable items even with outline-and-shadow.
This makes sense for a menu because you want it to be readable, select
something and move on. It doesn't stay open while watching like OSD
messages and subtitles, so it can cover more of the video. In fact this
was probably the only menu without a background by default. Also the
scrollbar without a background looked weird, and the background shows
the new horizontal hit box.

--osd-outline-color determines the background color with
outline-and-shadow, while --osd-back-color determines the background
color with background-box. Some transparency is added because using pure
black is not recommended because it causes eye strain; alternatively
--osd-outline-color could default to #222222.

Drawing the background ourselves also allows making the corners rounded.

Free-form text mode keeps using only background-box backgrounds if
configured as covering the whole screen while searching stats key
bindings would be bad. Searching history also doesn't add a background
to not change the layout abruptly. When searching history with
background-box, it preserves the alpha component of --osd-back-color.
2025-02-17 16:35:27 +00:00
..
af.rst DOCS/man: document options which are object settings list options 2025-02-16 00:48:04 +00:00
ao.rst DOCS/man: document options which are object settings list options 2025-02-16 00:48:04 +00:00
changes.rst DOCS: document the new way to handle interface changes 2024-03-20 22:38:56 +00:00
console.rst console.lua: always draw a background behind items 2025-02-17 16:35:27 +00:00
encode.rst DOCS/man: replace legacy option syntax usage 2024-05-24 17:57:43 +00:00
input.rst DOCS/man/input: remove extra quotes 2025-02-16 00:48:04 +00:00
ipc.rst DOCS/man: add more --input-ipc-client references 2024-07-29 21:00:48 +02:00
javascript.rst Revert "DOCS/man/input: document that shutdown is sent when scripts terminate" 2025-02-01 16:11:18 +00:00
libmpv.rst cplugin: allow loading mpv_* symbols dynamically 2023-09-20 02:16:45 +00:00
lua.rst DOCS/man/select: add this file 2025-01-27 18:53:36 +01:00
mpv.rst build: remove ta-leak-report option 2025-02-16 09:43:33 +00:00
options.rst vd_lavc: make auto the same as auto-safe and introduce auto-unsafe 2025-02-17 16:32:37 +00:00
osc.rst console.lua: always draw a background behind items 2025-02-17 16:35:27 +00:00
select.rst console.lua: close when clicking outside of items horizontally 2025-02-17 16:35:27 +00:00
stats.rst stats.lua: inherit --osd-shadow-offset 2025-01-04 20:07:49 +01:00
vf.rst DOCS/man: document options which are object settings list options 2025-02-16 00:48:04 +00:00
vo.rst DOCS/man: document options which are object settings list options 2025-02-16 00:48:04 +00:00