1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 21:12:23 +00:00

osc: bottom/topbar: increase timecodes width a bit

Compensates for wider fonts like DejaVu Sans Mono.
Further compensate for the minus sign in the right timecode by 10px.

Closes #3952
This commit is contained in:
Ricardo Constantino 2017-02-04 22:47:15 +00:00
parent 03b2710dc8
commit aee08e3f51
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531

View File

@ -1150,7 +1150,7 @@ layouts["bottombar"] = function()
local padX = 9
local padY = 3
local buttonW = 27
local tcW = (state.tc_ms) and 150 or 105
local tcW = (state.tc_ms) and 170 or 110
local tsW = 90
local minW = (buttonW + padX)*3 + (tcW + padX)*4 + (tsW + padX)*2
@ -1261,7 +1261,7 @@ layouts["bottombar"] = function()
-- Right timecode
geo = { x = geo.x - geo.w - padX - tcW, y = geo.y, an = 4,
geo = { x = geo.x - geo.w - padX - tcW - 10, y = geo.y, an = 4,
w = tcW, h = geo.h }
lo = add_layout("tc_right")
lo.geometry = geo
@ -1304,7 +1304,7 @@ layouts["topbar"] = function()
local padX = 9
local padY = 3
local buttonW = 27
local tcW = (state.tc_ms) and 150 or 105
local tcW = (state.tc_ms) and 170 or 110
local tsW = 90
local minW = (buttonW + padX)*3 + (tcW + padX)*4 + (tsW + padX)*2
@ -1384,7 +1384,7 @@ layouts["topbar"] = function()
-- Right timecode
geo = { x = geo.x - geo.w - padX - tcW, y = geo.y, an = 4,
geo = { x = geo.x - geo.w - padX - tcW - 10, y = geo.y, an = 4,
w = tcW, h = geo.h }
lo = add_layout("tc_right")
lo.geometry = geo