tweak: shifted chapter diamonds 1px up

They looked too sunk into the foreground, and now they look like they are just sitting on top of it. Looks better, and improves visibility when minimized.
This commit is contained in:
tomasklaen
2022-09-20 09:29:51 +02:00
parent 4dc4a8ee3d
commit ee629f6f6a

View File

@@ -2802,7 +2802,7 @@ function Timeline:render()
if diamond_radius > 0 then
local function draw_chapter(time)
local chapter_x = time_ax + time_width * (time / state.duration)
local chapter_x, chapter_y = time_ax + time_width * (time / state.duration), fay - 1
ass:new_event()
ass:append(string.format(
'{\\pos(0,0)\\blur0\\yshad0.01\\bord%f\\1c&H%s\\3c&H%s\\4c&H%s\\1a&H%X&\\3a&H00&\\4a&H00&}',
@@ -2810,10 +2810,10 @@ function Timeline:render()
opacity_to_alpha(options.timeline_opacity * options.timeline_chapters_opacity)
))
ass:draw_start()
ass:move_to(chapter_x - diamond_radius, fay)
ass:line_to(chapter_x, fay - diamond_radius)
ass:line_to(chapter_x + diamond_radius, fay)
ass:line_to(chapter_x, fay + diamond_radius)
ass:move_to(chapter_x - diamond_radius, chapter_y)
ass:line_to(chapter_x, chapter_y - diamond_radius)
ass:line_to(chapter_x + diamond_radius, chapter_y)
ass:line_to(chapter_x, chapter_y + diamond_radius)
ass:draw_stop()
end