mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
feat: new cf and th allow to access user configuration and theme scheme in sync/async plugins consistently (#2389)
This commit is contained in:
parent
2410bb9671
commit
7b4c4eae40
30 changed files with 158 additions and 120 deletions
|
|
@ -11,7 +11,7 @@ function M:peek(job)
|
|||
return
|
||||
end
|
||||
|
||||
ya.sleep(math.max(0, PREVIEW.image_delay / 1000 + start - os.clock()))
|
||||
ya.sleep(math.max(0, cf.preview.image_delay / 1000 + start - os.clock()))
|
||||
ya.image_show(cache, job.area)
|
||||
ya.preview_widgets(job, {})
|
||||
end
|
||||
|
|
@ -31,9 +31,9 @@ function M:preload(job)
|
|||
tostring(job.file.url),
|
||||
"-flatten",
|
||||
"-resize",
|
||||
string.format("%dx%d^", PREVIEW.max_width, PREVIEW.max_height),
|
||||
string.format("%dx%d^", cf.preview.max_width, cf.preview.max_height),
|
||||
"-quality",
|
||||
PREVIEW.image_quality,
|
||||
cf.preview.image_quality,
|
||||
"-auto-orient",
|
||||
"JPG:" .. tostring(cache),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue