From 609b6ab92ba6842ea2f8580c3d3f4191f4f46141 Mon Sep 17 00:00:00 2001 From: Sam <17427046+Samillion@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:31:18 +0200 Subject: [PATCH 1/6] locale: fix JSON syntax --- extras/locale/modernz-locale.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/extras/locale/modernz-locale.json b/extras/locale/modernz-locale.json index 901fd36..b1a4fe7 100644 --- a/extras/locale/modernz-locale.json +++ b/extras/locale/modernz-locale.json @@ -18,7 +18,7 @@ "screenshot": "Capture d'écran", "stats_info": "Informations", "cache": "Cache", - "buffering": "Chargement" + "buffering": "Chargement", "zoom_in": "Agrandir", "zoom_out": "Rétrécir", "download": "Télécharger", @@ -45,7 +45,7 @@ "screenshot": "Bildschirmaufnahme", "stats_info": "Informationen", "cache": "Zwischenspeicher", - "buffering": "Pufferung" + "buffering": "Pufferung", "zoom_in": "Vergrößern", "zoom_out": "Verkleinern", "download": "Herunterladen", @@ -72,7 +72,7 @@ "screenshot": "Captura de pantalla", "stats_info": "Información", "cache": "Caché", - "buffering": "Cargando" + "buffering": "Cargando", "zoom_in": "Ampliar", "zoom_out": "Reducir", "download": "Descargar", @@ -99,7 +99,7 @@ "screenshot": "Zrzut ekranu", "stats_info": "Informacja", "cache": "Pamięć podręczna", - "buffering": "Buforowanie" + "buffering": "Buforowanie", "zoom_in": "Powiększ", "zoom_out": "Pomniejsz", "download": "Pobierz", @@ -126,7 +126,7 @@ "screenshot": "スクリーンショット", "stats_info": "情報", "cache": "キャッシュ", - "buffering": "読み込み中" + "buffering": "読み込み中", "zoom_in": "拡大", "zoom_out": "縮小", "download": "ダウンロード", @@ -153,7 +153,7 @@ "screenshot": "截屏", "stats_info": "信息", "cache": "缓存", - "buffering": "缓冲中" + "buffering": "缓冲中", "zoom_in": "放大", "zoom_out": "缩小", "download": "下载", @@ -180,7 +180,7 @@ "screenshot": "لقطة شاشة", "stats_info": "معلومات", "cache": "ذاكرة التخزين المؤقت", - "buffering": "جار التحميل" + "buffering": "جار التحميل", "zoom_in": "تكبير", "zoom_out": "تصغير", "download": "تنزيل", From be383a451084aceeae3c1688fc993555cbdcf11b Mon Sep 17 00:00:00 2001 From: Sam <17427046+Samillion@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:55:05 +0200 Subject: [PATCH 2/6] fix: improve button tooltip position for all locales (languages) --- modernz.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modernz.lua b/modernz.lua index 54fd7b2..62d9d17 100644 --- a/modernz.lua +++ b/modernz.lua @@ -1275,11 +1275,11 @@ local function render_elements(master_ass) if mouse_hit(element) then local tooltiplabel = element.tooltipF local an = 1 - local ty = element.hitbox.y1 + local ty = element.hitbox.y1 - 2 local tx = get_virt_mouse_pos() if ty < osc_param.playresy / 2 then - ty = element.hitbox.y2 + ty = element.hitbox.y2 - 2 an = 7 end @@ -1295,7 +1295,7 @@ local function render_elements(master_ass) end if tx > osc_param.playresx / 2 then --move tooltip to left side of mouse cursor - tx = tx - string.len(tooltiplabel) * 8 + tx = tx - string.len(tooltiplabel) * 3 end elem_ass:new_event() From 31696d783b86a0fc9dc5c4719700b06e16e6a1b9 Mon Sep 17 00:00:00 2001 From: Sam <17427046+Samillion@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:57:19 +0200 Subject: [PATCH 3/6] docs: fix JSON syntax --- docs/TRANSLATIONS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TRANSLATIONS.md b/docs/TRANSLATIONS.md index 24f4a32..7ba19ad 100644 --- a/docs/TRANSLATIONS.md +++ b/docs/TRANSLATIONS.md @@ -69,7 +69,7 @@ ModernZ currently has translations for the following languages: "screenshot": "Screenshot", "stats_info": "Information", "cache": "Cache", - "buffering": "Buffering" + "buffering": "Buffering", "zoom_in": "Zoom In", "zoom_out": "Zoom Out", "download": "Download", From 3e15b128c79cf7f3823710d18f63a4477e350597 Mon Sep 17 00:00:00 2001 From: Sam <17427046+Samillion@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:58:56 +0200 Subject: [PATCH 4/6] conf: update seekbarhandlesize value to match recent changes --- modernz.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modernz.conf b/modernz.conf index 5332a02..0fa15ab 100644 --- a/modernz.conf +++ b/modernz.conf @@ -228,7 +228,7 @@ tooltip_hints=yes # Progress bar settings # size ratio of the seekbar handle (range: 0 ~ 1) -seekbarhandlesize=0.8 +seekbarhandlesize=0.7 # control handle visibility: "yes" always visible, "no" show on slider hover handle_always_visible=no # show seek range overlay From e6b403b734b56adcc1ce4b352302871ed2c87c71 Mon Sep 17 00:00:00 2001 From: Sam <17427046+Samillion@users.noreply.github.com> Date: Tue, 31 Dec 2024 22:00:05 +0200 Subject: [PATCH 5/6] docs: update seekbarhandlesize value to match recent changes --- docs/USER_OPTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/USER_OPTS.md b/docs/USER_OPTS.md index 23ae30b..56ac5ae 100644 --- a/docs/USER_OPTS.md +++ b/docs/USER_OPTS.md @@ -159,7 +159,7 @@ Create `modernz.conf` in your mpv script-opts directory: | Option | Value | Description | | ------------------------ | -------- | -------------------------------------------------------------------------- | -| seekbarhandlesize | 0.8 | size ratio of the seekbar handle (range: 0 ~ 1) | +| seekbarhandlesize | 0.7 | size ratio of the seekbar handle (range: 0 ~ 1) | | handle_always_visible | no | control handle visibility: `yes` always visible, `no` show on slider hover | | seekrange | yes | show seek range overlay | | seekrangealpha | 150 | transparency of the seek range | From 4a9db086d6c4f0fb68275f22bf739b1e5726900c Mon Sep 17 00:00:00 2001 From: Sam <17427046+Samillion@users.noreply.github.com> Date: Tue, 31 Dec 2024 22:06:51 +0200 Subject: [PATCH 6/6] docs: fix configuration example --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cdae39f..a54ffd8 100644 --- a/README.md +++ b/README.md @@ -82,20 +82,20 @@ ModernZ supports mpv's built-in console/select ([v0.39+](https://github.com/mpv- - [Download default modernz.conf](./modernz.conf) -2. Example short configuration: +2. Example of a short configuration: ```EditorConfig - # Seekbar colors (Hex format) + # Seekbar color (hex format) seekbarfg_color=#B7410E # Interface options - showplaylist=no + playlist_button=no title=${media-title} scalewindowed=1.0 - windowcontrols=auto + window_top_bar=auto ``` -For a full list of options, [check out the detailed user options here](docs/USER_OPTS.md). +For a full list of options, [check out the detailed list here](docs/USER_OPTS.md). ## Controls