mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
osc: bottom/topbar: add fullscreen button
This commit is contained in:
parent
a477c864a4
commit
fe937e866d
@ -1260,10 +1260,15 @@ layouts["bottombar"] = function()
|
||||
|
||||
local sb_l = geo.x + padX
|
||||
|
||||
-- Fullscreen button
|
||||
geo = { x = osc_geo.x + osc_geo.w - buttonW - padX, y = geo.y, an = 4,
|
||||
w = buttonW, h = geo.h }
|
||||
lo = add_layout("tog_fs")
|
||||
lo.geometry = geo
|
||||
lo.style = osc_styles.smallButtonsBar
|
||||
|
||||
-- Track selection buttons
|
||||
geo = { x = osc_geo.x + osc_geo.w - padX, y = geo.y, an = geo.an,
|
||||
w = tsW, h = geo.h }
|
||||
geo = { x = geo.x - geo.w - padX, y = geo.y, an = geo.an, w = tsW, h = geo.h }
|
||||
lo = add_layout("cy_sub")
|
||||
lo.geometry = geo
|
||||
lo.style = osc_styles.smallButtonsBar
|
||||
@ -1389,10 +1394,14 @@ layouts["topbar"] = function()
|
||||
|
||||
local sb_l = geo.x + padX
|
||||
|
||||
geo = { x = osc_geo.x + osc_geo.w - padX, y = geo.y, an = geo.an,
|
||||
w = buttonW, h = geo.h }
|
||||
lo = add_layout("tog_fs")
|
||||
lo.geometry = geo
|
||||
lo.style = osc_styles.smallButtonsBar
|
||||
|
||||
-- Track selection buttons
|
||||
geo = { x = osc_geo.x + osc_geo.w - padX, y = geo.y, an = geo.an,
|
||||
w = tsW, h = geo.h }
|
||||
geo = { x = geo.x - geo.w - padX, y = geo.y, an = geo.an, w = tsW, h = geo.h }
|
||||
lo = add_layout("cy_sub")
|
||||
lo.geometry = geo
|
||||
lo.style = osc_styles.smallButtonsBar
|
||||
|
Loading…
Reference in New Issue
Block a user