From 63d18f733602f9b7381a03b72a17662a99c44fc2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 Mar 2022 07:16:25 +0100 Subject: Fix video fullscreen button, double-click fullscreen Fix video seekbar mouse collision not working for the top of the seekbar --- mpv/input.conf | 1 + mpv/scripts/mordenx.lua | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'mpv') diff --git a/mpv/input.conf b/mpv/input.conf index 635a82c..26b7ef6 100644 --- a/mpv/input.conf +++ b/mpv/input.conf @@ -1,5 +1,6 @@ Ctrl+c ignore Ctrl+s ignore +f ignore BS ignore q ignore WHEEL_UP ignore diff --git a/mpv/scripts/mordenx.lua b/mpv/scripts/mordenx.lua index 1b6bd5a..2df72c3 100644 --- a/mpv/scripts/mordenx.lua +++ b/mpv/scripts/mordenx.lua @@ -114,9 +114,9 @@ local osc_styles = { SeekbarBg = '{\\blur0\\bord0\\1c&HFFFFFF&}', SeekbarFg = '{\\blur1\\bord1\\1c&HE39C42&}', Ctrl1 = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&HFFFFFF&\\fs36\\fnmaterial-design-iconic-font}', - 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}', + Ctrl2 = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&HFFFFFF&\\fs30\\fnmaterial-design-iconic-font}', + Ctrl2Flip = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&HFFFFFF&\\fs30\\fnmaterial-design-iconic-font\\fry180', + Ctrl3 = '{\\blur0\\bord0\\1c&HFFFFFF&\\3c&HFFFFFF&\\fs30\\fnmaterial-design-iconic-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\\fs32\\q2\\fn' .. user_opts.font .. '}', @@ -1098,7 +1098,7 @@ layouts = function () osc_param.areas = {} -- delete areas -- area for active mouse input - add_area('input', get_hitbox_coords(posX, posY, 1, osc_geo.w, 104)) + add_area('input', get_hitbox_coords(posX, posY, 1, osc_geo.w, 113)) -- area for show/hide add_area('showhide', 0, 0, osc_param.playresx, osc_param.playresy) @@ -1489,7 +1489,7 @@ function osc_init() end ne.visible = (osc_param.playresx >= 540) ne.eventresponder['mbtn_left_up'] = - function () mp.commandv('cycle', 'fullscreen') end + function () mp.commandv("cycle", "fullscreen") end --tog_info ne = new_element('tog_info', 'button') -- cgit v1.2.3