diff options
author | llyyr <llyyr.public@gmail.com> | 2023-08-27 21:16:35 +0530 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-27 16:28:24 +0000 |
commit | a19aefac372c7fbfed08209eef55862c2e715b5c (patch) | |
tree | 93f19af5c1be0f111e1784b32516d61caf16e888 /player/lua/osc.lua | |
parent | d0bc90780631f5dceec98da49c30a324cddf64df (diff) | |
download | mpv-a19aefac372c7fbfed08209eef55862c2e715b5c.tar.bz2 mpv-a19aefac372c7fbfed08209eef55862c2e715b5c.tar.xz |
osc: fix margin for forced-only subs toggle in bar layout
This ensures the spacing between forced-only sub toggle button and the
volume button matches the spacing between the volume and the fullscreen
button on bottombar/topbar layouts
Diffstat (limited to 'player/lua/osc.lua')
-rw-r--r-- | player/lua/osc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua index be0b8783ae..2540201934 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -1632,7 +1632,8 @@ function bar_layout(direction) -- Forced-subs-only button sub_codec = mp.get_property("current-tracks/sub/codec") if (sub_codec == "dvd_subtitle" or sub_codec == "hdmv_pgs_subtitle") then - geo = { x = geo.x - geo.w - padX, y = geo.y, an = geo.an, w = geo.w, h = geo.h } + geo = { x = geo.x - geo.w - padX - 10, + y = geo.y, an = geo.an, w = geo.w, h = geo.h } lo = add_layout("tog_forced_only") lo.geometry = geo lo.style = osc_styles.smallButtonsBar |