925 Commits

Author SHA1 Message Date
tomasklaen
61c259b137 feat: default_directory option now supports {drives} on windows
On unix, this will switch to `/`.

closes #953
2024-08-28 20:05:21 +02:00
tomasklaen
e975429086 feat: display ignored bindings in keybinds menu
ref #901
2024-08-28 18:30:19 +02:00
tomasklaen
5f701436d1 feat: top_bar_flash_on option now supports chapter as an event
ref #478
2024-08-28 18:14:55 +02:00
Tomas Klaen
7f054a45f8 feat: menu lifecycle and actions API (#936) 2024-08-28 17:37:53 +02:00
tomasklaen
a0a608d451 feat: window controls now respect opacity.controls config
closes #949
2024-08-19 09:48:34 +02:00
dyphire
8346db433f fix: always read romanizations for configured languages (#948)
When I originally added this feature, I overlooked that this was actually different from UI localization.
It has different usage scenarios: UI main language and romanization files can be separated
2024-08-13 10:41:17 +02:00
Tomas Klaen
fe0d394435 feat: set-button API for scripts to add custom control bar buttons (#938)
* feat: `set-button` API for scripts to add custom control bar buttons

Adds `set-button <name> <data_json>` message external scripts can send to add or update buttons whose state, look, and click action is defined by `data_json`.

Users can then add this button into their controls bar with `button:<name>` syntax.

closes #935
2024-07-29 10:48:51 +02:00
christoph-heinrich
9fa7220da4 fix: use primary_click for chapter indicators (#932)
Listening to `primary_down`, but not listening to the `primary_up` event
leads to that `up` event getting forwarded. Listening to `primary_click`
instead avoids that problem.

Seeking chapters now happens on button up instead of button down, but
that shouldn't be a problem for anyone and makes their behavior
consistent with other clickable UI elements.

ref. https://github.com/tomasklaen/uosc/discussions/931
2024-07-12 22:44:48 +02:00
christoph-heinrich
c660db0743 feat: use loadlist when opening playlists (#929)
Opening a playlist with loadfile can lead to problems like autoload.lua
populating the playlist with other files that were in the same directory
as the playlist file.

To avoid that the command loadlist can be used to avoid having mpv treat
the file like any other, just to notice during demuxing that it is a
playlist.
2024-07-09 09:29:00 +02:00
christoph-heinrich
3bf774bf54 feat: show playlist files in the file navigation menu (#927)
So far the file navigation menu would only show media files and
directories, but opening playlist files via that menu is a valid use
case as well.

From a quick look at demux_playlist.c and a bit of testing, those seem
to be the only playlist formats mpv supports.
mpv can also open .txt files as playlists, but they need to be provided
via the --playlist=<path> argument and thus don't work here.

ref. https://github.com/tomasklaen/uosc/discussions/926
2024-07-01 23:07:58 +02:00
tomasklaen
1c38d4d3a7 fix: timeline_step wasn't being disabled when set to 0
closes #910
2024-06-03 09:22:48 +02:00
tomasklaen
08df4aa944 fix: menu item separators were being ignored
ref #901
2024-05-27 10:12:53 +02:00
christoph-heinrich
b01c6df787 fix: buffered_time_threshold check (#907)
a7136337c8 fixed the shown duration,
but the threshold check wasn't adjusted and therefore still didn't behave
the same as before 00737e1598.
2024-05-20 23:06:25 +02:00
tomasklaen
43dcb51eb9 feat: added additional selected menu item indicator
closes #853
2024-05-09 11:59:06 +02:00
tomasklaen
0e60272db1 tweak: platform agnostic window controls design 2024-05-08 11:05:13 +02:00
tomasklaen
2940352fad fix: keybinds menu not listing mpv-menu-plugin keyless syntax commands
ref #901
2024-05-07 17:13:10 +02:00
tomasklaen
d4b1343609 fix: keybinds menu list not skipping duplicate, disabled, and ignore keybinds
ref #901
2024-05-07 16:55:15 +02:00
dyphire
89360096c6 fix: display proper capitalization and selected index in track menus (#902)
mpv upstream commit mpv-player/mpv@ab3b174 has introduced support for BCP 47 language tags,
and now track lang has uppercase and lowercase content.

Also avoids showing the selection status of secondary subtitle in the subtitle menu at the same time.
2024-05-06 11:34:26 +02:00
tomasklaen
e15523a56e feat: keybinds menu now also includes keyless or overwritten bindings from input.conf
closes #901
2024-05-06 11:21:16 +02:00
tomasklaen
4c64fe9d52 fix: flash out animations always starting from max instead of current visibility value
closes #900
2024-05-06 10:12:57 +02:00
christoph-heinrich
7f03046223 feat: support aligning window controls to the left (#894) 2024-05-04 22:07:34 +02:00
christoph-heinrich
a7136337c8 fix: scale cache duration with speed again (#899)
fixes 00737e1598
2024-05-04 22:06:46 +02:00
christoph-heinrich
56b62bb0b2 tweak: same spacing between all top bar elements (#893)
There is no reason why that space should be any different to the one
between the playlist and the title
2024-05-01 16:21:43 +02:00
christoph-heinrich
00737e1598 refactor: use demuxer-cache-state/cache-duration property (#889)
It's used by both osc.lua and stats.lua and gives a more accurate
estimation of how much media is cached.
2024-04-23 14:41:13 +02:00
tomasklaen
e6a5fd981d fix: cycle button controls not working properly on floating point values like speed
closes #881
2024-04-07 13:27:46 +02:00
tomasklaen
6fa34c31d0 fix: chapter remaining time scaled by speed even when destination_time is set to time-remaining 2024-03-13 11:01:12 +01:00
tomasklaen
581adf4c5b fix: remaining chapter time in top bar wasn't accounting for speed
closes #873
2024-03-12 14:33:52 +01:00
christoph-heinrich
db985f1cbb fix: human time formats not accounting for speed < 1 (#871) 2024-03-11 09:35:16 +01:00
christoph-heinrich
48e0100727 fix: redraw when toggling the title in the top bar (#870) 2024-03-04 15:00:14 +01:00
christoph-heinrich
3675ed47c3 fix: refine text_width check (#869)
The option did the opposite of what it was supposed to.
2024-03-04 14:59:48 +01:00
tomasklaen
35699d3004 fix: menu crash after ctrl+backspace with only one character in input field
closes #847
2024-02-20 16:17:57 +01:00
tomasklaen
2370cb4e1d fix: disabling chapter indicators now disables chapter tooltips as well
resolves #849
2024-02-20 09:17:48 +01:00
tomasklaen
60dc19713e 5.2.0 2024-02-06 10:51:22 +01:00
tomasklaen
777ed2bb40 fix: keybindings and download-subtitles menus were not using palette search style 2024-02-06 10:45:45 +01:00
Tomas Klaen
4a4d0560b7 fix: click threshold not working when any clickable element is visible (#831)
This moves click threshold handling to cursor zones, which have been reworked a bit.

Resolves #820
2024-02-06 10:18:57 +01:00
tomasklaen
dc73278d65 feat: remaining chapter time in topbar
closes #839
2024-01-28 13:15:24 +01:00
christoph-heinrich
861f121c83 fix: don't scroll to top on menu update during search (#841) 2024-01-27 10:04:42 +01:00
tomasklaen
2eccc1bb06 fix: incorrect top bar state after re-enabling
closes #838
2024-01-20 21:48:22 +01:00
christoph-heinrich
63aba054ea fix: timestamp zero representation caching (#836)
Caching the zero represenation sounds like a good idea, until the
precision gets changed and then e.g. 01:40:23.13 returns -00:00:00.0
because it has the same amount of characters, messing up our width
estimation and pseudo monospace thingy.

Clearing the cache on options change avoids such conflicts.

Fixes #834
2024-01-20 21:26:07 +01:00
christoph-heinrich
0f970b5d8e feat: add items to playlist from files menu when holding ctrl (#822)
Closes #821
2024-01-08 19:18:43 +01:00
tomasklaen
efd6a55b20 feat: added flash-progress command
closes #828
2024-01-04 12:18:30 +01:00
Tomas Klaen
0d7825a4ad feat!: refine option to improve features at a cost of some performance (#816)
Replaces option `text_width_estimation`, which is now one of its available flags:

```
refine=text_width
```
2023-12-28 13:05:59 +01:00
dyphire
b36cefed88 feat: romanization support for search characters (#797) 2023-12-08 18:05:20 +01:00
dyphire
d01eb25c4d feat: more accurate file sorting on windows (#798) 2023-12-08 17:59:04 +01:00
tomasklaen
cef5694f96 fix: no window border on new mpv windows versions
There's a lot of `title-bar` interaction weirdness on windows. When disabling it on newer mpv versions, one version hides borders, other doesn't. So let's just pretend this setting does what it's supposed to and what everyone would expect, and only hides the title bar without touching the border. People can always disable uosc's window border with other options if they need to.
2023-12-08 17:38:50 +01:00
nicoo
9a02a60684 feat: support overriding ziggy path with MPV_UOSC_ZIGGY environment variable (#814)
This is useful when running on a platform builds of `ziggy` aren't provided for
... or when using a distro-provided build.

The idea for this patch originated in NixOS/nixpkgs#270962,
as it needed a way to point `uosc` at the nix-managed build of `ziggy`.
2023-12-07 11:03:21 +01:00
nicoo
8cfcdcfdec docs: fix broken link to uosc.conf (#813) 2023-12-07 10:44:37 +01:00
christoph-heinrich
79a77b1678 fix: couldn't disable buffering_indicator due to incorrect ID (#809)
The element id didn't match the id in the constructors table or the
description in the config. Consequently it was possible to disable the
indicator at startup, but once it was instantiated it wasn't possible to
remove it again.

Fixes #808
2023-12-07 09:56:04 +01:00
tomasklaen
472cbb1648 docs: add installation note about the antivirus issue 2023-12-06 23:33:06 +01:00
tomasklaen
bc9d20cb1a fix: toggle-ui not hiding elements when border=yes
closes #805
2023-12-06 23:05:42 +01:00