summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2017-02-04 22:47:15 +0000
committerRicardo Constantino <wiiaboo@gmail.com>2017-03-24 16:16:11 +0000
commitaee08e3f51fcfe6b09b81bed263bc9510af3d2b9 (patch)
tree3d207d35608015375bba29a65372fba527258081 /player
parent03b2710dc8207fdf6ad30990d274d81cc4a2bce6 (diff)
downloadmpv-aee08e3f51fcfe6b09b81bed263bc9510af3d2b9.tar.bz2
mpv-aee08e3f51fcfe6b09b81bed263bc9510af3d2b9.tar.xz
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
Diffstat (limited to 'player')
-rw-r--r--player/lua/osc.lua8
1 files changed, 4 insertions, 4 deletions
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