From 8923e0d8f268462b2a7dfabe2545e1d6bda5615a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 Mar 2022 05:38:44 +0100 Subject: Change video player style (dont scale ui with window size, larger seekbar and progress text) --- mpv/scripts/mordenx.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mpv/scripts/mordenx.lua b/mpv/scripts/mordenx.lua index e5adf62..1b6bd5a 100644 --- a/mpv/scripts/mordenx.lua +++ b/mpv/scripts/mordenx.lua @@ -18,10 +18,10 @@ local utils = require 'mp.utils' local user_opts = { showwindowed = true, -- show OSC when windowed? showfullscreen = true, -- show OSC when fullscreen? - scalewindowed = 0.8, -- scaling of the controller when windowed - scalefullscreen = 0.8, -- scaling of the controller when fullscreen - scaleforcedwindow = 0.8, -- scaling when rendered on a forced window - vidscale = true, -- scale the controller with the video? + scalewindowed = 1.0, -- scaling of the controller when windowed + scalefullscreen = 1.0, -- scaling of the controller when fullscreen + scaleforcedwindow = 1.0, -- scaling when rendered on a forced window + vidscale = false, -- scale the controller with the video? hidetimeout = 1500, -- duration in ms until the OSC hides if no -- mouse movement. enforced non-negative for the -- user, but internally negative is 'always-on'. @@ -117,9 +117,9 @@ local osc_styles = { Ctrl2 = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&HFFFFFF&\\fs24\\fnmaterial-design-iconic-font}', Ctrl2Flip = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&HFFFFFF&\\fs24\\fnmaterial-design-iconic-font\\fry180', Ctrl3 = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&HFFFFFF&\\fs24\\fnmaterial-design-iconic-font}', - Time = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&H000000&\\fs17\\fn' .. user_opts.font .. '}', + Time = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&H000000&\\fs20\\fn' .. user_opts.font .. '}', Tooltip = '{\\blur1\\bord0.5\\1c&HFFFFFF&\\3c&H000000&\\fs18\\fn' .. user_opts.font .. '}', - Title = '{\\blur1\\bord0.5\\1c&HFFFFFF&\\3c&H0\\fs38\\q2\\fn' .. user_opts.font .. '}', + Title = '{\\blur1\\bord0.5\\1c&HFFFFFF&\\3c&H0\\fs32\\q2\\fn' .. user_opts.font .. '}', WinCtrl = '{\\blur1\\bord0.5\\1c&HFFFFFF&\\3c&H0\\fs20\\fnmpv-osd-symbols}', elementDown = '{\\1c&H999999&}', elementHighlight = '{\\blur1\\bord1\\1c&HFFC033&}', @@ -1131,14 +1131,14 @@ layouts = function () -- new_element('bgbar1', 'box') lo = add_layout('bgbar1') - lo.geometry = {x = refX , y = refY - 96 , an = 5, w = osc_geo.w - 50, h = 2} + lo.geometry = {x = refX , y = refY - 105 , an = 5, w = osc_geo.w - 50, h = 4} lo.layer = 13 lo.style = osc_styles.SeekbarBg lo.alpha[1] = 128 lo.alpha[3] = 128 lo = add_layout('seekbar') - lo.geometry = {x = refX, y = refY - 96 , an = 5, w = osc_geo.w - 50, h = 16} + lo.geometry = {x = refX, y = refY - 105 , an = 5, w = osc_geo.w - 50, h = 20} lo.style = osc_styles.SeekbarFg lo.slider.gap = 7 lo.slider.tooltip_style = osc_styles.Tooltip @@ -2066,7 +2066,7 @@ function tick() if (not state.enabled) then return end if (state.idle) then - show_logo() + --show_logo() -- render idle message msg.trace('idle message') -- cgit v1.2.3