From aee08e3f51fcfe6b09b81bed263bc9510af3d2b9 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Sat, 4 Feb 2017 22:47:15 +0000 Subject: 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 --- player/lua/osc.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'player') diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 96fe92ef88..3e3faa0d10 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -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 -- cgit v1.2.3