Skip to content

Commit 249c76d

Browse files
authored
Merge pull request #289 from Samillion/dev_json_locale_fix
fix: improve button tooltip position for all locales (languages)
2 parents 322f20e + 4a9db08 commit 249c76d

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ ModernZ supports mpv's built-in console/select ([v0.39+](https://github.com/mpv-
8282

8383
- [Download default modernz.conf](./modernz.conf)
8484

85-
2. Example short configuration:
85+
2. Example of a short configuration:
8686

8787
```EditorConfig
88-
# Seekbar colors (Hex format)
88+
# Seekbar color (hex format)
8989
seekbarfg_color=#B7410E
9090
9191
# Interface options
92-
showplaylist=no
92+
playlist_button=no
9393
title=${media-title}
9494
scalewindowed=1.0
95-
windowcontrols=auto
95+
window_top_bar=auto
9696
```
9797

98-
For a full list of options, [check out the detailed user options here](docs/USER_OPTS.md).
98+
For a full list of options, [check out the detailed list here](docs/USER_OPTS.md).
9999

100100
## Controls
101101

docs/TRANSLATIONS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ModernZ currently has translations for the following languages:
6969
"screenshot": "Screenshot",
7070
"stats_info": "Information",
7171
"cache": "Cache",
72-
"buffering": "Buffering"
72+
"buffering": "Buffering",
7373
"zoom_in": "Zoom In",
7474
"zoom_out": "Zoom Out",
7575
"download": "Download",

docs/USER_OPTS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Create `modernz.conf` in your mpv script-opts directory:
159159

160160
| Option | Value | Description |
161161
| ------------------------ | -------- | -------------------------------------------------------------------------- |
162-
| seekbarhandlesize | 0.8 | size ratio of the seekbar handle (range: 0 ~ 1) |
162+
| seekbarhandlesize | 0.7 | size ratio of the seekbar handle (range: 0 ~ 1) |
163163
| handle_always_visible | no | control handle visibility: `yes` always visible, `no` show on slider hover |
164164
| seekrange | yes | show seek range overlay |
165165
| seekrangealpha | 150 | transparency of the seek range |

extras/locale/modernz-locale.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"screenshot": "Capture d'écran",
1919
"stats_info": "Informations",
2020
"cache": "Cache",
21-
"buffering": "Chargement"
21+
"buffering": "Chargement",
2222
"zoom_in": "Agrandir",
2323
"zoom_out": "Rétrécir",
2424
"download": "Télécharger",
@@ -45,7 +45,7 @@
4545
"screenshot": "Bildschirmaufnahme",
4646
"stats_info": "Informationen",
4747
"cache": "Zwischenspeicher",
48-
"buffering": "Pufferung"
48+
"buffering": "Pufferung",
4949
"zoom_in": "Vergrößern",
5050
"zoom_out": "Verkleinern",
5151
"download": "Herunterladen",
@@ -72,7 +72,7 @@
7272
"screenshot": "Captura de pantalla",
7373
"stats_info": "Información",
7474
"cache": "Caché",
75-
"buffering": "Cargando"
75+
"buffering": "Cargando",
7676
"zoom_in": "Ampliar",
7777
"zoom_out": "Reducir",
7878
"download": "Descargar",
@@ -99,7 +99,7 @@
9999
"screenshot": "Zrzut ekranu",
100100
"stats_info": "Informacja",
101101
"cache": "Pamięć podręczna",
102-
"buffering": "Buforowanie"
102+
"buffering": "Buforowanie",
103103
"zoom_in": "Powiększ",
104104
"zoom_out": "Pomniejsz",
105105
"download": "Pobierz",
@@ -126,7 +126,7 @@
126126
"screenshot": "スクリーンショット",
127127
"stats_info": "情報",
128128
"cache": "キャッシュ",
129-
"buffering": "読み込み中"
129+
"buffering": "読み込み中",
130130
"zoom_in": "拡大",
131131
"zoom_out": "縮小",
132132
"download": "ダウンロード",
@@ -153,7 +153,7 @@
153153
"screenshot": "截屏",
154154
"stats_info": "信息",
155155
"cache": "缓存",
156-
"buffering": "缓冲中"
156+
"buffering": "缓冲中",
157157
"zoom_in": "放大",
158158
"zoom_out": "缩小",
159159
"download": "下载",
@@ -180,7 +180,7 @@
180180
"screenshot": "لقطة شاشة",
181181
"stats_info": "معلومات",
182182
"cache": "ذاكرة التخزين المؤقت",
183-
"buffering": "جار التحميل"
183+
"buffering": "جار التحميل",
184184
"zoom_in": "تكبير",
185185
"zoom_out": "تصغير",
186186
"download": "تنزيل",

modernz.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ tooltip_hints=yes
228228

229229
# Progress bar settings
230230
# size ratio of the seekbar handle (range: 0 ~ 1)
231-
seekbarhandlesize=0.8
231+
seekbarhandlesize=0.7
232232
# control handle visibility: "yes" always visible, "no" show on slider hover
233233
handle_always_visible=no
234234
# show seek range overlay

modernz.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -1275,11 +1275,11 @@ local function render_elements(master_ass)
12751275
if mouse_hit(element) then
12761276
local tooltiplabel = element.tooltipF
12771277
local an = 1
1278-
local ty = element.hitbox.y1
1278+
local ty = element.hitbox.y1 - 2
12791279
local tx = get_virt_mouse_pos()
12801280

12811281
if ty < osc_param.playresy / 2 then
1282-
ty = element.hitbox.y2
1282+
ty = element.hitbox.y2 - 2
12831283
an = 7
12841284
end
12851285

@@ -1295,7 +1295,7 @@ local function render_elements(master_ass)
12951295
end
12961296

12971297
if tx > osc_param.playresx / 2 then --move tooltip to left side of mouse cursor
1298-
tx = tx - string.len(tooltiplabel) * 8
1298+
tx = tx - string.len(tooltiplabel) * 3
12991299
end
13001300

13011301
elem_ass:new_event()

0 commit comments

Comments
 (0)