1
0
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:
Ricardo Constantino 2016-10-05 16:43:57 +01:00
parent 7022a24542
commit e41dbc3019

View File

@ -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