925 Commits

Author SHA1 Message Date
dyphire
66f035b332 fix: update simplified chinese translation (#734) 2023-10-24 00:00:15 +02:00
tomasklaen
18e81c27f4 tweak: bumped default border_radius from 2 to 4
Just trying to match other UIs in the world that use bigger radius (mac, win, gnome).
2023-10-23 23:56:36 +02:00
tomasklaen
96685b59fe tweak: menu separators restyled a bit
Basic separator opacity was clashing with actual separator too much, and the actual separator height with item heights.
2023-10-23 23:52:54 +02:00
tomasklaen
e5a1603263 feat: added menu_padding option
This also bumps default menu padding from previous `2` to `4`, and fixes some dimension calculations that weren't account for it. It also makes menu titles look more appropriately sized and text in them vertically centered.
2023-10-23 23:01:19 +02:00
christoph-heinrich
48f09ff1d6 fix: update german translation (#731) 2023-10-22 18:43:07 +02:00
tomasklaen
6e19bee955 fix: timeline chapter indicators not scaling appropriately 2023-10-22 15:33:16 +02:00
Taras Adamchuk
4123cbe6ee feat: added ukrainian translation (#728) 2023-10-22 14:57:07 +02:00
tomasklaen
7c5d4f13f3 refactor: more no dynamic localization calls
The purpose is to make it possible to create a localization file generating and updating script.
2023-10-22 14:35:02 +02:00
tomasklaen
36f80744fe refactor: no dynamic localization calls 2023-10-22 14:06:38 +02:00
tomasklaen
1f26c3ec23 feat: added play-pause control shorthand 2023-10-22 13:53:15 +02:00
christoph-heinrich
d49f385f7d fix: delete-file-prev not working as intended (#726) 2023-10-21 17:13:29 +02:00
christoph-heinrich
192c3efb16 fix: update german translation (#727) 2023-10-21 16:48:05 +02:00
dyphire
066a6dcf4e fix: update simplified chinese translation (#725) 2023-10-21 16:47:46 +02:00
tomasklaen
5e757b2c34 fix: font scaling in timeline
closes #722
2023-10-21 14:28:53 +02:00
tomasklaen
7663485d46 5.0.0 2023-10-21 12:52:09 +02:00
tomasklaen
a3fd4a28e2 tweak: removed paused from default timeline_persistency
Dunno why it was the default. It's annoying :)
2023-10-21 11:32:09 +02:00
Tomas Klaen
a0dccc75ca feat: improved escape and backspace behavior in menus (#719)
`escape` now only closes the menu, and nothing else (before it would clear search if present first).

New shortcuts:

- `ctrl+backspace` - Delete search query by word.
- `shift+backspace` - Clear search query.
2023-10-21 09:26:35 +02:00
tomasklaen
4fe9a73c57 refactor: various code reshuffling and renames
- Moved menu opening functions to `menus.lua`
- Renamed `make_` function prefixes to `create_` (I prefer `make_`, but `mp.*` APIs use `create_` so lets be consistent).
- Removed some dead code.
2023-10-20 10:23:21 +02:00
tomasklaen
230f625556 feat: renamed inputs command to keybinds
`inputs` could have a lot of alternate meanings. `keybinds` is much more clear what it represents.

ref #716
2023-10-20 09:57:58 +02:00
christoph-heinrich
769777ad8a feat(api): removed get-version in favor of early uosc-version broadcast (#714)
Detecting uosc via `get-version` reply sometimes took too long for "do something on init" sensitive tasks. This commit removes it and instead broadcasts `uosc-version <version>` message globally as a first thing during initialization phase.
2023-10-19 21:37:17 +02:00
tomasklaen
c534144adb tweak: made tooltips & thumbnail in timeline use same gaps both horizontally and vertically 2023-10-19 10:05:08 +02:00
christoph-heinrich
bd6a3d4ee5 fix: update german translation (#701) 2023-10-19 09:50:56 +02:00
Tomas Klaen
8763d3fdec feat: added update command to update uosc (#700)
`update` command spawns a subprocess using `mp.command_native_async()` that fetches an appropriate installer from uosc's main branch and runs it in powershell or bash.

This is pretty fragile and doesn't work everywhere, such as snap packages on Linux, or mpv on MacOS.

In snap on Linux, I think we are not allowed to use commands like `curl` or `unzip`, even if they're installed. I guess snap's sandboxing just hides them from us, even if we use a direct path to the binary on the system.

On MacOS, we get a weird `(23) Failed writing body` error... no idea.
2023-10-19 09:50:24 +02:00
tomasklaen
af04ab1e74 fix: missing delete-file-prev command
ref #715
2023-10-18 22:23:34 +02:00
tomasklaen
5ed36d3aec build: fix config path used by MacOS installer 2023-10-18 19:11:07 +02:00
tomasklaen
d5709a76ee fix: default colors not using correct format 2023-10-18 00:17:51 +02:00
christoph-heinrich
3943237d00 fix: touch events firing before handlers are bound (#708) 2023-10-17 22:33:16 +02:00
tomasklaen
03ff5cf9ec build: improved install scripts
The install directory can now be force with `MPV_CONFIG_DIR` environment variable.

Linux installer now detects common Flatpak and Snap packages and installs into their config locations.

All installers now backup current files and restore them when anything goes wrong.
2023-10-17 22:12:02 +02:00
tomasklaen
48ee23eeec fix: use the preferred portable shebang in unix installer
ref #700
2023-10-16 13:49:50 +02:00
christoph-heinrich
bc87eeba22 fix: render after menu fling (#707) 2023-10-16 10:06:59 +02:00
christoph-heinrich
377a262467 fix: position update before mbtn_left down handler (#705) 2023-10-16 10:06:31 +02:00
christoph-heinrich
def505c525 tweak: transparent outline for full volume icon (#704) 2023-10-16 10:06:06 +02:00
christoph-heinrich
99a63baa6b feat: configurable background opacity for buffering indicator (#703) 2023-10-15 17:25:56 +02:00
tomasklaen
cffef038f4 refactor: tween nan prevention 2023-10-15 17:18:47 +02:00
tomasklaen
62a77c5cdc fix: division by zero when animating from and to same value
closes #702
2023-10-15 17:06:56 +02:00
tomasklaen
910074af7b chore: remove typo from cSpell.words 2023-10-15 17:00:37 +02:00
tomasklaen
6075e67b10 fix: typo in cursor event binding 2023-10-15 16:31:21 +02:00
tomasklaen
de877b4cc9 feat: right click on volume or speed to reset them
Speed could already do it with left click, but it's better to move it to a consistent key to match volume, which uses left click to set the value.
2023-10-15 16:00:36 +02:00
tomasklaen
e9453fb579 refactor: cursor event handling
Split cursor into its own `lib/` file and added persistent event handling via `:on()`, `:off()`, and `:once()` methods.

Cursor now also listens on secondary pointer events.
2023-10-15 15:51:45 +02:00
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
e068752d00 tweak: prevent dynamic volume icon from shifting horizontally
ref #699
2023-10-15 11:06:35 +02:00
dyphire
06cef7c730 feat: dynamic volume icon (#699) 2023-10-15 10:59:06 +02:00
tomasklaen
3e685c52b8 style: reconfigured and run the whole codebase through lua formatter 2023-10-14 17:02:51 +02:00
dyphire
3679ba3278 fix: update simplified chinese translation (#698) 2023-10-14 13:24:58 +02:00
tomasklaen
c2aecac245 chore: changed license to LGPL-2.1
closes #682, closes #586
2023-10-14 12:23:16 +02:00
tomasklaen
6dfef3d3f8 feat!: changed modifier to force open directory in file menus from ctrl to alt
To force open a directory instead of navigating to it, you now need to use `alt+enter` or `alt+click` (previously `ctrl`).

`ctrl+enter` has been reassigned to search submit.
2023-10-14 12:07:25 +02:00
tomasklaen
074a1ee4ee docs: update readme with menu search info and other tweaks 2023-10-14 11:54:02 +02:00
tomasklaen
a888bf3466 fix: no window border on older windows mpv versions 2023-10-14 11:41:08 +02:00
tomasklaen
d42c152135 fix: hide audio indicator when displaying static pause indicator 2023-10-14 11:24:39 +02:00