Skip to content

Commit

Permalink
osc: fix margin for forced-only subs toggle in bar layout
Browse files Browse the repository at this point in the history
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
  • Loading branch information
llyyr authored and Dudemanguy committed Aug 27, 2023
1 parent d0bc907 commit a19aefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion player/lua/osc.lua
Expand Up @@ -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
Expand Down

0 comments on commit a19aefa

Please sign in to comment.