Commit Graph

19 Commits

Author SHA1 Message Date
tomasklaen
128c76c3ba feat: menu items now accept selectable and align options
Allows creating placeholder items like "Empty" that can't be selected or clicked.
2023-05-15 11:22:53 +02:00
Eva
7b2f36efc1 fix: take window_border_size into account for thumbnail positioning (#553) 2023-05-04 23:24:21 +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
19f421f67c fix: premature thumbnail hiding during drag seeking 2023-03-29 23:13:51 +02:00
tomasklaen
00daff7ca2 fix: hide thumbnail when dragging timeline
ref #358
2023-03-29 10:04:28 +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
02228282be refactor: uppercase constants 2023-03-27 16:52:32 +02: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
tomasklaen
7647cac9f8 feat: trim unnecessary 00: from timestamps in durations shorter than an hour
closes #401
2023-01-30 10:58:22 +01:00
christoph-heinrich
68ac697002 fix: buffered time respects minus in time remaining (#424) 2023-01-10 21:15:47 +01:00
christoph-heinrich
2b887fcd76 tweak: buffered time threshold based on displayed value (#423) 2023-01-10 21:14:07 +01:00
tomasklaen
9f9b8e422e fix: buffered time not accounting for speed
closes #421
2023-01-10 09:07:57 +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
christoph-heinrich
bfaccc8f66 fix: A-B loop crash (#389) 2022-12-14 09:22:44 +01:00
tomasklaen
6b2476bace feat: allow clicking timeline chapter indicators
I don't like this solution, but anything cleaner would probably require converting chapter indicators into individual elements and than managing/updating their positions and sizes in relation to growing timeline, which seems like a lot more work and code, so this'll have to suffice.

closes #370
2022-11-16 15:23:44 +01:00
tomasklaen
b5ca97adcf feat: add timeline_cache option to disable cache indicators
ref #351
2022-10-27 21:35:56 +02:00
tomasklaen
4399904bba refactor: change directory structure to support mpv 0.32 and lower 2022-10-27 12:09:59 +02:00