Commit Graph

86 Commits

Author SHA1 Message Date
tomasklaen
6ef76cb3ad feat!: reworked color options
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
```
2023-10-15 13:22:48 +02:00
tomasklaen
2ddc4d11f0 tweak: bumped curtain brightness and opacity to prevent menus blending into background 2023-10-15 11:17:07 +02:00
tomasklaen
aeaf562b44 feat: added idle indicator, and an ability to control indicator opacities 2023-10-14 11:10:39 +02:00
Tomas Klaen
3af5ccff9f feat: added disable_elements option and disable-elements script message (#695)
* 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
2023-10-14 10:09:47 +02:00
tomasklaen
a883ae9b41 feat: changed animation_factor option to animation_duration
Having the option be in milliseconds is more intuitive.

closes #689
2023-10-11 17:51:42 +02:00
tomasklaen
27fa983046 feat: added audio indicator for audio files without cover
ref #686
2023-10-09 11:41:07 +02:00
tomasklaen
1440fde298 feat: added animation_factor option to control animation speed
closes #471
2023-10-08 14:21:55 +02:00
Tomas Klaen
b800aebeff feat!: reworked opacity options (#680)
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
2023-10-08 11:59:56 +02:00
tomasklaen
a4ac44a7dc feat: added border_radius option
closes #377
2023-10-06 23:24:20 +02:00
Tomas Klaen
d2febcbd47 feat!: reworked config options for fullscreen scale adjustments (#664)
* 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
2023-10-06 23:20:14 +02:00
tomasklaen
c324e07ff0 feat: windowed and fullscreen added to available element persistency states
closes #618
2023-10-03 13:32:40 +02:00
Tomas Klaen
7f9a8cae6d feat: reworked timeline progress mode (#661)
* 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
2023-10-03 11:10:50 +02:00
dyphire
a0c544a4ba fix: add sbv to subtitle types (#663) 2023-10-02 17:54:09 +02:00
xfzv
5bf81228db fix: add cue to audio types (#662) 2023-10-02 15:44:11 +02:00
tomasklaen
3766f583ae feat: added show_hidden_files option
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
2023-09-24 15:14:58 +02:00
tomasklaen
fec33b73f3 feat: added top_bar_flash_on option
closes #639
2023-09-24 14:41:21 +02:00
christoph-heinrich
18adf90af6 feat: searchable menus (#625)
* 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.
2023-09-21 10:28:43 +02:00
Felix Yan
71cdeda7b3 chore: correct typos in uosc.conf (#594) 2023-08-01 09:47:27 +02:00
tomasklaen
ade1d1f319 feat: dropped compatibility for mpv 0.32 and below
closes #359
2023-07-18 18:21:00 +02:00
natural-harmonia-gropius
3c70ffd927 feat: internationalization (#518)
Adds `languages` option to specify localization language priority.
Built in languages can be found in `scripts/uosc_shared/intl`.
2023-04-24 11:37:58 +02:00
christoph-heinrich
6d58ef4c99 feat: apply margin to osd-margin-* (#499)
* 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.
2023-04-09 08:48:15 +02:00
xfzv
1ed8a7a823 fix: add ac3 to audio types (#468) 2023-03-04 16:20:51 +01:00
tomasklaen
543c4a71f1 feat: added autoload_types option
Controls what file types to look for when deciding next file to play.

Comma separated list of: `video`, `audio`, `image`, `subtitle`

closes #387
2023-01-30 12:57:05 +01:00
tomasklaen
54bb9d6a77 feat: split media_types option into video_types, audio_types, and image_types 2023-01-30 11:44:15 +01:00
tomasklaen
8183163f2a feat: added options to display alternative top bar title
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
2023-01-18 12:06:10 +01:00
Till
ed58830ca7 docs: minor additions and cleanup (#428) 2023-01-14 11:34:56 +01:00
Michael
e66c8fbf88 feat: added destination_time option and deprecated total_time (#399)
`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.
2022-12-27 09:17:12 +01:00
xfzv
ea371b5740 fix: add dts to media_types (#398) 2022-12-24 10:41:45 +01:00
dyphire
e33db65c1c feat: add use_trash option (#394) 2022-12-23 15:51:37 +01:00
tomasklaen
b5ca97adcf feat: add timeline_cache option to disable cache indicators
ref #351
2022-10-27 21:35:56 +02:00
christoph-heinrich
bef4a77139 feat: improved text width measuring (#322) 2022-10-25 10:21:28 +02:00
tomasklaen
75ab13f2e3 feat: make toggle and cycle controls work with external properties
ref #310
2022-10-10 09:56:16 +02:00
tomasklaen
993cfa5d21 tweak: click_threshold descrition and top bar subtitle offset 2022-10-10 09:02:57 +02:00
christoph-heinrich
d3f25af012 fix: options.click_threshold (#309) 2022-10-10 08:56:52 +02:00
tomasklaen
46ab864adc docs: clarify shuffle control and option descriptions
ref #310
2022-10-09 12:07:11 +02:00
tomasklaen
e94f9bf290 feat: implement click_threshold and click_command options
Deprecates `pause_on_click_shorter_than`.
2022-10-08 09:04:54 +02:00
christoph-heinrich
93bb49edce feat: automatically choose between fast and exact seeking (#302) 2022-10-07 23:04:51 +02:00
tomasklaen
983c389a4f feat: add timeline_drag_seek_keyframes option
Makes dragging in timeline use faster seeking to keyframes. Disabled by default.
2022-10-06 22:40:01 +02:00
tomasklaen
87a66b7378 revert: restore *_text color options
I've changed my mind :x Seen a screenshot with a valid use case for tweaking these.
2022-10-06 11:18:33 +02:00
tomasklaen
f9981ce58f feat: replace *_text color options with contrasting color detection
ref #294
2022-10-05 10:22:26 +02:00
dyphire
b194618e98 feat: add editions menu,editions control and has_many_editon disposition (#277) 2022-09-30 10:22:36 +02:00
hooke007
69eef3432f feat: show vids icon if the current file contains multi vid-tracks (#273) 2022-09-28 08:46:52 +02:00
hooke007
d304022c9e feat: make *_persistency support idle (#274) 2022-09-28 08:46:19 +02:00
dyphire
b8a37ef576 feat: add is_idle disposition (#271) 2022-09-27 20:21:47 +02:00
hooke007
bb0d1ace0d fix: a couple config defaults not matching script defaults (#265) 2022-09-25 09:54:25 +02:00
tomasklaen
f27e17e7dc feat!: removed wasd and hjkl menu navigation 2022-09-24 01:16:06 +02:00
tomasklaen
6ef4a2a53a tweak: colors 2022-09-23 16:58:24 +02:00
tomasklaen
810616a131 feat: implement chapter_range_patterns option
Effectively facilitates localization of simple chapter ranges.

ref #247
2022-09-23 16:15:11 +02:00
tomasklaen
850563dbef feat: implemented buffered_time_threshold option 2022-09-23 14:45:31 +02:00
dyphire
9bc72328f0 fix: improve formats in media types (#249) 2022-09-23 14:15:17 +02:00