Color options have been removed:
```
foreground
foreground_text
background
background_text
```
and replaced with a single `color` option containing comma delimited color overrides with more colors to edit.
Example:
```config
color=foreground=ffccaa,curtain=225566
```
* feat: added `disable_elements` option and `disable-elements` script message
Allows disabling elements and various indicators by adding their IDs to the list:
```conf
disable_elements=timeline,audio_indicator
```
Also includes a new script message listener `disable-elements`, that does the same thing:
```lua
local id = mp.get_script_name()
mp.commandv('script-message-to', 'uosc', 'disable-elements', id, 'timeline,audio_indicator')
```
It'll register what elements each script wants disabled. The element will be enabled only when it is not disabled by neither user nor any script.
To cancel or re-enable the elements, just pass an empty list:
```lua
mp.commandv('script-message-to', 'uosc', 'disable-elements', id, '')
```
ref #686, closes#592
These options have been removed:
```
timeline_opacity
timeline_chapters_opacity
volume_opacity
speed_opacity
menu_opacity
menu_parent_opacity
top_bar_title_opacity
window_border_opacity
curtain_opacity
```
and replaced with one comma delimited `opacity` list to override all of the above and some new default opacity values.
Example:
```
opacity=timeline=0.5,title=0.5
```
List of opacity values available for override and their current defaults:
```
timeline=.9
position=1 # timeline progress or line
chapters=0.8
slider=0.9 # background of all sliders, such as volume
slider_gauge=1 # value bar of all sliders
speed=0.6
menu=1
submenu=0.4
border=1 # window border
title=1 # window title
tooltip=1 # tooltip background
thumbnail=1 # thumbnail border
curtain=0.5
```
closes#584, closes#636, closes#675
* feat!: reworked config options for fullscreen scale adjustments
Removed options:
```
timeline_size_fullscreen
controls_size_fullscreen
volume_size_fullscreen
menu_item_height_fullscreen
menu_min_width_fullscreen
top_bar_size_fullscreen
```
Additionally, `ui_scale` has been renamed to `scale`.
The scaling can now be controlled by these two new options:
```
scale=1
scale_fullscreen=1.3
```
closes#543
* feat: reworked timeline progress mode
Config options:
```
timeline_line_width_fullscreen=3
timeline_line_width_minimized_scale=10
timeline_size_min=2
timeline_size_max=40
timeline_size_min_fullscreen=0
timeline_size_max_fullscreen=60
timeline_start_hidden=no
```
have been replaced with:
```
timeline_size=40
timeline_size_fullscreen=60
progress=windowed
progress_size=2
progress_line_width=20
```
This simplifies stuff a bunch, and enables timeline's progress mode to be togglable at all times. Previously you could only toggle when it was configured to be visible in current context.
closes#630
This is currently limited to Mac & Linux only, since on Windows we have no way of telling a file is hidden (`file_info()` doesn't expose this information).
closes#647
* feat: make the menu searchable
Each menu/submenu can have a `on_search` and `search_debounce`.
`search_debounce` supports the special value 'submit' with which
searches only get executed upon pressing ctrl+enter.
Without a `on_search` an internal search implementation gets used.
The internal search has it's own menu update function that is needed to
keep the same menu item objects around because otherwise updates to
children get discarded when the parent search gets updated.
* feat: add `menu_type_to_search` option
Always listening to text breaks toggling the menu via a single keybind.
Add an option so users can choose to manually activate the search.
* feat: apply margin to `osd-margin-y` and `osd-margin-x`
The margins were already set for `osc-margins` and
`user-data/osc/margins`, but osd messages have their own properties
`osd-margin-x` and `osd-margin-y`.
Offsetting `osd-margin-x` and `osd-margin-y` by our margin prevents
overlap of osd messages with the GUI.
Added option `top_bar_alt_title`, which accepts an alternative title template to be displayed, and `top_bar_alt_title_place` that controls where it should be displayed. It can be either `below` to place it below the main one, or `toggle` to show it in place of the main title when user clicks the top bar or calls the `toggle-title` binding.
The `top_bar_title` now also accepts a custom top bar title template if user wants it to be different from the one defined in `mpv.conf`.
closes#402
`destination_time` accepts one of `total`, `playtime-remaining` (scaled by the current speed), `time-remaining` (remaining length of file).
`total_time` is deprecated, but still works as expected.