1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00

osc: bottom/topbar: add fullscreen button

This commit is contained in:
Ricardo Constantino 2017-04-15 18:13:00 +01:00
parent a477c864a4
commit fe937e866d
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531

View File

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