Commit Graph

674 Commits

Author SHA1 Message Date
natural-harmonia-gropius
6216f64ac8 fix: update simplified chinese translation (#534) 2023-04-26 15:06:04 +02:00
christoph-heinrich
c15164b390 feat: german translation (#532) 2023-04-26 15:02:56 +02:00
Eva
ec907cacc4 feat: romanian translation (#531) 2023-04-26 09:03:10 +02:00
Eva
c69df10164 tweak: handle plural in audio track list (#530) 2023-04-26 09:02:45 +02:00
Eva
e7f4989da1 fix: use string type for all translation formatting 2023-04-25 21:35:20 +02:00
Eva
1fb0528f9e fix: take parameter values into account when caching translations 2023-04-25 21:35:20 +02:00
Eva
23abd31025 tweak: include number in fallback edition title (#529) 2023-04-25 21:28:20 +02:00
Eva
f403f92c1d fix: translate audio channels and devices list (#520) 2023-04-25 19:21:51 +02:00
tomasklaen
e23eea6e43 feat: add-intl-directory APi for scripts to extend localization 2023-04-25 10:51:39 +02:00
tomasklaen
ec4e51e954 feat: dynamic localization strings and caching
`t()` now works as `string.format()` → `t('Foo %d %s', 42, 'bar')`
2023-04-25 10:01:57 +02:00
christoph-heinrich
1947f1b614 test: add chapter ranges pattern tests (#519) 2023-04-25 09:44:42 +02:00
Eva
64023fbb6c feat: spanish translation (#523) 2023-04-25 09:44:15 +02:00
Eva
987f2ea728 feat: french translation (#521) 2023-04-25 09:43:55 +02:00
natural-harmonia-gropius
cbbb40611e fix: en locale not working (#526) 2023-04-25 09:39:00 +02:00
natural-harmonia-gropius
55087ca3fa fix: language priority (#525) 2023-04-25 09:36:21 +02:00
Eva
398947d931 perf: cache menu title translation (#524) 2023-04-25 09:35:32 +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
f274101fbd fix: failing to detect macos platform (#513)
With the change to use the new `platform` property,
the platform 'macos' also got renamed to 'darwin',
but the platform checks were not adjusted to the new name.
2023-04-19 09:11:56 +02:00
christoph-heinrich
3d55917068 tweak: elements with min_visibility > 0.5 cause a margin (#508) 2023-04-16 00:04:17 +02:00
tomasklaen
ec52252380 4.7.0 2023-04-15 10:34:30 +02:00
christoph-heinrich
588609bf45 tweak: treat italic as a width offset rather then a factor (#506) 2023-04-15 10:30:23 +02:00
tomasklaen
a0b18eabec fix: uncalled for autohide timer triggering on init 2023-04-10 22:24:13 +02:00
tomasklaen
e1b663f930 fix: unloading a file to idle was causing stale current directory path
closes #502
2023-04-10 22:07: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
tomasklaen
50c9629538 refactor: removed unused function param 2023-04-07 09:01:56 +02:00
tomasklaen
ebe512a69d fix: delayed seeking timer initialization placed in the wrong function 2023-04-07 08:57:46 +02:00
tomasklaen
fac2370208 fix: more timeline seeking, dragging, and autohide related tweaks and fixes
Includes how mouse events are dispatched which now handles deduplication and ensures `down` event won't fine `move` as well, which was causing exact and slow seeks in quick succession when clicking on timeline without moving the mouse, causing glitchy looking seeking.

ref #496
2023-04-06 10:47:09 +02:00
tomasklaen
8d85068b7c fix: cursor events not refreshing autohide timer
ref #496
2023-04-05 17:10:37 +02:00
tomasklaen
808fa59418 fix: autohide un-registering cursor events when menu is open
closes #495
2023-04-03 21:53:30 +02:00
christoph-heinrich
5fbfac3eca fix: only enable/disable mouse keybinds when they change (#492)
The keybindings 'mbtn_left' and 'wheel' were enabled/disabled on every
render, resulting in log files being spammed with corresponding debug
messages.
To avoid that only call the enable/disable function when the current
decision is different to the last one.
2023-04-02 09:05:21 +02:00
tomasklaen
19f421f67c fix: premature thumbnail hiding during drag seeking 2023-03-29 23:13:51 +02:00
tomasklaen
21b37ce33b fix: submenus vertically misaligned when opened via show-submenu message
closes #459
2023-03-29 17:08:53 +02:00
tomasklaen
bcb3c811ca fix: image disposition returning false positives
closes #458
2023-03-29 11:09:00 +02:00
tomasklaen
08734f1dda refactor: use mpv's new platform prop to detect platform
closes #462
2023-03-29 10:41:12 +02:00
tomasklaen
00daff7ca2 fix: hide thumbnail when dragging timeline
ref #358
2023-03-29 10:04:28 +02:00
tomasklaen
984f8aa2c8 feat: clicking on playlist indicator in top bar now opens playlist menu
closes #480, closes #481
2023-03-29 09:44:59 +02:00
christoph-heinrich
4dd9bf8a71 tweak: add padding to title (#484)
Long titles with short items would lead to the title touching the edge
of the menu, which doesn't look good. Adding padding like is already
with the items remedies this.
2023-03-29 09:13:35 +02:00
Tomas Klaen
f635df18f7 refactor: cursor events consolidated into one interface (#483)
`mbtn_left` and `wheel` events are now only fired on a `cursor.on_{event}` object, which resets at the beginning of each frame, so elements need to bind these listeners in their render functions. These properties are overwritable which allows elements to take over cursor event handling from their parents if necessary.
2023-03-29 09:08:18 +02:00
tomasklaen
9839e7b726 fix: elements staying visible after switching to fullscreen
closes #482
2023-03-27 16:54:38 +02:00
tomasklaen
02228282be refactor: uppercase constants 2023-03-27 16:52:32 +02:00
xfzv
1ed8a7a823 fix: add ac3 to audio types (#468) 2023-03-04 16:20:51 +01:00
christoph-heinrich
cb14638ae0 fix: use the new console margins API
A recently merged PR https://github.com/mpv-player/mpv/pull/11226 made
the console use the new user-data property instead of
shared-script-properties, resulting in our margins being ignored.

This sets the `user-data/osc/margins` property in addition to the old
shared-script-property to keep compatiblity with older mpv versions.
2023-02-27 09:45:30 +01:00
tomasklaen
f039af5732 feat: added menu keybinds to move and delete items in playlists
`ctrl+up/down` moves a selected item up/down, and `del` deletes it.
2023-02-20 16:12:22 +01:00
tomasklaen
2e5b0cc834 fix: title deduplication matching not escaping pattern parameter
ref #455
2023-02-18 10:58:09 +01:00
tomasklaen
0bc28c213c feat: smarter window main & alt titles deduplication
Deduplicates the main and alt titles by checking if one completely contains the other, and using only the longer one.

ref #455
2023-02-18 10:19:48 +01:00
christoph-heinrich
1dfbbd7091 fix: lax chapter range patterns producing false positives (#454) 2023-02-16 20:26:06 +01:00
tomasklaen
94ec120923 4.6.0 2023-02-15 09:59:39 +01:00
christoph-heinrich
30d6e12001 feat: add on_close command to menu API (#449) 2023-02-07 08:45:04 +01:00
tomasklaen
51015682f8 feat: visually distinct a-b loop indicators
closes #360
2023-01-31 11:11:49 +01:00
christoph-heinrich
811b2c5f33 fix: timestamp offsets should respect the trimmed time width (#443)
* fix: constant width for hovered time

* fix: respect the trimmed time width in the buffered time indicator

* perf: cache timestamp substitutes for width calculation

Co-authored-by: tomasklaen <tomas.klaen@gmail.com>

---------

Co-authored-by: tomasklaen <tomas.klaen@gmail.com>
2023-01-31 09:11:56 +01:00