mirror of
https://github.com/mpv-player/mpv
synced 2025-05-16 23:29:04 +00:00
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. |
||
---|---|---|
.. | ||
af.rst | ||
ao.rst | ||
changes.rst | ||
console.rst | ||
encode.rst | ||
input.rst | ||
ipc.rst | ||
javascript.rst | ||
libmpv.rst | ||
lua.rst | ||
mpv.rst | ||
options.rst | ||
osc.rst | ||
select.rst | ||
stats.rst | ||
vf.rst | ||
vo.rst |