Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hooke007 committed Mar 7, 2024
1 parent 80d505e commit 156ec07
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion portable_config/script-opts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
script-opts-append = thumbfast-direct_io=yes # [仅Windows且LuaJIT] 使用Windows的原生API来写入pipe。默认 yes

script-opts-append = thumbfast-sw_threads=2 # 软解线程数(对杜比视界建议6以上,超过16无意义),默认 2
script-opts-append = thumbfast-binpath=defalut # 自定义mpv路径,Mac使用bundle-app用户可选值为 bundle ,默认 defalut
script-opts-append = thumbfast-binpath=default # 自定义mpv路径,Mac使用bundle-app用户可选值为 bundle ,默认 default
script-opts-append = thumbfast-min_duration=0 # 是否只对时长高于该值的视频启用(秒),默认 0 即禁用
script-opts-append = thumbfast-precise=0 # <默认0|1|2> 预览精度。0 为自动(仅光标静止时为精确帧),1 为始终关键帧,2 为始终精确帧
script-opts-append = thumbfast-quality=0 # <默认0|1|2|3> 预览质量。0 为自动,1 为不映射hdr,2 为减少锯齿并支持将一般hdr源映射到sdr,3 以十倍以上的性能代价支持杜比视界映射
Expand Down
4 changes: 2 additions & 2 deletions portable_config/script-opts/thumbfast.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ direct_io=yes

# 软解线程数(对杜比视界建议6以上,超过16无意义),默认 2
sw_threads=2
# 自定义mpv路径,Mac使用bundle-app用户可选值为 bundle ,默认 defalut
binpath=defalut
# 自定义mpv路径,Mac使用bundle-app用户可选值为 bundle ,默认 default
binpath=default
# 是否只对时长高于该值的视频启用(秒),默认 0 即禁用
min_duration=0
# <默认0|1|2> 预览精度。0 为自动(仅光标静止时为精确帧),1 为始终关键帧,2 为始终精确帧
Expand Down
1 change: 1 addition & 0 deletions portable_config/scripts/uosc/elements/TopBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ end
function TopBar:toggle_title()
if options.top_bar_alt_title_place ~= 'toggle' then return end
self.show_alt_title = not self.show_alt_title
request_render()
end

function TopBar:on_prop_title() self:decide_titles() end
Expand Down
2 changes: 1 addition & 1 deletion portable_config/scripts/uosc/lib/text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ do
---@type boolean, boolean
local bold, italic = opts.bold or options.font_bold, opts.italic or false

if config.refine.text_width then
if not config.refine.text_width then
---@type {[string|number]: {[1]: number, [2]: integer}}
local text_width = get_cache_stage(width_cache, bold)
local width_px = text_width[text]
Expand Down
2 changes: 1 addition & 1 deletion portable_config/scripts/uosc/main.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--[[
SOURCE_ https://github.com/tomasklaen/uosc/tree/main/src/uosc
COMMIT_ 35699d300449b51d79bb9e2397a6de540bf108df
COMMIT_ 48e0100727c5568bc670e4b8ff23efa24af4e142
文档_ https://github.com/hooke007/MPV_lazy/discussions/186
极简主义设计驱动的多功能界面脚本群组,兼容 thumbfast 新缩略图引擎
Expand Down

0 comments on commit 156ec07

Please sign in to comment.