Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

feat(settings): an interface scale, for a larger screen

Tingler3479407cd5ae
diff --git a/src/crates/concat/locales/ar.json b/src/crates/concat/locales/ar.json
index d34ec87e..280382cd 100644
--- a/src/crates/concat/locales/ar.json
+++ b/src/crates/concat/locales/ar.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "التحكم عن بُعد",
"settings.rose": "وردي",
"settings.runsLocally": "يعمل محليًا",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "يقدّم واجهة Concat البرمجية ما دامت النافذة مفتوحة، فيستطيع برنامج نصي أو برنامج آخر إنشاء مشاريعه الخاصة وتحريرها وتصديرها. أي شيء يتصل يستطيع قراءة الملفات وكتابتها كما تستطيع أنت.",
"settings.showTheLog": "إظهار السجل",
"settings.showTheToken": "إظهار الرمز المميّز",
diff --git a/src/crates/concat/locales/bn.json b/src/crates/concat/locales/bn.json
index 318f2791..04dfa05a 100644
--- a/src/crates/concat/locales/bn.json
+++ b/src/crates/concat/locales/bn.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "রিমোট কন্ট্রোল",
"settings.rose": "রোজ",
"settings.runsLocally": "স্থানীয়ভাবে চলে",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "উইন্ডো খোলা থাকা অবস্থায় Concat API পরিবেশন করে, যাতে কোনো স্ক্রিপ্ট বা অন্য প্রোগ্রাম নিজের প্রকল্প তৈরি, সম্পাদনা ও এক্সপোর্ট করতে পারে। যা কিছু সংযোগ করে তা আপনার মতো ফাইল পড়তে ও লিখতে পারে।",
"settings.showTheLog": "লগ দেখুন",
"settings.showTheToken": "টোকেন দেখুন",
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.json
index 44f4208d..cba8a259 100644
--- a/src/crates/concat/locales/de.json
+++ b/src/crates/concat/locales/de.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Fernsteuerung",
"settings.rose": "Rosé",
"settings.runsLocally": "Läuft lokal",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Stellt die Concat-API bereit, solange das Fenster offen ist, damit ein Skript oder ein anderes Programm eigene Projekte anlegen, bearbeiten und exportieren kann. Was sich verbindet, kann Dateien lesen und schreiben wie du.",
"settings.showTheLog": "Protokoll anzeigen",
"settings.showTheToken": "Token anzeigen",
diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.json
index 773b11f5..90e537d4 100644
--- a/src/crates/concat/locales/en.json
+++ b/src/crates/concat/locales/en.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Remote control",
"settings.rose": "Rose",
"settings.runsLocally": "Runs locally",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Serves the Concat API while the window is open, so a script or another program can create, edit and export projects of its own. Anything that connects can read and write files as you can.",
"settings.showTheLog": "Show the log",
"settings.showTheToken": "Show the token",
diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.json
index 5264fe7f..63767fcc 100644
--- a/src/crates/concat/locales/es.json
+++ b/src/crates/concat/locales/es.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Control remoto",
"settings.rose": "Rosa",
"settings.runsLocally": "Se ejecuta localmente",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Sirve la API de Concat mientras la ventana está abierta, para que un script u otro programa cree, edite y exporte sus propios proyectos. Todo lo que se conecte puede leer y escribir archivos igual que tú.",
"settings.showTheLog": "Mostrar el registro",
"settings.showTheToken": "Mostrar el token",
diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.json
index b0430f39..68a7dbe5 100644
--- a/src/crates/concat/locales/fa.json
+++ b/src/crates/concat/locales/fa.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "کنترل از راه دور",
"settings.rose": "گلی",
"settings.runsLocally": "به‌صورت محلی اجرا می‌شود",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "تا وقتی پنجره باز است، Concat API را ارائه می‌کند تا Script یا برنامه دیگری بتواند پروژه‌ها خودش را ایجاد، ویرایش و خروجی گرفتن کند. هر چیزی که متصل شود می‌تواند مانند شما فایل‌ها را خواندن و نوشتن کند.",
"settings.showTheLog": "نمایش گزارش",
"settings.showTheToken": "نمایش Token",
diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.json
index cc18ea3a..81e8b9b4 100644
--- a/src/crates/concat/locales/fr.json
+++ b/src/crates/concat/locales/fr.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Contrôle à distance",
"settings.rose": "Rose",
"settings.runsLocally": "S'exécute localement",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Sert l'API Concat tant que la fenêtre est ouverte, pour qu'un script ou un autre programme crée, modifie et exporte ses propres projets. Tout ce qui se connecte peut lire et écrire des fichiers comme vous.",
"settings.showTheLog": "Afficher le journal",
"settings.showTheToken": "Afficher le jeton",
diff --git a/src/crates/concat/locales/he.json b/src/crates/concat/locales/he.json
index d087c5b1..4807cc5b 100644
--- a/src/crates/concat/locales/he.json
+++ b/src/crates/concat/locales/he.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "שליטה מרחוק",
"settings.rose": "ורד",
"settings.runsLocally": "רץ מקומית",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "מגיש את ה-API של Concat כל עוד החלון פתוח, כך שסקריפט או תוכנה אחרת יכולים ליצור, לערוך ולייצא פרויקטים משלהם. כל מה שמתחבר יכול לקרוא ולכתוב קבצים כמוך.",
"settings.showTheLog": "הצגת היומן",
"settings.showTheToken": "הצגת האסימון",
diff --git a/src/crates/concat/locales/hi.json b/src/crates/concat/locales/hi.json
index 82d36721..ada8d920 100644
--- a/src/crates/concat/locales/hi.json
+++ b/src/crates/concat/locales/hi.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "रिमोट कंट्रोल",
"settings.rose": "गुलाब",
"settings.runsLocally": "लोकल रूप से चलता है",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "विंडो खुली रहने तक Concat API उपलब्ध कराता है, ताकि कोई स्क्रिप्ट या दूसरा प्रोग्राम अपने प्रोजेक्ट बना, संपादित और एक्सपोर्ट कर सके। जो भी जुड़ता है, वह आपकी तरह फ़ाइलें पढ़ और लिख सकता है।",
"settings.showTheLog": "लॉग दिखाएं",
"settings.showTheToken": "टोकन दिखाएं",
diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.json
index f825f515..9d7c7ad6 100644
--- a/src/crates/concat/locales/hr.json
+++ b/src/crates/concat/locales/hr.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Daljinsko upravljanje",
"settings.rose": "Ruža",
"settings.runsLocally": "Radi lokalno",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Poslužuje Concat API dok je prozor otvoren, pa skripta ili drugi program može stvarati, uređivati i izvoziti vlastite projekte. Sve što se poveže može čitati i pisati datoteke kao i vi.",
"settings.showTheLog": "Prikaži zapisnik",
"settings.showTheToken": "Prikaži token",
diff --git a/src/crates/concat/locales/id.json b/src/crates/concat/locales/id.json
index 1eccfb15..66e0d6b8 100644
--- a/src/crates/concat/locales/id.json
+++ b/src/crates/concat/locales/id.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Kendali jarak jauh",
"settings.rose": "Mawar",
"settings.runsLocally": "Berjalan secara lokal",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Menyediakan API Concat selama jendela terbuka, sehingga skrip atau program lain dapat membuat, mengedit, dan mengekspor proyeknya sendiri. Apa pun yang terhubung dapat membaca dan menulis file seperti Anda.",
"settings.showTheLog": "Tampilkan log",
"settings.showTheToken": "Tampilkan token",
diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.json
index 76ba8004..505dc54d 100644
--- a/src/crates/concat/locales/it.json
+++ b/src/crates/concat/locales/it.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Controllo remoto",
"settings.rose": "Rosa",
"settings.runsLocally": "Funziona in locale",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Serve l'API di Concat finché la finestra è aperta, così uno script o un altro programma può creare, modificare ed esportare progetti propri. Tutto ciò che si connette può leggere e scrivere file come te.",
"settings.showTheLog": "Mostra il registro",
"settings.showTheToken": "Mostra il token",
diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.json
index 2a83f8c1..143c2be5 100644
--- a/src/crates/concat/locales/ja.json
+++ b/src/crates/concat/locales/ja.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "リモート操作",
"settings.rose": "ローズ",
"settings.runsLocally": "ローカルで動作",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "ウィンドウが開いている間 Concat API を提供し、スクリプトや他のプログラムが自分のプロジェクトを作成・編集・書き出しできるようにします。接続したものはあなたと同じようにファイルを読み書きできます。",
"settings.showTheLog": "ログを表示",
"settings.showTheToken": "トークンを表示",
diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.json
index b93f7b57..5c837598 100644
--- a/src/crates/concat/locales/ko.json
+++ b/src/crates/concat/locales/ko.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "원격 제어",
"settings.rose": "로즈",
"settings.runsLocally": "로컬에서 실행",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "창이 열려 있는 동안 Concat API를 제공하여 스크립트나 다른 프로그램이 자체 프로젝트를 만들고, 편집하고, 내보낼 수 있게 합니다. 연결한 것은 무엇이든 사용자와 똑같이 파일을 읽고 쓸 수 있습니다.",
"settings.showTheLog": "로그 표시",
"settings.showTheToken": "토큰 보기",
diff --git a/src/crates/concat/locales/nl.json b/src/crates/concat/locales/nl.json
index 6d242dc8..bc1a7f68 100644
--- a/src/crates/concat/locales/nl.json
+++ b/src/crates/concat/locales/nl.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Bediening op afstand",
"settings.rose": "Roos",
"settings.runsLocally": "Draait lokaal",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Biedt de Concat-API aan zolang het venster open is, zodat een script of ander programma eigen projecten kan maken, bewerken en exporteren. Alles wat verbinding maakt, kan bestanden lezen en schrijven zoals jij.",
"settings.showTheLog": "Logboek tonen",
"settings.showTheToken": "Token tonen",
diff --git a/src/crates/concat/locales/pl.json b/src/crates/concat/locales/pl.json
index b0aa9255..dde6b33c 100644
--- a/src/crates/concat/locales/pl.json
+++ b/src/crates/concat/locales/pl.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Zdalne sterowanie",
"settings.rose": "Róża",
"settings.runsLocally": "Działa lokalnie",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Udostępnia API Concat, gdy okno jest otwarte, aby skrypt lub inny program mógł tworzyć, edytować i eksportować własne projekty. Wszystko, co się połączy, może odczytywać i zapisywać pliki tak jak Ty.",
"settings.showTheLog": "Pokaż dziennik",
"settings.showTheToken": "Pokaż token",
diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.json
index d890b1db..4dde6bad 100644
--- a/src/crates/concat/locales/pt-BR.json
+++ b/src/crates/concat/locales/pt-BR.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Controle remoto",
"settings.rose": "Rosa",
"settings.runsLocally": "Executa localmente",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Serve a API do Concat enquanto a janela estiver aberta, para que um script ou outro programa crie, edite e exporte projetos próprios. Tudo que se conectar pode ler e gravar arquivos como você.",
"settings.showTheLog": "Mostrar o log",
"settings.showTheToken": "Mostrar o token",
diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.json
index 8d366535..ea772f1f 100644
--- a/src/crates/concat/locales/ru.json
+++ b/src/crates/concat/locales/ru.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Удалённое управление",
"settings.rose": "Розовый",
"settings.runsLocally": "Работает локально",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Раздаёт API Concat, пока окно открыто, чтобы скрипт или другая программа могли создавать, редактировать и экспортировать свои проекты. Всё, что подключится, сможет читать и записывать файлы так же, как вы.",
"settings.showTheLog": "Показать журнал",
"settings.showTheToken": "Показать токен",
diff --git a/src/crates/concat/locales/th.json b/src/crates/concat/locales/th.json
index 18b0df3b..e1548c41 100644
--- a/src/crates/concat/locales/th.json
+++ b/src/crates/concat/locales/th.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "ควบคุมระยะไกล",
"settings.rose": "กุหลาบ",
"settings.runsLocally": "ทำงานในเครื่อง",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "เปิดให้บริการ Concat API ขณะที่หน้าต่างเปิดอยู่ เพื่อให้สคริปต์หรือโปรแกรมอื่นสร้าง แก้ไข และส่งออกโปรเจกต์ของตัวเองได้ ทุกอย่างที่เชื่อมต่อจะอ่านและเขียนไฟล์ได้เหมือนคุณ",
"settings.showTheLog": "แสดงบันทึก",
"settings.showTheToken": "แสดงโทเค็น",
diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.json
index de7062bf..e25ba27e 100644
--- a/src/crates/concat/locales/tr.json
+++ b/src/crates/concat/locales/tr.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Uzaktan denetim",
"settings.rose": "Gül",
"settings.runsLocally": "Yerel çalışır",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Pencere açıkken Concat API'sini sunar; böylece bir betik ya da başka bir program kendi projelerini oluşturabilir, düzenleyebilir ve dışa aktarabilir. Bağlanan her şey sizin gibi dosya okuyup yazabilir.",
"settings.showTheLog": "Günlüğü göster",
"settings.showTheToken": "Belirteci göster",
diff --git a/src/crates/concat/locales/uk.json b/src/crates/concat/locales/uk.json
index 94c9a1c3..69d6ff12 100644
--- a/src/crates/concat/locales/uk.json
+++ b/src/crates/concat/locales/uk.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Віддалене керування",
"settings.rose": "Троянда",
"settings.runsLocally": "Працює локально",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Надає Concat API, поки вікно відкрите, щоб сценарій чи інша програма могли створювати, редагувати й експортувати власні проєкти. Усе, що підключається, може читати й записувати файли так само, як ви.",
"settings.showTheLog": "Показати журнал",
"settings.showTheToken": "Показати токен",
diff --git a/src/crates/concat/locales/ur.json b/src/crates/concat/locales/ur.json
index 047ff593..102267f9 100644
--- a/src/crates/concat/locales/ur.json
+++ b/src/crates/concat/locales/ur.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "ریموٹ کنٹرول",
"settings.rose": "گلاب",
"settings.runsLocally": "مقامی طور پر چلتا ہے",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "جب تک ونڈو کھلی ہے Concat API فراہم کرتا ہے، تاکہ کوئی اسکرپٹ یا دوسرا پروگرام اپنے پروجیکٹ بنا، ترمیم اور ایکسپورٹ کر سکے۔ جو بھی منسلک ہو وہ آپ کی طرح فائلیں پڑھ اور لکھ سکتا ہے۔",
"settings.showTheLog": "لاگ دکھائیں",
"settings.showTheToken": "ٹوکن دکھائیں",
diff --git a/src/crates/concat/locales/vi.json b/src/crates/concat/locales/vi.json
index bbe24d6a..266e6e96 100644
--- a/src/crates/concat/locales/vi.json
+++ b/src/crates/concat/locales/vi.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "Điều khiển từ xa",
"settings.rose": "Hồng phấn",
"settings.runsLocally": "Chạy cục bộ",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "Cung cấp API Concat khi cửa sổ đang mở để tập lệnh hoặc chương trình khác có thể tạo, chỉnh sửa và xuất dự án riêng. Bất kỳ kết nối nào cũng có thể đọc và ghi tệp như bạn.",
"settings.showTheLog": "Hiện nhật ký",
"settings.showTheToken": "Hiện mã thông báo",
diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.json
index c05cf6b1..e1501c7c 100644
--- a/src/crates/concat/locales/zh-Hans.json
+++ b/src/crates/concat/locales/zh-Hans.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "远程控制",
"settings.rose": "玫瑰",
"settings.runsLocally": "在本地运行",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "窗口打开期间提供 Concat API,让脚本或其他程序可以自行创建、编辑和导出项目。任何连接进来的程序都能像你一样读写文件。",
"settings.showTheLog": "显示日志",
"settings.showTheToken": "显示令牌",
diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.json
index 6c82d3a8..50d081db 100644
--- a/src/crates/concat/locales/zh-TW.json
+++ b/src/crates/concat/locales/zh-TW.json
@@ -777,6 +777,9 @@
"settings.remoteControl": "遠端控制",
"settings.rose": "玫瑰",
"settings.runsLocally": "在本機執行",
+ "settings.scale": "Scale",
+ "settings.scaleHint": "Draw the interface larger than the display's own scale. Most of Concat was built on a small laptop, and reads small on a large screen.",
+ "settings.scaleSystem": "System",
"settings.servesConcatApiWhile": "視窗開啟期間提供 Concat API,讓指令碼或其他程式可以自行建立、編輯和匯出專案。任何連線進來的程式都能像你一樣讀寫檔案。",
"settings.showTheLog": "顯示記錄",
"settings.showTheToken": "顯示權杖",
diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rs
index 2ba05931..b25914f5 100644
--- a/src/crates/concat/src/lib.rs
+++ b/src/crates/concat/src/lib.rs
@@ -160,6 +160,29 @@ pub fn smoke() -> Result<(), slint::PlatformError> {
/// [`run_with_project`], or [`smoke`] when `smoke` is set.
fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::PlatformError> {
+ // The interface scale is read by Slint's window backend when the window
+ // is made, so it has to be in the environment before the backend is
+ // asked to make one - earlier than the studio, which is where the
+ // preferences are normally read. A remembered scale overrides the
+ // display's own; nothing remembered leaves an inherited
+ // SLINT_SCALE_FACTOR alone, so a value set by hand still wins.
+ // https://github.com/jub0t/Concat/issues/320
+ if std::env::var_os("SLINT_SCALE_FACTOR").is_none()
+ && let Ok(dirs) = concat_host::AppDirs::locate()
+ && let Some(percent) = prefs::Preferences::load(&dirs).ui_scale
+ && prefs::UI_SCALES.contains(&percent)
+ {
+ // SAFETY: the process is single-threaded here - the backend, the
+ // engine's threads and the window all come after this function - so
+ // nothing reads the environment concurrently.
+ unsafe {
+ std::env::set_var(
+ "SLINT_SCALE_FACTOR",
+ prefs::Preferences::scale_factor(percent).to_string(),
+ );
+ }
+ }
+
// The shell doesn't exist yet - it needs the window the backend is about
// to help create - but `Shell::with` is a no-op until `Shell::install`
// runs, and by the time an OS drop can actually happen, it has. Import
@@ -244,6 +267,12 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::
theme.set_playhead_custom(colour);
theme.set_playhead_is_custom(true);
}
+ // The interface scale: the row on Settings > Appearance reads the index
+ // off the Theme global, and the window was already made at the scale the
+ // environment asked for above, so this only lines the two up.
+ // https://github.com/jub0t/Concat/issues/320
+ app.global::<Theme>()
+ .set_ui_scale(studio.prefs.scale_index() as i32);
let shell = Rc::new(Shell {
app: app.as_weak(),
@@ -1439,6 +1468,65 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::
});
}
});
+ // The interface scale is the one appearance choice a property cannot
+ // express: the backend takes it as a multiplier, from SLINT_SCALE_FACTOR
+ // when the window is made and from a scale-factor event at any time
+ // after. So the choice is written to the environment for the next window
+ // to open at, and the window that is up is rescaled in place - the
+ // factor handed to it, then the same physical extent laid out again in
+ // logical pixels, so the interface grows within the window rather than
+ // being clipped by it. Nothing is rebuilt; the window keeps its size on
+ // screen. "System" hands back the scale the platform itself reports,
+ // which winit knows whatever SLINT_SCALE_FACTOR last told Slint. The row
+ // reads its value off the Theme global, so that is set here too.
+ // https://github.com/jub0t/Concat/issues/320
+ app.on_settings_scale_changed({
+ move |index| {
+ log::info!("settings: ui scale {index}");
+ Shell::with(|shell, app| {
+ let percent = prefs::Preferences::scale_at(usize::try_from(index).unwrap_or(0));
+ {
+ let mut studio = shell.studio.borrow_mut();
+ studio.prefs.ui_scale = percent;
+ studio.prefs.save(&studio.host.dirs);
+ }
+ app.global::<Theme>().set_ui_scale(index);
+ let window = app.window();
+ // SAFETY: the window's own thread owns the environment here.
+ unsafe {
+ match percent {
+ Some(percent) => std::env::set_var(
+ "SLINT_SCALE_FACTOR",
+ prefs::Preferences::scale_factor(percent).to_string(),
+ ),
+ None => std::env::remove_var("SLINT_SCALE_FACTOR"),
+ }
+ }
+ // The platform's own scale, for "System". On a phone the
+ // window is not winit's and there is no such thing to ask,
+ // so 1 is the answer, which is what the shell uses anyway.
+ #[cfg(not(target_os = "android"))]
+ let system = {
+ use slint::winit_030::WinitWindowAccessor;
+ window
+ .with_winit_window(|winit| winit.scale_factor())
+ .unwrap_or(1.0)
+ };
+ #[cfg(target_os = "android")]
+ let system = 1.0;
+ let factor = percent.map_or(system as f32, |percent| {
+ prefs::Preferences::scale_factor(percent) as f32
+ });
+ let physical = window.size();
+ window.dispatch_event(slint::platform::WindowEvent::ScaleFactorChanged {
+ scale_factor: factor,
+ });
+ window.dispatch_event(slint::platform::WindowEvent::Resized {
+ size: physical.to_logical(factor),
+ });
+ });
+ }
+ });
app.on_export_closed(on_window!(|state| {
state.handle(Msg::Export(ExportMsg::Close));
}));
diff --git a/src/crates/concat/src/prefs.rs b/src/crates/concat/src/prefs.rs
index 3bdf04d4..35d205c2 100644
--- a/src/crates/concat/src/prefs.rs
+++ b/src/crates/concat/src/prefs.rs
@@ -11,6 +11,12 @@ use serde::{Deserialize, Serialize};
const FILE: &str = "settings.json";
+/// The interface scales Settings > Appearance offers, smallest first, as
+/// percents of the display's own scale. Nothing on the list - and no value
+/// at all - leaves the window at the scale the platform hands it.
+/// https://github.com/jub0t/Concat/issues/320
+pub const UI_SCALES: [u32; 5] = [100, 125, 150, 175, 200];
+
/// Remembered preferences.
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
@@ -25,6 +31,14 @@ pub struct Preferences {
/// The playhead's colour as "#rrggbb", when one was picked by hand in
/// Settings > Appearance. `None` is the palette's own, which is lime.
pub playhead: Option<String>,
+ /// The interface scale, as a percent from [`UI_SCALES`]: the window and
+ /// everything in it are drawn this much larger than the display's own
+ /// scale says. `None` - or a value the list no longer has - follows the
+ /// display. Settings > Appearance picks it, and it is remembered here
+ /// for the window a launch makes; the window that is open is rescaled in
+ /// place the moment the choice is made.
+ /// https://github.com/jub0t/Concat/issues/320
+ pub ui_scale: Option<u32>,
/// The chosen transcriber model id, e.g. "base.en".
pub transcriber_model: Option<String>,
/// The chosen speech model id.
@@ -109,6 +123,30 @@ impl Preferences {
.map(str::trim)
.filter(|text| text.starts_with('#'))
}
+
+ /// The scale index the Settings row shows: 0 follows the display, then
+ /// one per [`UI_SCALES`]. A remembered percent the list no longer has
+ /// reads as 0, the way a name the accent list no longer has falls back
+ /// to the default rather than to whatever sits at its old position.
+ pub fn scale_index(&self) -> usize {
+ self.ui_scale
+ .and_then(|percent| UI_SCALES.iter().position(|&scale| scale == percent))
+ .map_or(0, |row| row + 1)
+ }
+
+ /// The percent a remembered row names: `None` at 0, which is the
+ /// display's own, and `None` for a row past the list.
+ pub fn scale_at(index: usize) -> Option<u32> {
+ index
+ .checked_sub(1)
+ .and_then(|row| UI_SCALES.get(row).copied())
+ }
+
+ /// The multiplier the window backend takes for a percent: the percent
+ /// over a hundred, which is what `SLINT_SCALE_FACTOR` parses.
+ pub fn scale_factor(percent: u32) -> f64 {
+ f64::from(percent) / 100.0
+ }
}
/// The Settings sheet's Remote page: whether the API is served while the
@@ -263,4 +301,58 @@ mod tests {
let older: Preferences = serde_json::from_str(r#"{"dark": true}"#).unwrap();
assert_eq!(older.playhead, None);
}
+
+ /// The scale reaches its row by the percent the file holds, and a
+ /// percent nobody offers falls back to the display's own - row 0 - as
+ /// an unknown accent falls back to the default.
+ #[test]
+ fn a_remembered_scale_finds_its_row() {
+ let at = |percent: Option<u32>| {
+ Preferences {
+ ui_scale: percent,
+ ..Preferences::default()
+ }
+ .scale_index()
+ };
+ assert_eq!(at(None), 0);
+ assert_eq!(at(Some(100)), 1);
+ assert_eq!(at(Some(200)), 5);
+ assert_eq!(at(Some(133)), 0);
+ }
+
+ /// The row finds the percent back, row 0 is the display's own, and a
+ /// row past the list is none of the app's.
+ #[test]
+ fn a_row_finds_its_scale() {
+ assert_eq!(Preferences::scale_at(0), None);
+ assert_eq!(Preferences::scale_at(1), Some(100));
+ assert_eq!(Preferences::scale_at(5), Some(200));
+ assert_eq!(Preferences::scale_at(6), None);
+ }
+
+ /// A scale reads as the multiplier the backend's `SLINT_SCALE_FACTOR`
+ /// wants: the percent over a hundred.
+ #[test]
+ fn a_scale_reads_as_a_multiplier() {
+ assert_eq!(Preferences::scale_factor(100), 1.0);
+ assert_eq!(Preferences::scale_factor(150), 1.5);
+ assert_eq!(Preferences::scale_factor(200), 2.0);
+ }
+
+ /// A scale is written as its percent and read back, and a file from
+ /// before the scale existed follows the display.
+ #[test]
+ fn a_scale_round_trips_and_an_older_file_follows_the_display() {
+ let prefs = Preferences {
+ ui_scale: Some(150),
+ ..Preferences::default()
+ };
+ let text = serde_json::to_string(&prefs).unwrap();
+ assert!(text.contains("\"uiScale\":150"), "{text}");
+ let back: Preferences = serde_json::from_str(&text).unwrap();
+ assert_eq!(back.scale_index(), 3);
+ let older: Preferences = serde_json::from_str(r#"{"dark": true}"#).unwrap();
+ assert_eq!(older.ui_scale, None);
+ assert_eq!(older.scale_index(), 0);
+ }
}
diff --git a/src/crates/concat/ui/app.slint b/src/crates/concat/ui/app.slint
index b19508fc..04fd6f65 100644
--- a/src/crates/concat/ui/app.slint
+++ b/src/crates/concat/ui/app.slint
@@ -247,6 +247,7 @@ export component App inherits Window {
callback settings-accent-custom-changed(colour: color);
callback settings-playhead-changed(colour: color);
callback settings-playhead-reset();
+ callback settings-scale-changed(index: int);
callback settings-playhead-stops-changed(on: bool);
callback settings-magnetic-changed(on: bool);
callback settings-download-source-changed(index: int);
@@ -755,6 +756,7 @@ export component App inherits Window {
accent-custom-changed(colour) => { root.settings-accent-custom-changed(colour); }
playhead-changed(colour) => { root.settings-playhead-changed(colour); }
playhead-reset => { root.settings-playhead-reset(); }
+ scale-changed(index) => { root.settings-scale-changed(index); }
playhead-stops-changed(on) => { root.settings-playhead-stops-changed(on); }
magnetic-changed(on) => { root.settings-magnetic-changed(on); }
download-source-changed(index) => { root.settings-download-source-changed(index); }
diff --git a/src/crates/concat/ui/dialogs/settings.slint b/src/crates/concat/ui/dialogs/settings.slint
index 689ce355..37977069 100644
--- a/src/crates/concat/ui/dialogs/settings.slint
+++ b/src/crates/concat/ui/dialogs/settings.slint
@@ -445,6 +445,9 @@ export component SettingsDialog inherits Modal {
callback playhead-changed(colour: color);
/// The palette's own playhead colour, back in place of a picked one.
callback playhead-reset();
+ /// The interface scale, as an index into the scales the row lists: 0
+ /// follows the display's own.
+ callback scale-changed(index: int);
callback playhead-stops-changed(on: bool);
callback magnetic-changed(on: bool);
callback download-source-changed(index: int);
@@ -901,6 +904,28 @@ export component SettingsDialog inherits Modal {
}
}
}
+
+ // The interface scale: how much larger than the display's own
+ // scale the window is drawn. Most of Concat was built on a
+ // small laptop and reads small on a large screen, which is
+ // what this row is for. The backend takes it as a multiplier
+ // rather than as a property, so Rust hands the window a
+ // scale-factor event to apply it (lib.rs,
+ // `on_settings_scale_changed`).
+ // https://github.com/jub0t/Concat/issues/320
+ DialogSection {
+ title: I18n.t("settings.scale");
+ hint: I18n.t("settings.scaleHint");
+
+ Select {
+ options: [
+ I18n.t("settings.scaleSystem"),
+ "100%", "125%", "150%", "175%", "200%",
+ ];
+ current: Theme.ui-scale;
+ changed(index) => { root.scale-changed(index); }
+ }
+ }
}
if root.data.tab == 2: VerticalLayout {
diff --git a/src/crates/concat/ui/theme/theme.slint b/src/crates/concat/ui/theme/theme.slint
index aaf62953..56f2ff6e 100644
--- a/src/crates/concat/ui/theme/theme.slint
+++ b/src/crates/concat/ui/theme/theme.slint
@@ -80,6 +80,15 @@ export global Theme {
/// Settings > Appearance sets both (lib.rs, `on_settings_playhead_changed`)
/// and clears this one to put the palette's back.
in-out property <bool> playhead-is-custom: false;
+ /// Which interface scale the window is drawn at: an index into the
+ /// scales Settings > Appearance lists, 0 being the display's own. Read
+ /// off the Theme global the way the theme and the accent are - it is a
+ /// fact about the window, not editor state - though it is not a colour:
+ /// the backend takes a multiplier, which Rust gives the open window as a
+ /// scale-factor event and puts in `SLINT_SCALE_FACTOR` for the next
+ /// launch (lib.rs, `on_settings_scale_changed`).
+ /// https://github.com/jub0t/Concat/issues/320
+ in-out property <int> ui-scale: 0;
// ── type ─────────────────────────────────────────────────────────────
//