tomasklaen
2008b776fa
fix: top bar title not inheriting opacity
2022-09-01 13:09:44 +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
christoph-heinrich
7224760820
fix: cap volume to >= 0 ( #161 )
...
With a step size of 1 it was possible to set volume to -1.
mpv permits setting volume to -1 for legacy reasons, so cap it in the ui.
There was a `set_from_cursor` method for setting volume in the speed element.
Probably got copied there at some point by accident.
2022-09-01 10:49:03 +02:00
tomasklaen
92a8ec2281
fix: top bar title missing border
...
closes #158 , closes #160
2022-09-01 10:45:30 +02:00
christoph-heinrich
b84d272b3c
fix: remove unneeded closing curly brace from title ( #159 )
2022-09-01 10:41:58 +02:00
tomasklaen
60ded9c0f2
style: tweak declarations, suppress warnings, reformat
2022-09-01 10:38:40 +02:00
tomasklaen
e276ae14cb
feat: always display volume controls, and visualize no audio
...
This is a media player after all, it makes sense to be able to control it's volume even when playing files with no audio. We might implement image viewing mode in the future, but for now, this stays enabled.
closes #154
2022-09-01 10:28:28 +02:00
christoph-heinrich
1585bc30aa
fix: nil error in show-menu
api ( #156 )
...
The local `menu` shadowed the global `menu`, thus accesing it's methods
didn't work.
2022-08-31 17:24:56 +02:00
christoph-heinrich
ad2123744b
fix: compatiblity with unpack
and table.unpack
( #155 )
...
In Lua 5.2 the unpack global has been moved to table.unpack
To keep compatiblity with 5.1 and newer, choose depending on what's
available.
2022-08-31 17:20:33 +02:00
tomasklaen
6eb48fa571
fix: render_volume()
doesn't need to check for has_audio
2022-08-31 17:13:14 +02:00
tomasklaen
39ae0650c1
refactor: abstract drawing text, rectangles, and circles
2022-08-31 17:04:30 +02:00
christoph-heinrich
272a8efb47
fix: cursor line visually not matching cursor when on top of foreground ( #150 )
2022-08-31 12:24:47 +02:00
christoph-heinrich
c94914cca1
fix: cursor to time conversion was half a pixel imprecise ( #152 )
...
When clicking at a pixel, one would expect to click at the middle of
that pixel instead of the left edge of that pixel.
Add 0.5 to the cursor position to be in the middle.
2022-08-31 10:56:52 +02:00
christoph-heinrich
f363879f04
fix: hovered time didn't use correct time ( #151 )
...
It didn't just show the wrong time when hovering, but also the wrong
chapter when close to a transition.
2022-08-31 09:22:43 +02:00
tomasklaen
9fbc64889c
fix: total time being scaled with speed
...
closes #149
2022-08-31 08:41:50 +02:00
tomasklaen
9bfa8a5e66
refactor: swap icons to google's material icons font
...
ref #147
2022-08-30 23:18:07 +02:00
christoph-heinrich
f0a4b34635
fix: timeline progress smoothness and blurring ( #145 )
...
* Don't clip incomplete pixels on background
* Render background in parts instead of clipping for foreground
2022-08-30 21:55:27 +02:00
christoph-heinrich
65b82f8be9
fix: progress line x coordinate ignoring window border ( #146 )
2022-08-30 20:26:38 +02:00
tomasklaen
92b346ae28
refactor: use self functions
2022-08-30 17:06:05 +02:00
tomasklaen
4365f78e46
refactor: move ass_opacity to assdraw extensions
2022-08-30 16:24:41 +02:00
tomasklaen
804faf9e01
refactor!: use icon font to render icons
2022-08-30 16:24:14 +02:00