mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
osc: change seekbar background's alpha scaling
This avoids a full transparent seekbar with only boxalpha=115. No change with default values.
This commit is contained in:
parent
7022a24542
commit
e41dbc3019
@ -1158,7 +1158,8 @@ layouts["bottombar"] = function()
|
||||
lo.geometry = geo
|
||||
lo.layer = 15
|
||||
lo.style = osc_styles.timecodes
|
||||
lo.alpha[1] = math.min(255, user_opts.boxalpha + 140)
|
||||
lo.alpha[1] =
|
||||
math.min(255, user_opts.boxalpha + (255 - user_opts.boxalpha)*0.8)
|
||||
|
||||
lo = add_layout("seekbar")
|
||||
lo.geometry = geo
|
||||
@ -1266,7 +1267,8 @@ layouts["topbar"] = function()
|
||||
lo.geometry = geo
|
||||
lo.layer = 15
|
||||
lo.style = osc_styles.timecodes
|
||||
lo.alpha[1] = math.min(255, user_opts.boxalpha + 140)
|
||||
lo.alpha[1] =
|
||||
math.min(255, user_opts.boxalpha + (255 - user_opts.boxalpha)*0.8)
|
||||
|
||||
lo = add_layout("seekbar")
|
||||
lo.geometry = geo
|
||||
|
Loading…
Reference in New Issue
Block a user