OSC top/bottom bar layout flaws #2093

Closed
ChrisK2 opened this Issue Jun 30, 2015 · 4 comments

Projects

None yet

5 participants

@ChrisK2
Member
ChrisK2 commented Jun 30, 2015

stuff is not properly aligned along horizontal axes
screen shot 2015-06-30 at 20 09 16

seekbar tool-tip may collide with file title and become hard to read
screen shot 2015-06-30 at 20 05 47

@lachs0r lachs0r was assigned by ChrisK2 Jun 30, 2015
@ghost
ghost commented Jun 30, 2015

Is this from Linux UI? Give me download link

@wm4 wm4 added the bug label Jul 18, 2015
@ItzBlitz98

Since this is somewhat related i think an option for truncating urls and titles is needed.

mpv_510

@wiiaboo
Contributor
wiiaboo commented Jul 28, 2015

This should make the labels aligned with each other and the buttons, at least on my osd-font:

diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 09ca0eb..924250d 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -47,12 +47,12 @@ local osc_param = { -- calculated by osc_init()
 local osc_styles = {
     bigButtons = "{\\blur0\\bord0\\1c&HFFFFFF\\3c&HFFFFFF\\fs50\\fnmpv-osd-symbols}",
     smallButtonsL = "{\\blur0\\bord0\\1c&HFFFFFF\\3c&HFFFFFF\\fs20\\fnmpv-osd-symbols}",
-    smallButtonsLlabel = "{\\fs17\\fn" .. mp.get_property("options/osd-font") .. "}",
+    smallButtonsLlabel = "{\\fs21\\fn" .. mp.get_property("options/osd-font") .. "}",
     smallButtonsR = "{\\blur0\\bord0\\1c&HFFFFFF\\3c&HFFFFFF\\fs30\\fnmpv-osd-symbols}",
     topButtons = "{\\blur0\\bord0\\1c&HFFFFFF\\3c&HFFFFFF\\fs12\\fnmpv-osd-symbols}",

     elementDown = "{\\1c&H999999}",
-    timecodes = "{\\blur0\\bord0\\1c&HFFFFFF\\3c&HFFFFFF\\fs20}",
+    timecodes = "{\\blur0\\bord0\\1c&HFFFFFF\\3c&HFFFFFF\\fs21}",
     vidtitle = "{\\blur0\\bord0\\1c&HFFFFFF\\3c&HFFFFFF\\fs12}",
     box = "{\\rDefault\\blur0\\bord1\\1c&H000000\\3c&HFFFFFF}",
 }
@@ -1082,7 +1082,7 @@ layouts["bottombar"] = function()


     -- Left timecode
-    geo = { x = geo.x + geo.w + padX + 100, y = geo.y, an = 9,
+    geo = { x = geo.x + geo.w + padX + 100, y = geo.y - 1, an = 9,
             w = 100, h = geo.h }
     lo = add_layout("tc_left")
     lo.geometry = geo
@wiiaboo wiiaboo closed this in 7022a24 Oct 6, 2016
@wiiaboo wiiaboo reopened this Oct 25, 2016
@wiiaboo wiiaboo closed this Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment