Commit Graph

25 Commits

Author SHA1 Message Date
dyphire
6ac00f9115 fix: add .vob and .lrc in *_types (#224) 2022-09-20 12:24:14 +02:00
hooke007
4dc4a8ee3d fix: add more formats in *_types (#220) 2022-09-19 23:43:45 +02:00
tomasklaen
ed8cb8741e feat: added has_many_* disposition types
Adds `has_many_audio`, `has_many_sub`, and `has_many_video` disposition types that can
be used when constructing the controls bar.

The audio track selector button now has a `<has_many_audio>` disposition instead of the old `<has_audio,!audio>`.
2022-09-19 23:42:32 +02:00
tomasklaen
5d92c73481 feat: added control bar button badge limits
It is now possible to specify a threshold when to hide the badge by doing `#audio>1` to display the audio counter badge only when there's more than 1 audio track.

ref #212
2022-09-19 22:08:13 +02:00
Zhong Lufan
3fcafbd64a fix: add .mka to media types (#219) 2022-09-19 21:15:16 +02:00
tomasklaen
fca0dff196 feat: improved top bar playlist position indicator
Also removes the counter from built-in playlist related control buttons, as big playlists create badges that are too big and overlap/overflow the button too much. And having the counter there will make people ask for position (understandable), which would further worsen this problem. Better to have it in the top bar.

ref #212
2022-09-19 17:18:13 +02:00
tomasklaen
c8f4f22d15 feat: added counters and other badges to control buttons
Implements control element `#{badge}` syntax. Example:

```
command:subtitles:script-binding uosc/subtitles#sub?Subtitles
```

ref #212
2022-09-19 14:47:14 +02:00
tomasklaen
e54744b475 refactor: assorted tweaks 2022-09-19 09:55:33 +02:00
tomasklaen
36dd0a622d feat!: convert timeline_chapters option into timeline_chapters_opacity
Controls opacity of chapter indicators with option to disable completely when set to `0`.

ref #206
2022-09-18 15:15:28 +02:00
tomasklaen
3c85721f1a feat!: improve chapters rendering style
All of the old styles had visibility issues, and rendering code was a bit too overcomplicated. This fixes all if it by rendering chapters as diamond indicators on top of the timeline.

`timeline_chapters` option is now a boolean, and `timeline_chapters_opacity` & `timeline_chapters_width` have been removed.

This means chapter rendering is no longer configurable, as they resize based on timeline size, and inherit its opacity and border size, so I don't see what anyone would want to configure here, but I'm sure I'll get some requests as always :'(.

ref #206
2022-09-18 14:26:01 +02:00
tomasklaen
63b7573bde refactor!: removed color_ prefixes from options 2022-09-18 00:21:36 +02:00
tomasklaen
c909409254 feat!: added textures to improve indicators and other visuals
Removes `timeline_cached_ranges` option.

closes #206
2022-09-18 00:11:21 +02:00
dyphire
32011e46d6 feat: add has_sub and has_chapter dispositions (#207) 2022-09-16 09:09:56 +02:00
tomasklaen
85b49002a8 feat: remove title option, use mpv's title config instead
ref #177
2022-09-14 16:45:57 +02:00
tomasklaen
fefe5f01d8 feat: added title option
ref #177
2022-09-14 16:29:10 +02:00
tomasklaen
b87a9a59f4 feat: added text_border option
Controls border of any text or icon when drawn on top of video.

ref #185
2022-09-14 14:14:45 +02:00
tomasklaen
1f18b8b751 feat: improve volume slider visuals
I wanted to round the nudge as well, but thats just too much math and bezier curves.
2022-09-14 13:53:30 +02:00
tomasklaen
ebccd11328 feat!: consolidate all *_font_scale options into one font_scale
ref #185
2022-09-13 17:55:31 +02:00
tomasklaen
9b64c529ac refactor!: element system, menu implementation, ...
With this, the codebase is mostly typed (as much as sumneko's type checking allows), and finally go-to-definition-able.

This refactor changed or touched more than 90% of the codebase, so here's just the most notable changes I can recall:

Menu implementation is now way more robust, and supports:
- live menu updates
- opening submenus allows navigating to parent menus
- items icons and bold & italic styling
- keeping menu open after selecting the item
- peeking submenus
- and a lot of other small tweaks

The menu input data structure changed. It no longer accepts `active_index` and `selected_index`, instead, each item can now have `active` or `selected` property.

And I'm sure there's a lot I'm forgetting to mention, but it's midnight here T.T

closes #144, ref #171, closes #176
2022-09-12 23:53:37 +02:00
tomasklaen
03abd30f8c feat: add tooltips 2022-09-07 14:09:00 +02:00
tomasklaen
b6d45e5bd7 fix: remove obsolete options, add persistency to controls, update conf file 2022-09-07 08:46:42 +02:00
tomasklaen
fa1b2112ec feat: implement controls bar
Also includes a lot of refactoring around codebase to make it work as needed.

Notable addition: new `items` command that displays playlist if any, or open-file otherwise.

ref #167, closes #71
2022-09-06 20:02:35 +02:00
christoph-heinrich
7e16fd9180 feat: better default config for chapter ranges (#165) 2022-09-02 20:59:10 +02:00
christoph-heinrich
a4b32e4edc feat: don't show tooltips for chapters that only end a range (#153)
Chapters that end a chapter range and are matched by something other
then `.*` are now not shown when hovering over that chapter,
unless that chapter is also used to start another range.
2022-09-01 13:00:35 +02:00
tomasklaen
804faf9e01 refactor!: use icon font to render icons 2022-08-30 16:24:14 +02:00