From dc9ecdbe8cbfc663894b7f68bfbb28622dc03adc Mon Sep 17 00:00:00 2001 From: sudo-py-dev Date: Wed, 25 Nov 2026 21:10:51 +0200 Subject: [PATCH] Fix UI bug sweep: seams, search clear, queue bar, recorder copy - Match the window clear color to the panel fill, so the 1 px seams between panels are no longer near-black lines in light mode. - Put the search clear button inside the field, frameless, shown only when there is text; the field takes the sidebar's full width. - Keep the empty queue bar on one line (hint truncated) in narrow windows and long languages; measure the row from the cursor. - Only show Stop all while something runs; stop and remove get different icons. - Recorder and screenshot say where they save (Videos, Music, Pictures), and the capture step no longer shows as done. - Offer the right-click menu on the welcome guide's last page instead of adding it unasked. - Use switches for optional numbers such as an image preset's max width. - Copy: "FMX" everywhere, sentence-case headings, clearer queue and Programs hints in all six languages. - Add plan.md with the UI audit and improvement roadmap. Co-Authored-By: Claude Opus 5.5 --- locales/de.json | 49 +++++---- locales/en.json | 55 +++++----- locales/es.json | 51 +++++----- locales/fr.json | 51 +++++----- locales/he.json | 51 +++++----- locales/ru.json | 51 +++++----- plan.md | 187 ++++++++++++++++++++++++++++++++++ src/app.rs | 248 +++++++++++++++++++++++++++++++-------------- src/devshot.rs | 1 + src/diagnostics.rs | 2 +- src/dir.rs | 20 ++-- src/jobs.rs | 12 +++ src/widgets.rs | 38 +++++++ 13 files changed, 575 insertions(+), 241 deletions(-) create mode 100644 plan.md diff --git a/locales/de.json b/locales/de.json index 96d56e9..2a5cb85 100644 --- a/locales/de.json +++ b/locales/de.json @@ -15,7 +15,7 @@ "window.minimize": "Minimieren", "window.maximize": "Maximieren", "window.restore": "Wiederherstellen", - "app.name": "fmx", + "app.name": "FMX", "language.name": "Deutsch", "category.video": "Video", "category.audio": "Audio", @@ -214,13 +214,13 @@ "mix.top_bottom": "Übereinander", "mix.pip": "Bild-im-Bild", "filter.supported": "Unterstützte Dateien", - "filter.task_list": "fmx-Auftragsliste", + "filter.task_list": "FMX-Auftragsliste", "hint.download_rights": "Laden Sie nur Inhalte herunter, die Sie speichern dürfen.", "hint.dvd_title": "0 wählt den Haupttitel automatisch.", "hint.edit_applies": "Diese Bearbeitungen gelten nur für die Dateien dieses Stapels.", "hint.mix_order": "Die erste Datei ist das Hauptvideo.", "info.title": "Medieninfo – {name}", - "input.capture": "Nimmt auf, bis Sie in der Warteschlange auf Stoppen klicken.", + "input.capture": "Die Aufnahme läuft, bis Sie auf Stoppen klicken. Die Warteschlange mit der Schaltfläche Stoppen öffnet sich, sobald die Aufnahme beginnt.", "input.url": "Adresse:", "notice.list_saved": "Aufträge gespeichert: {count}", "option.audio": "Audio", @@ -279,7 +279,7 @@ "record.quality_high": "Hohe Qualität", "record.cursor": "Mauszeiger zeigen", "record.countdown": "3 Sekunden Countdown vor der Aufnahme", - "record.minimize": "fmx 3 Sekunden vor der Aufnahme minimieren", + "record.minimize": "FMX 3 Sekunden vor der Aufnahme minimieren", "record.format_mkv_hint": "Bleibt abspielbar, auch wenn die Aufnahme unerwartet endet.", "record.format_mov_hint": "Für Apple-Apps wie QuickTime, iMovie und Final Cut.", "record.format_webm_hint": "Offenes Format fürs Web; braucht beim Aufnehmen mehr Prozessorleistung.", @@ -292,7 +292,7 @@ "shot.area_pick": "Bereich beim Aufnehmen wählen", "shot.delay": "Verzögerung", "shot.seconds_suffix": " s", - "shot.minimize": "fmx minimieren, damit es nicht im Bild ist", + "shot.minimize": "FMX minimieren, damit es nicht im Bild ist", "record.choose_screen": "Wählen Sie, was geteilt wird…", "record.starting_in": "Beginnt in {seconds}…", "record.recording": "Aufnahme {time} · {size}", @@ -300,14 +300,14 @@ "record.screen": "Bildschirm", "record.no_screen": "Es wurde kein Bildschirm zum Aufnehmen gefunden.", "record.needs_gstreamer": "Aufnehmen unter Wayland braucht GStreamer mit dem PipeWire-Plugin (gstreamer1.0-pipewire unter Debian und Ubuntu, gstreamer1-plugin-pipewire unter Fedora).", - "record.mac_permission": "Beim ersten Mal bittet macOS, fmx unter Systemeinstellungen › Datenschutz & Sicherheit › Bildschirmaufnahme (und Mikrofon für Ton) zu erlauben. Erlauben Sie es und starten Sie erneut.", + "record.mac_permission": "Beim ersten Mal bittet macOS, FMX unter Systemeinstellungen › Datenschutz & Sicherheit › Bildschirmaufnahme (und Mikrofon für Ton) zu erlauben. Erlauben Sie es und starten Sie erneut.", "record.loopback_windows": "Um den Computerton aufzunehmen, aktivieren Sie Stereomix in der Sound-Systemsteuerung (Registerkarte Aufnahme) oder installieren Sie ein virtuelles Audiokabel.", "record.loopback_mac": "Um den Computerton aufzunehmen, installieren Sie einen Loopback-Treiber wie BlackHole.", "error.screen_share": "Das System hat den Bildschirm nicht freigegeben. {error}", "error.tool_failed": "{program} ist fehlgeschlagen (Code {code}): {log}", "error.missing_program": "{program} ist nicht installiert. Installieren Sie es und klicken Sie in den Einstellungen auf „Erneut suchen“.", "error.bad_url": "Geben Sie eine Webadresse ein, die mit http:// oder https:// beginnt.", - "error.bad_list": "Diese Datei ist keine fmx-Auftragsliste.", + "error.bad_list": "Diese Datei ist keine FMX-Auftragsliste.", "error.list_too_big": "Die Auftragsliste ist zu groß.", "error.no_output": "Das Programm wurde beendet, ohne eine Datei zu erzeugen.", "error.no_tracks": "Auf der CD wurden keine Audiotitel gefunden.", @@ -388,8 +388,8 @@ "option.subtitle_file": "Untertiteldatei", "option.hw_decode_on": "Wenn möglich auf der GPU dekodieren", "settings.notify": "Benachrichtigen, wenn die Warteschlange fertig ist", - "settings.after_done": "Danach", - "settings.after_done_hint": "Bis fmx geschlossen wird; beginnt mit Nichts tun.", + "settings.after_done": "Wenn die Warteschlange fertig ist", + "settings.after_done_hint": "Wird beim nächsten Start von FMX auf Nichts tun zurückgesetzt.", "settings.name_tag": "Dateinamen-Zusatz", "grid.results": "Suchergebnisse", "grid.search": "Werkzeuge suchen…", @@ -462,12 +462,12 @@ "hint.back_to": "Zurück zu {category}", "settings.parallel_hint": "Wie viele Aufträge gleichzeitig laufen.", "settings.name_tag_hint": "Wird an Ausgabenamen angehängt, z. B. video_converted.mp4", - "settings.programs_hint": "Optionale Programme für weitere Werkzeuge. Installiere sie und klicke dann auf Erneut suchen.", + "settings.programs_hint": "Optionale Programme für weitere Werkzeuge. Installieren Sie eines, stellen Sie sicher, dass sein Befehlszeilenwerkzeug im PATH liegt (oder legen Sie es in tools/bin neben FMX ab), und klicken Sie dann auf Erneut suchen.", "settings.program_found": "Installiert", "settings.program_missing": "Nicht installiert", "settings.ffmpeg_found": "Bereit", - "settings.ytdlp_hint": "yt-dlp ist in fmx enthalten und wird mit jeder fmx-Version aktualisiert.", - "error.download_failed": "Download fehlgeschlagen. Die Seite hat sich vielleicht geändert; eine neuere fmx-Version behebt das meist.", + "settings.ytdlp_hint": "yt-dlp ist in FMX enthalten und wird mit jeder FMX-Version aktualisiert.", + "error.download_failed": "Download fehlgeschlagen. Die Seite hat sich vielleicht geändert; eine neuere FMX-Version behebt das meist.", "action.paste": "Einfügen", "hint.paste_url": "Füge die kopierte Adresse ein (Strg+V geht auch).", "update.version_label": "Version", @@ -475,20 +475,20 @@ "update.check_now": "Jetzt suchen", "update.checking": "Suche…", "update.up_to_date": "Du hast die neueste Version.", - "update.safety_hint": "Updates kommen nur aus fmxs GitHub-Releases und werden nur installiert, wenn ihre digitale Signatur zum in fmx eingebauten Schlüssel passt.", - "update.available_title": "fmx {version} ist verfügbar", + "update.safety_hint": "Updates kommen nur aus fmxs GitHub-Releases und werden nur installiert, wenn ihre digitale Signatur zum in FMX eingebauten Schlüssel passt.", + "update.available_title": "FMX {version} ist verfügbar", "update.current_version": "Sie haben Version {current}", "update.install": "Jetzt aktualisieren", "update.whats_new": "Neuigkeiten", "update.skip": "Diese Version überspringen", - "update.downloading": "fmx {version} wird heruntergeladen…", - "update.restart": "fmx {version} ist installiert. Starte neu, um es zu verwenden.", + "update.downloading": "FMX {version} wird heruntergeladen…", + "update.restart": "FMX {version} ist installiert. Starte neu, um es zu verwenden.", "update.restart_now": "Jetzt neu starten", - "update.finish_in_installer": "Schließe die Installation von fmx {version} im geöffneten Fenster ab und starte fmx dann neu.", - "update.installer_running": "Das Installationsprogramm für fmx {version} läuft.", + "update.finish_in_installer": "Schließe die Installation von FMX {version} im geöffneten Fenster ab und starte FMX dann neu.", + "update.installer_running": "Das Installationsprogramm für FMX {version} läuft.", "update.failed_title": "Update fehlgeschlagen", "update.try_again": "Erneut versuchen", - "update.unsupported": "Für dieses System gibt es kein fertiges fmx-Update. Lade es von der Release-Seite herunter.", + "update.unsupported": "Für dieses System gibt es kein fertiges FMX-Update. Lade es von der Release-Seite herunter.", "update.network": "GitHub nicht erreichbar: {error}", "update.bad_release": "Das Release auf GitHub ist unvollständig oder nicht signiert und wurde nicht verwendet.", "update.bad_signature": "Die Signatur des Downloads passt nicht zu fmxs Schlüssel. Er wurde gelöscht, nichts wurde installiert.", @@ -505,7 +505,7 @@ "about.report": "Problem melden", "about.releases": "Alle Versionen", "about.license_title": "Lizenz", - "about.license": "fmx ist frei und quelloffen, nach Wahl unter der MIT- oder Apache-2.0-Lizenz.", + "about.license": "FMX ist frei und quelloffen, nach Wahl unter der MIT- oder Apache-2.0-Lizenz.", "about.third_party": "Software von Drittanbietern", "about.third_party_hint": "Enthält ffmpeg und yt-dlp, jeweils unter eigener Lizenz.", "download.container_mp4": "MP4", @@ -557,12 +557,12 @@ "settings.sound_victory": "Sieg", "settings.sound_custom": "Eigene Datei…", "settings.debug_logging": "Debug-Protokoll", - "settings.debug_hint": "Zeichnet alles, was fmx tut, in einer Protokolldatei auf. Schalten Sie es bei Problemen ein und senden Sie die Dateien aus dem Protokollordner mit Ihrer Meldung.", + "settings.debug_hint": "Zeichnet alles, was FMX tut, in einer Protokolldatei auf. Schalten Sie es bei Problemen ein und senden Sie die Dateien aus dem Protokollordner mit Ihrer Meldung.", "settings.debug_short": "Führt ein ausführliches Protokoll für Fehlerberichte.", "settings.open_logs": "Protokollordner öffnen", - "crash.last_time": "fmx wurde beim letzten Mal unerwartet beendet. Ein Bericht wurde im Protokollordner gespeichert (Einstellungen → Allgemein).", - "shell.menu": "Mit fmx konvertieren", - "shell.open": "In fmx öffnen", + "crash.last_time": "FMX wurde beim letzten Mal unerwartet beendet. Ein Bericht wurde im Protokollordner gespeichert (Einstellungen → Allgemein).", + "shell.menu": "Mit FMX konvertieren", + "shell.open": "In FMX öffnen", "shell.to": "In {format}", "shell.images": "Bilder", "settings.shell_label": "Kontextmenü", @@ -619,7 +619,6 @@ "image_preset.saved": "{format}-Voreinstellung gespeichert", "image_preset.removed": "{format}-Voreinstellung entfernt", "settings.install_program": "Installation / Download", - "settings.install_hint": "Optionale Programme über die folgenden Links installieren. Die Befehlszeilenwerkzeuge zum PATH hinzufügen und erneut suchen. Ausführbare Dateien können auch in tools/bin neben fmx abgelegt werden.", "welcome.title": "Willkommen bei FMX", "welcome.progress": "Schritt {step} von 4", "welcome.choose_title": "Aufgabe auswählen", diff --git a/locales/en.json b/locales/en.json index 829ef18..e584fbc 100644 --- a/locales/en.json +++ b/locales/en.json @@ -16,7 +16,7 @@ "window.maximize": "Maximize", "window.restore": "Restore", "language.name": "English", - "app.name": "fmx", + "app.name": "FMX", "category.video": "Video", "category.audio": "Audio", "category.image": "Images", @@ -214,13 +214,13 @@ "mix.top_bottom": "Top and bottom", "mix.pip": "Picture-in-picture", "filter.supported": "Supported files", - "filter.task_list": "fmx task list", + "filter.task_list": "FMX task list", "hint.download_rights": "Only download content you have the right to save.", "hint.dvd_title": "0 picks the main title automatically.", "hint.edit_applies": "These edits apply to the files added in this batch only.", "hint.mix_order": "The first file is the main video.", "info.title": "Media info - {name}", - "input.capture": "Records until you press Stop in the queue.", + "input.capture": "Recording runs until you press Stop. The queue, with its Stop button, opens when recording starts.", "input.url": "Address:", "notice.list_saved": "Tasks saved: {count}", "option.audio": "Audio", @@ -257,8 +257,8 @@ "settings.group_files": "Files", "settings.group_advanced": "Advanced", "settings.group_running": "Running", - "settings.group_finished": "When Finished", - "settings.group_core": "Core Programs", + "settings.group_finished": "When finished", + "settings.group_core": "Core programs", "settings.programs": "Helper programs", "settings.system_language": "System default", "shutdown.title": "Shutting down", @@ -279,7 +279,7 @@ "record.quality_high": "High quality", "record.cursor": "Show the mouse pointer", "record.countdown": "Count down 3 seconds before recording", - "record.minimize": "Minimize fmx 3 seconds before recording", + "record.minimize": "Minimize FMX 3 seconds before recording", "record.format_mkv_hint": "Stays playable even if recording stops unexpectedly.", "record.format_mov_hint": "For Apple apps such as QuickTime, iMovie and Final Cut.", "record.format_webm_hint": "Open format for the web; uses more processor while recording.", @@ -292,7 +292,7 @@ "shot.area_pick": "Choose an area when taking it", "shot.delay": "Delay", "shot.seconds_suffix": " s", - "shot.minimize": "Minimize fmx so it is not in the picture", + "shot.minimize": "Minimize FMX so it is not in the picture", "record.choose_screen": "Choose what to share…", "record.starting_in": "Starting in {seconds}…", "record.recording": "Recording {time} · {size}", @@ -300,14 +300,14 @@ "record.screen": "Screen", "record.no_screen": "No screen was found to record.", "record.needs_gstreamer": "Recording on Wayland needs GStreamer with its PipeWire plugin (gstreamer1.0-pipewire on Debian and Ubuntu, gstreamer1-plugin-pipewire on Fedora).", - "record.mac_permission": "The first time, macOS asks to allow fmx in System Settings › Privacy & Security › Screen Recording (and Microphone for sound). Allow it, then start again.", + "record.mac_permission": "The first time, macOS asks to allow FMX in System Settings › Privacy & Security › Screen Recording (and Microphone for sound). Allow it, then start again.", "record.loopback_windows": "To record computer sound, turn on Stereo Mix in the Sound control panel (Recording tab) or install a virtual audio cable.", "record.loopback_mac": "To record computer sound, install a loopback driver such as BlackHole.", "error.screen_share": "The system did not share the screen. {error}", "error.tool_failed": "{program} failed (exit {code}): {log}", "error.missing_program": "{program} is not installed. Install it, then press “Scan again” in Settings.", "error.bad_url": "Enter a web address starting with http:// or https://.", - "error.bad_list": "That file is not an fmx task list.", + "error.bad_list": "That file is not an FMX task list.", "error.list_too_big": "The task list file is too large.", "error.no_output": "The program finished without producing a file.", "error.no_tracks": "No audio tracks were found on the disc.", @@ -388,8 +388,8 @@ "option.subtitle_file": "Subtitle file", "option.hw_decode_on": "Decode on the GPU when possible", "settings.notify": "Notify when the queue finishes", - "settings.after_done": "Then", - "settings.after_done_hint": "Until fmx is closed; it starts as Do nothing.", + "settings.after_done": "After the queue finishes", + "settings.after_done_hint": "Goes back to Do nothing the next time FMX starts.", "settings.name_tag": "File name tag", "grid.results": "Search results", "grid.search": "Search tools…", @@ -462,12 +462,12 @@ "hint.back_to": "Back to {category}", "settings.parallel_hint": "How many jobs run at the same time.", "settings.name_tag_hint": "Added to output names, e.g. video_converted.mp4", - "settings.programs_hint": "Optional programs that turn on extra tools. Install them, then press Scan again.", + "settings.programs_hint": "Optional programs that turn on extra tools. Install one, make sure its command-line tool is on PATH (or put it in tools/bin beside FMX), then press Scan again.", "settings.program_found": "Installed", "settings.program_missing": "Not installed", "settings.ffmpeg_found": "Ready", - "settings.ytdlp_hint": "yt-dlp ships with fmx and is updated with each fmx release.", - "error.download_failed": "Download failed. The site may have changed; a newer fmx release usually fixes this.", + "settings.ytdlp_hint": "yt-dlp ships with FMX and is updated with each FMX release.", + "error.download_failed": "Download failed. The site may have changed; a newer FMX release usually fixes this.", "action.paste": "Paste", "hint.paste_url": "Paste the address you copied (Ctrl+V also works).", "update.version_label": "Version", @@ -475,23 +475,23 @@ "update.check_now": "Check now", "update.checking": "Checking…", "update.up_to_date": "You have the latest version.", - "update.safety_hint": "Updates come only from fmx's GitHub releases and are installed only if their digital signature matches the key built into fmx.", - "update.available_title": "fmx {version} is available", + "update.safety_hint": "Updates come only from FMX's GitHub releases and are installed only if their digital signature matches the key built into FMX.", + "update.available_title": "FMX {version} is available", "update.current_version": "You have version {current}", "update.install": "Update now", "update.whats_new": "What's new", "update.skip": "Skip this version", - "update.downloading": "Downloading fmx {version}…", - "update.restart": "fmx {version} is installed. Restart to use it.", + "update.downloading": "Downloading FMX {version}…", + "update.restart": "FMX {version} is installed. Restart to use it.", "update.restart_now": "Restart now", - "update.finish_in_installer": "Finish installing fmx {version} in the window that opened, then restart fmx.", - "update.installer_running": "The fmx {version} installer is running.", + "update.finish_in_installer": "Finish installing FMX {version} in the window that opened, then restart FMX.", + "update.installer_running": "The FMX {version} installer is running.", "update.failed_title": "Update failed", "update.try_again": "Try again", - "update.unsupported": "No ready-made fmx update for this system. Download it from the releases page.", + "update.unsupported": "No ready-made FMX update for this system. Download it from the releases page.", "update.network": "Could not reach GitHub: {error}", "update.bad_release": "The release on GitHub is incomplete or not signed, so it was not used.", - "update.bad_signature": "The download's signature did not match fmx's release key. It was deleted and nothing was installed.", + "update.bad_signature": "The download's signature did not match FMX's release key. It was deleted and nothing was installed.", "update.too_large": "The download was larger than expected and was discarded.", "update.not_installed": "The update was not installed. Try again and enter your password when asked.", "update.available_hint": "An update is ready in Settings → Updates.", @@ -505,7 +505,7 @@ "about.report": "Report a problem", "about.releases": "All releases", "about.license_title": "License", - "about.license": "fmx is free and open source, under the MIT or Apache 2.0 license, as you choose.", + "about.license": "FMX is free and open source, under the MIT or Apache 2.0 license, as you choose.", "about.third_party": "Third-party software", "about.third_party_hint": "Includes ffmpeg and yt-dlp, each under its own license.", "download.container_mp4": "MP4", @@ -557,12 +557,12 @@ "settings.sound_victory": "Victory", "settings.sound_custom": "Custom file…", "settings.debug_logging": "Debug logging", - "settings.debug_hint": "Records everything fmx does in a log file. Turn it on if something goes wrong, then send the files from the logs folder with your report.", + "settings.debug_hint": "Records everything FMX does in a log file. Turn it on if something goes wrong, then send the files from the logs folder with your report.", "settings.debug_short": "Keeps a detailed log for problem reports.", "settings.open_logs": "Open logs folder", - "crash.last_time": "fmx closed unexpectedly last time. A report was saved in the logs folder (Settings → General).", - "shell.menu": "Convert with fmx", - "shell.open": "Open in fmx", + "crash.last_time": "FMX closed unexpectedly last time. A report was saved in the logs folder (Settings → General).", + "shell.menu": "Convert with FMX", + "shell.open": "Open in FMX", "shell.to": "To {format}", "shell.images": "Images", "settings.shell_label": "Right-click menu", @@ -619,7 +619,6 @@ "image_preset.saved": "{format} preset saved", "image_preset.removed": "{format} preset removed", "settings.install_program": "Installation / download", - "settings.install_hint": "Install optional programs using the links below. Make their command-line tools available on PATH, then click Rescan. You can also place executables in tools/bin beside fmx.", "welcome.title": "Welcome to FMX", "welcome.progress": "Step {step} of 4", "welcome.choose_title": "Choose what you want to do", diff --git a/locales/es.json b/locales/es.json index 60c0c11..7fe1277 100644 --- a/locales/es.json +++ b/locales/es.json @@ -15,7 +15,7 @@ "window.minimize": "Minimizar", "window.maximize": "Maximizar", "window.restore": "Restaurar", - "app.name": "fmx", + "app.name": "FMX", "language.name": "Español", "category.video": "Vídeo", "category.audio": "Audio", @@ -214,13 +214,13 @@ "mix.top_bottom": "Arriba y abajo", "mix.pip": "Imagen en imagen", "filter.supported": "Archivos compatibles", - "filter.task_list": "Lista de tareas de fmx", + "filter.task_list": "Lista de tareas de FMX", "hint.download_rights": "Descarga solo contenido que tengas derecho a guardar.", "hint.dvd_title": "0 elige el título principal automáticamente.", "hint.edit_applies": "Estas ediciones solo se aplican a los archivos de este lote.", "hint.mix_order": "El primer archivo es el vídeo principal.", "info.title": "Información - {name}", - "input.capture": "Graba hasta que pulses Detener en la cola.", + "input.capture": "La grabación sigue hasta que pulses Detener. La cola, con su botón Detener, se abre al empezar a grabar.", "input.url": "Dirección:", "notice.list_saved": "Tareas guardadas: {count}", "option.audio": "Audio", @@ -279,7 +279,7 @@ "record.quality_high": "Alta calidad", "record.cursor": "Mostrar el puntero del ratón", "record.countdown": "Cuenta atrás de 3 segundos antes de grabar", - "record.minimize": "Minimizar fmx 3 segundos antes de grabar", + "record.minimize": "Minimizar FMX 3 segundos antes de grabar", "record.format_mkv_hint": "Se puede reproducir aunque la grabación se detenga de forma inesperada.", "record.format_mov_hint": "Para apps de Apple como QuickTime, iMovie y Final Cut.", "record.format_webm_hint": "Formato abierto para la web; usa más procesador al grabar.", @@ -292,7 +292,7 @@ "shot.area_pick": "Elegir una zona al capturar", "shot.delay": "Retraso", "shot.seconds_suffix": " s", - "shot.minimize": "Minimizar fmx para que no salga en la imagen", + "shot.minimize": "Minimizar FMX para que no salga en la imagen", "record.choose_screen": "Elige qué compartir…", "record.starting_in": "Empieza en {seconds}…", "record.recording": "Grabando {time} · {size}", @@ -300,14 +300,14 @@ "record.screen": "Pantalla", "record.no_screen": "No se encontró ninguna pantalla para grabar.", "record.needs_gstreamer": "Grabar en Wayland requiere GStreamer con su complemento de PipeWire (gstreamer1.0-pipewire en Debian y Ubuntu, gstreamer1-plugin-pipewire en Fedora).", - "record.mac_permission": "La primera vez, macOS pide permitir fmx en Ajustes del Sistema › Privacidad y seguridad › Grabación de pantalla (y Micrófono para el sonido). Permítelo y vuelve a empezar.", + "record.mac_permission": "La primera vez, macOS pide permitir FMX en Ajustes del Sistema › Privacidad y seguridad › Grabación de pantalla (y Micrófono para el sonido). Permítelo y vuelve a empezar.", "record.loopback_windows": "Para grabar el sonido del equipo, activa Mezcla estéreo en el panel de control de Sonido (pestaña Grabar) o instala un cable de audio virtual.", "record.loopback_mac": "Para grabar el sonido del equipo, instala un controlador de bucle como BlackHole.", "error.screen_share": "El sistema no compartió la pantalla. {error}", "error.tool_failed": "{program} falló (código {code}): {log}", "error.missing_program": "{program} no está instalado. Instálalo y pulsa «Buscar de nuevo» en Ajustes.", "error.bad_url": "Introduce una dirección web que empiece por http:// o https://.", - "error.bad_list": "Ese archivo no es una lista de tareas de fmx.", + "error.bad_list": "Ese archivo no es una lista de tareas de FMX.", "error.list_too_big": "El archivo de la lista de tareas es demasiado grande.", "error.no_output": "El programa terminó sin generar ningún archivo.", "error.no_tracks": "No se encontraron pistas de audio en el disco.", @@ -388,8 +388,8 @@ "option.subtitle_file": "Archivo de subtítulos", "option.hw_decode_on": "Decodificar en la GPU si es posible", "settings.notify": "Avisar cuando termine la cola", - "settings.after_done": "Después", - "settings.after_done_hint": "Hasta cerrar fmx; empieza como No hacer nada.", + "settings.after_done": "Cuando termine la cola", + "settings.after_done_hint": "Vuelve a No hacer nada la próxima vez que se abra FMX.", "settings.name_tag": "Etiqueta del nombre de archivo", "grid.results": "Resultados de búsqueda", "grid.search": "Buscar herramientas…", @@ -462,12 +462,12 @@ "hint.back_to": "Volver a {category}", "settings.parallel_hint": "Cuántos trabajos se ejecutan a la vez.", "settings.name_tag_hint": "Se añade a los nombres de salida, p. ej. video_converted.mp4", - "settings.programs_hint": "Programas opcionales que activan más herramientas. Instálalos y pulsa Buscar de nuevo.", + "settings.programs_hint": "Programas opcionales que activan más herramientas. Instala uno, asegúrate de que su herramienta de línea de comandos esté en el PATH (o colócala en tools/bin junto a FMX) y pulsa Buscar de nuevo.", "settings.program_found": "Instalado", "settings.program_missing": "No instalado", "settings.ffmpeg_found": "Listo", - "settings.ytdlp_hint": "yt-dlp viene incluido con fmx y se actualiza con cada versión de fmx.", - "error.download_failed": "La descarga falló. Puede que el sitio haya cambiado; una versión más reciente de fmx suele solucionarlo.", + "settings.ytdlp_hint": "yt-dlp viene incluido con FMX y se actualiza con cada versión de FMX.", + "error.download_failed": "La descarga falló. Puede que el sitio haya cambiado; una versión más reciente de FMX suele solucionarlo.", "action.paste": "Pegar", "hint.paste_url": "Pega la dirección que copiaste (también funciona Ctrl+V).", "update.version_label": "Versión", @@ -475,23 +475,23 @@ "update.check_now": "Buscar ahora", "update.checking": "Buscando…", "update.up_to_date": "Tienes la última versión.", - "update.safety_hint": "Las actualizaciones solo vienen de las versiones de fmx en GitHub y solo se instalan si su firma digital coincide con la clave integrada en fmx.", - "update.available_title": "fmx {version} está disponible", + "update.safety_hint": "Las actualizaciones solo vienen de las versiones de FMX en GitHub y solo se instalan si su firma digital coincide con la clave integrada en FMX.", + "update.available_title": "FMX {version} está disponible", "update.current_version": "Tienes la versión {current}", "update.install": "Actualizar ahora", "update.whats_new": "Novedades", "update.skip": "Omitir esta versión", - "update.downloading": "Descargando fmx {version}…", - "update.restart": "fmx {version} está instalado. Reinicia para usarlo.", + "update.downloading": "Descargando FMX {version}…", + "update.restart": "FMX {version} está instalado. Reinicia para usarlo.", "update.restart_now": "Reiniciar ahora", - "update.finish_in_installer": "Termina de instalar fmx {version} en la ventana que se abrió y luego reinicia fmx.", - "update.installer_running": "El instalador de fmx {version} se está ejecutando.", + "update.finish_in_installer": "Termina de instalar FMX {version} en la ventana que se abrió y luego reinicia FMX.", + "update.installer_running": "El instalador de FMX {version} se está ejecutando.", "update.failed_title": "La actualización falló", "update.try_again": "Reintentar", - "update.unsupported": "No hay una actualización de fmx lista para este sistema. Descárgala desde la página de versiones.", + "update.unsupported": "No hay una actualización de FMX lista para este sistema. Descárgala desde la página de versiones.", "update.network": "No se pudo conectar con GitHub: {error}", "update.bad_release": "La versión de GitHub está incompleta o sin firmar, así que no se usó.", - "update.bad_signature": "La firma de la descarga no coincide con la clave de fmx. Se eliminó y no se instaló nada.", + "update.bad_signature": "La firma de la descarga no coincide con la clave de FMX. Se eliminó y no se instaló nada.", "update.too_large": "La descarga era más grande de lo esperado y se descartó.", "update.not_installed": "La actualización no se instaló. Inténtalo de nuevo e introduce tu contraseña cuando se te pida.", "update.available_hint": "Hay una actualización en Ajustes → Actualizaciones.", @@ -505,7 +505,7 @@ "about.report": "Informar de un problema", "about.releases": "Todas las versiones", "about.license_title": "Licencia", - "about.license": "fmx es libre y de código abierto, bajo la licencia MIT o Apache 2.0, a tu elección.", + "about.license": "FMX es libre y de código abierto, bajo la licencia MIT o Apache 2.0, a tu elección.", "about.third_party": "Software de terceros", "about.third_party_hint": "Incluye ffmpeg y yt-dlp, cada uno con su propia licencia.", "download.container_mp4": "MP4", @@ -557,12 +557,12 @@ "settings.sound_victory": "Victoria", "settings.sound_custom": "Archivo personalizado…", "settings.debug_logging": "Registro de depuración", - "settings.debug_hint": "Guarda todo lo que hace fmx en un archivo de registro. Actívalo si algo falla y envía los archivos de la carpeta de registros con tu informe.", + "settings.debug_hint": "Guarda todo lo que hace FMX en un archivo de registro. Actívalo si algo falla y envía los archivos de la carpeta de registros con tu informe.", "settings.debug_short": "Guarda un registro detallado para informar de problemas.", "settings.open_logs": "Abrir carpeta de registros", - "crash.last_time": "fmx se cerró inesperadamente la última vez. Se guardó un informe en la carpeta de registros (Ajustes → General).", - "shell.menu": "Convertir con fmx", - "shell.open": "Abrir en fmx", + "crash.last_time": "FMX se cerró inesperadamente la última vez. Se guardó un informe en la carpeta de registros (Ajustes → General).", + "shell.menu": "Convertir con FMX", + "shell.open": "Abrir en FMX", "shell.to": "A {format}", "shell.images": "Imágenes", "settings.shell_label": "Menú contextual", @@ -619,7 +619,6 @@ "image_preset.saved": "Ajuste de {format} guardado", "image_preset.removed": "Ajuste de {format} quitado", "settings.install_program": "Instalación / descarga", - "settings.install_hint": "Instala los programas opcionales con los enlaces siguientes. Añade sus herramientas de línea de comandos al PATH y vuelve a buscar. También puedes colocar los ejecutables en tools/bin junto a fmx.", "welcome.title": "Te damos la bienvenida a FMX", "welcome.progress": "Paso {step} de 4", "welcome.choose_title": "Elige qué quieres hacer", diff --git a/locales/fr.json b/locales/fr.json index 122dd95..edb6ff5 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -15,7 +15,7 @@ "window.minimize": "Réduire", "window.maximize": "Agrandir", "window.restore": "Restaurer", - "app.name": "fmx", + "app.name": "FMX", "language.name": "Français", "category.video": "Vidéo", "category.audio": "Audio", @@ -214,13 +214,13 @@ "mix.top_bottom": "Haut et bas", "mix.pip": "Incrustation", "filter.supported": "Fichiers pris en charge", - "filter.task_list": "Liste de tâches fmx", + "filter.task_list": "Liste de tâches FMX", "hint.download_rights": "Ne téléchargez que du contenu que vous avez le droit d’enregistrer.", "hint.dvd_title": "0 choisit automatiquement le titre principal.", "hint.edit_applies": "Ces modifications ne s’appliquent qu’aux fichiers de ce lot.", "hint.mix_order": "Le premier fichier est la vidéo principale.", "info.title": "Infos - {name}", - "input.capture": "Enregistre jusqu’à ce que vous cliquiez sur Arrêter dans la file.", + "input.capture": "L’enregistrement continue jusqu’à ce que vous cliquiez sur Arrêter. La file, avec son bouton Arrêter, s’ouvre au début de l’enregistrement.", "input.url": "Adresse :", "notice.list_saved": "Tâches enregistrées : {count}", "option.audio": "Audio", @@ -279,7 +279,7 @@ "record.quality_high": "Haute qualité", "record.cursor": "Afficher le pointeur de la souris", "record.countdown": "Compte à rebours de 3 secondes avant l’enregistrement", - "record.minimize": "Réduire fmx 3 secondes avant l’enregistrement", + "record.minimize": "Réduire FMX 3 secondes avant l’enregistrement", "record.format_mkv_hint": "Reste lisible même si l’enregistrement s’arrête de façon inattendue.", "record.format_mov_hint": "Pour les apps Apple comme QuickTime, iMovie et Final Cut.", "record.format_webm_hint": "Format ouvert pour le web ; sollicite davantage le processeur pendant l’enregistrement.", @@ -292,7 +292,7 @@ "shot.area_pick": "Choisir une zone au moment de la capture", "shot.delay": "Délai", "shot.seconds_suffix": " s", - "shot.minimize": "Réduire fmx pour qu’il ne soit pas sur l’image", + "shot.minimize": "Réduire FMX pour qu’il ne soit pas sur l’image", "record.choose_screen": "Choisissez ce qui est partagé…", "record.starting_in": "Début dans {seconds}…", "record.recording": "Enregistrement {time} · {size}", @@ -300,14 +300,14 @@ "record.screen": "Écran", "record.no_screen": "Aucun écran à enregistrer n’a été trouvé.", "record.needs_gstreamer": "Enregistrer sous Wayland nécessite GStreamer avec son greffon PipeWire (gstreamer1.0-pipewire sur Debian et Ubuntu, gstreamer1-plugin-pipewire sur Fedora).", - "record.mac_permission": "La première fois, macOS demande d’autoriser fmx dans Réglages Système › Confidentialité et sécurité › Enregistrement de l’écran (et Microphone pour le son). Autorisez-le, puis recommencez.", + "record.mac_permission": "La première fois, macOS demande d’autoriser FMX dans Réglages Système › Confidentialité et sécurité › Enregistrement de l’écran (et Microphone pour le son). Autorisez-le, puis recommencez.", "record.loopback_windows": "Pour enregistrer le son de l’ordinateur, activez Mixage stéréo dans le panneau Son (onglet Enregistrement) ou installez un câble audio virtuel.", "record.loopback_mac": "Pour enregistrer le son de l’ordinateur, installez un pilote de bouclage comme BlackHole.", "error.screen_share": "Le système n’a pas partagé l’écran. {error}", "error.tool_failed": "{program} a échoué (code {code}) : {log}", "error.missing_program": "{program} n’est pas installé. Installez-le puis cliquez sur « Rechercher à nouveau » dans Paramètres.", "error.bad_url": "Saisissez une adresse web commençant par http:// ou https://.", - "error.bad_list": "Ce fichier n’est pas une liste de tâches fmx.", + "error.bad_list": "Ce fichier n’est pas une liste de tâches FMX.", "error.list_too_big": "Le fichier de liste de tâches est trop volumineux.", "error.no_output": "Le programme s’est terminé sans produire de fichier.", "error.no_tracks": "Aucune piste audio trouvée sur le disque.", @@ -388,8 +388,8 @@ "option.subtitle_file": "Fichier de sous-titres", "option.hw_decode_on": "Décoder sur le GPU si possible", "settings.notify": "Notifier à la fin de la file", - "settings.after_done": "Ensuite", - "settings.after_done_hint": "Jusqu’à la fermeture de fmx ; commence sur Ne rien faire.", + "settings.after_done": "Quand la file est terminée", + "settings.after_done_hint": "Revient à Ne rien faire au prochain démarrage de FMX.", "settings.name_tag": "Suffixe du nom de fichier", "grid.results": "Résultats de recherche", "grid.search": "Rechercher un outil…", @@ -462,12 +462,12 @@ "hint.back_to": "Retour à {category}", "settings.parallel_hint": "Nombre de tâches exécutées en même temps.", "settings.name_tag_hint": "Ajouté aux noms de sortie, p. ex. video_converted.mp4", - "settings.programs_hint": "Programmes facultatifs qui activent d’autres outils. Installez-les, puis cliquez sur Rechercher à nouveau.", + "settings.programs_hint": "Programmes facultatifs qui activent d’autres outils. Installez-en un, vérifiez que son outil en ligne de commande est dans le PATH (ou placez-le dans tools/bin à côté de FMX), puis cliquez sur Rechercher à nouveau.", "settings.program_found": "Installé", "settings.program_missing": "Non installé", "settings.ffmpeg_found": "Prêt", - "settings.ytdlp_hint": "yt-dlp est fourni avec fmx et mis à jour à chaque version de fmx.", - "error.download_failed": "Le téléchargement a échoué. Le site a peut-être changé ; une version plus récente de fmx corrige généralement ce problème.", + "settings.ytdlp_hint": "yt-dlp est fourni avec FMX et mis à jour à chaque version de FMX.", + "error.download_failed": "Le téléchargement a échoué. Le site a peut-être changé ; une version plus récente de FMX corrige généralement ce problème.", "action.paste": "Coller", "hint.paste_url": "Collez l’adresse copiée (Ctrl+V fonctionne aussi).", "update.version_label": "Version", @@ -475,23 +475,23 @@ "update.check_now": "Rechercher maintenant", "update.checking": "Recherche…", "update.up_to_date": "Vous avez la dernière version.", - "update.safety_hint": "Les mises à jour proviennent uniquement des versions GitHub de fmx et ne sont installées que si leur signature numérique correspond à la clé intégrée à fmx.", - "update.available_title": "fmx {version} est disponible", + "update.safety_hint": "Les mises à jour proviennent uniquement des versions GitHub de FMX et ne sont installées que si leur signature numérique correspond à la clé intégrée à FMX.", + "update.available_title": "FMX {version} est disponible", "update.current_version": "Vous avez la version {current}", "update.install": "Mettre à jour", "update.whats_new": "Nouveautés", "update.skip": "Ignorer cette version", - "update.downloading": "Téléchargement de fmx {version}…", - "update.restart": "fmx {version} est installé. Redémarrez pour l’utiliser.", + "update.downloading": "Téléchargement de FMX {version}…", + "update.restart": "FMX {version} est installé. Redémarrez pour l’utiliser.", "update.restart_now": "Redémarrer", - "update.finish_in_installer": "Terminez l’installation de fmx {version} dans la fenêtre qui s’est ouverte, puis redémarrez fmx.", - "update.installer_running": "Le programme d’installation de fmx {version} est en cours.", + "update.finish_in_installer": "Terminez l’installation de FMX {version} dans la fenêtre qui s’est ouverte, puis redémarrez FMX.", + "update.installer_running": "Le programme d’installation de FMX {version} est en cours.", "update.failed_title": "La mise à jour a échoué", "update.try_again": "Réessayer", - "update.unsupported": "Aucune mise à jour de fmx prête pour ce système. Téléchargez-la depuis la page des versions.", + "update.unsupported": "Aucune mise à jour de FMX prête pour ce système. Téléchargez-la depuis la page des versions.", "update.network": "Impossible de joindre GitHub : {error}", "update.bad_release": "La version sur GitHub est incomplète ou non signée ; elle n’a pas été utilisée.", - "update.bad_signature": "La signature du téléchargement ne correspond pas à la clé de fmx. Il a été supprimé et rien n’a été installé.", + "update.bad_signature": "La signature du téléchargement ne correspond pas à la clé de FMX. Il a été supprimé et rien n’a été installé.", "update.too_large": "Le téléchargement était plus volumineux que prévu et a été supprimé.", "update.not_installed": "La mise à jour n’a pas été installée. Réessayez et saisissez votre mot de passe lorsqu’il est demandé.", "update.available_hint": "Une mise à jour vous attend dans Paramètres → Mises à jour.", @@ -505,7 +505,7 @@ "about.report": "Signaler un problème", "about.releases": "Toutes les versions", "about.license_title": "Licence", - "about.license": "fmx est libre et open source, sous licence MIT ou Apache 2.0, au choix.", + "about.license": "FMX est libre et open source, sous licence MIT ou Apache 2.0, au choix.", "about.third_party": "Logiciels tiers", "about.third_party_hint": "Inclut ffmpeg et yt-dlp, chacun sous sa propre licence.", "download.container_mp4": "MP4", @@ -557,12 +557,12 @@ "settings.sound_victory": "Victoire", "settings.sound_custom": "Fichier personnalisé…", "settings.debug_logging": "Journal de débogage", - "settings.debug_hint": "Enregistre tout ce que fait fmx dans un fichier journal. Activez-le en cas de problème, puis envoyez les fichiers du dossier des journaux avec votre signalement.", + "settings.debug_hint": "Enregistre tout ce que fait FMX dans un fichier journal. Activez-le en cas de problème, puis envoyez les fichiers du dossier des journaux avec votre signalement.", "settings.debug_short": "Garde un journal détaillé pour signaler un problème.", "settings.open_logs": "Ouvrir le dossier des journaux", - "crash.last_time": "fmx s'est fermé de façon inattendue la dernière fois. Un rapport a été enregistré dans le dossier des journaux (Paramètres → Général).", - "shell.menu": "Convertir avec fmx", - "shell.open": "Ouvrir dans fmx", + "crash.last_time": "FMX s'est fermé de façon inattendue la dernière fois. Un rapport a été enregistré dans le dossier des journaux (Paramètres → Général).", + "shell.menu": "Convertir avec FMX", + "shell.open": "Ouvrir dans FMX", "shell.to": "En {format}", "shell.images": "Images", "settings.shell_label": "Menu contextuel", @@ -619,7 +619,6 @@ "image_preset.saved": "Préréglage {format} enregistré", "image_preset.removed": "Préréglage {format} supprimé", "settings.install_program": "Installation / téléchargement", - "settings.install_hint": "Installez les programmes facultatifs avec les liens ci-dessous. Ajoutez leurs outils en ligne de commande au PATH, puis relancez la détection. Vous pouvez aussi placer les exécutables dans tools/bin à côté de fmx.", "welcome.title": "Bienvenue dans FMX", "welcome.progress": "Étape {step} sur 4", "welcome.choose_title": "Choisissez une tâche", diff --git a/locales/he.json b/locales/he.json index eb5b522..0800281 100644 --- a/locales/he.json +++ b/locales/he.json @@ -15,7 +15,7 @@ "window.minimize": "מזעור", "window.maximize": "הגדלה", "window.restore": "שחזור", - "app.name": "fmx", + "app.name": "FMX", "language.name": "עברית", "category.video": "וידאו", "category.audio": "שמע", @@ -214,13 +214,13 @@ "mix.top_bottom": "למעלה ולמטה", "mix.pip": "תמונה בתוך תמונה", "filter.supported": "קבצים נתמכים", - "filter.task_list": "רשימת משימות של fmx", + "filter.task_list": "רשימת משימות של FMX", "hint.download_rights": "יש להוריד רק תוכן שמותר לך לשמור.", "hint.dvd_title": "0 בוחר את הכותר הראשי אוטומטית.", "hint.edit_applies": "העריכות האלה חלות רק על הקבצים שנוספו בקבוצה הזו.", "hint.mix_order": "הקובץ הראשון הוא הסרטון הראשי.", "info.title": "פרטי מדיה - {name}", - "input.capture": "ההקלטה נמשכת עד שלוחצים על \"עצירה\" בתור.", + "input.capture": "ההקלטה נמשכת עד שלוחצים על \"עצירה\". התור, עם כפתור העצירה, נפתח כשההקלטה מתחילה.", "input.url": "כתובת:", "notice.list_saved": "משימות שנשמרו: {count}", "option.audio": "שמע", @@ -279,7 +279,7 @@ "record.quality_high": "איכות גבוהה", "record.cursor": "הצגת סמן העכבר", "record.countdown": "ספירה לאחור של 3 שניות", - "record.minimize": "מזעור fmx לפני תחילת ההקלטה", + "record.minimize": "מזעור FMX לפני תחילת ההקלטה", "record.format_mkv_hint": "אפשר לנגן את הקובץ גם אם ההקלטה הופסקה באופן לא צפוי.", "record.format_mov_hint": "לאפליקציות של Apple כמו QuickTime,‏ iMovie ו-Final Cut.", "record.format_webm_hint": "פורמט פתוח לרשת; צורך יותר מעבד בזמן ההקלטה.", @@ -292,7 +292,7 @@ "shot.area_pick": "בחירת אזור בזמן הצילום", "shot.delay": "השהיה", "shot.seconds_suffix": " שנ׳", - "shot.minimize": "מזעור fmx כדי שלא יופיע בתמונה", + "shot.minimize": "מזעור FMX כדי שלא יופיע בתמונה", "record.choose_screen": "בחירת המסך לשיתוף…", "record.starting_in": "ההקלטה תתחיל בעוד {seconds}…", "record.recording": "מקליט {time} · {size}", @@ -300,14 +300,14 @@ "record.screen": "מסך", "record.no_screen": "לא נמצא מסך להקלטה.", "record.needs_gstreamer": "הקלטה ב-Wayland דורשת את GStreamer עם תוסף PipeWire ‏(gstreamer1.0-pipewire ב-Debian וב-Ubuntu, gstreamer1-plugin-pipewire ב-Fedora).", - "record.mac_permission": "בפעם הראשונה macOS מבקש לאשר את fmx בהגדרות המערכת › פרטיות ואבטחה › הקלטת מסך (ומיקרופון לשמע). יש לאשר ולהתחיל שוב.", + "record.mac_permission": "בפעם הראשונה macOS מבקש לאשר את FMX בהגדרות המערכת › פרטיות ואבטחה › הקלטת מסך (ומיקרופון לשמע). יש לאשר ולהתחיל שוב.", "record.loopback_windows": "כדי להקליט את שמע המחשב, יש להפעיל את Stereo Mix בלוח הבקרה של הצליל (לשונית הקלטה) או להתקין כבל שמע וירטואלי.", "record.loopback_mac": "כדי להקליט את שמע המחשב, יש להתקין התקן שמע וירטואלי (loopback) כמו BlackHole.", "error.screen_share": "המערכת לא שיתפה את המסך. {error}", "error.tool_failed": "{program} נכשל (קוד יציאה {code}): {log}", "error.missing_program": "{program} אינו מותקן. יש להתקין אותו ואז ללחוץ על \"סריקה מחדש\" בהגדרות.", "error.bad_url": "יש להזין כתובת אינטרנט שמתחילה ב-http://‎ או https://‎.", - "error.bad_list": "הקובץ הזה אינו רשימת משימות של fmx.", + "error.bad_list": "הקובץ הזה אינו רשימת משימות של FMX.", "error.list_too_big": "קובץ רשימת המשימות גדול מדי.", "error.no_output": "התוכנה הסתיימה בלי ליצור קובץ.", "error.no_tracks": "לא נמצאו רצועות שמע בתקליטור.", @@ -388,8 +388,8 @@ "option.subtitle_file": "קובץ כתוביות", "option.hw_decode_on": "פענוח במעבד הגרפי כשאפשר", "settings.notify": "הודעה כשהתור מסתיים", - "settings.after_done": "ואז", - "settings.after_done_hint": "הבחירה נשמרת עד לסגירת fmx; ברירת המחדל היא „לא לעשות כלום”.", + "settings.after_done": "כשהתור מסתיים", + "settings.after_done_hint": "חוזר ל„לא לעשות כלום” בפעם הבאה ש־FMX נפתחת.", "settings.name_tag": "תוספת לשם הקובץ", "grid.results": "תוצאות חיפוש", "grid.search": "חיפוש כלים…", @@ -462,12 +462,12 @@ "hint.back_to": "חזרה אל {category}", "settings.parallel_hint": "כמה משימות רצות בו־זמנית.", "settings.name_tag_hint": "נוסף לשמות קובצי הפלט, לדוגמה video_converted.mp4", - "settings.programs_hint": "תוכנות אופציונליות שמאפשרות להשתמש בכלים נוספים. לאחר ההתקנה יש ללחוץ על \"סריקה מחדש\".", + "settings.programs_hint": "תוכנות אופציונליות שמאפשרות להשתמש בכלים נוספים. התקינו תוכנה, ודאו שכלי שורת הפקודה שלה נמצא ב־PATH (או מקמו אותו בתיקיית tools/bin לצד FMX), ואז לחצו על \"סריקה מחדש\".", "settings.program_found": "מותקן", "settings.program_missing": "לא מותקן", "settings.ffmpeg_found": "מוכן", - "settings.ytdlp_hint": "yt-dlp מגיע עם fmx ומתעדכן בכל גרסה של fmx.", - "error.download_failed": "ההורדה נכשלה. ייתכן שהאתר השתנה; גרסה חדשה של fmx בדרך כלל פותרת זאת.", + "settings.ytdlp_hint": "yt-dlp מגיע עם FMX ומתעדכן בכל גרסה של FMX.", + "error.download_failed": "ההורדה נכשלה. ייתכן שהאתר השתנה; גרסה חדשה של FMX בדרך כלל פותרת זאת.", "action.paste": "הדבקה", "hint.paste_url": "מדביקים את הכתובת שהועתקה (גם Ctrl+V עובד).", "update.version_label": "גרסה", @@ -475,23 +475,23 @@ "update.check_now": "בדיקה עכשיו", "update.checking": "בודק…", "update.up_to_date": "יש לך את הגרסה העדכנית.", - "update.safety_hint": "עדכונים מגיעים רק מדף הגרסאות של fmx ב-GitHub, ומותקנים רק אם החתימה הדיגיטלית שלהם תואמת למפתח שמובנה ב-fmx.", - "update.available_title": "גרסת fmx {version} זמינה", + "update.safety_hint": "עדכונים מגיעים רק מדף הגרסאות של FMX ב-GitHub, ומותקנים רק אם החתימה הדיגיטלית שלהם תואמת למפתח שמובנה ב-FMX.", + "update.available_title": "גרסת FMX {version} זמינה", "update.current_version": "הגרסה שלך: {current}", "update.install": "עדכון עכשיו", "update.whats_new": "מה חדש", "update.skip": "דילוג על הגרסה הזו", - "update.downloading": "מוריד את fmx {version}…", - "update.restart": "fmx {version} הותקנה. יש להפעיל מחדש כדי להשתמש בה.", + "update.downloading": "מוריד את FMX {version}…", + "update.restart": "FMX {version} הותקנה. יש להפעיל מחדש כדי להשתמש בה.", "update.restart_now": "הפעלה מחדש עכשיו", - "update.finish_in_installer": "יש לסיים את התקנת fmx {version} בחלון שנפתח, ואז להפעיל מחדש את fmx.", - "update.installer_running": "תוכנית ההתקנה של fmx {version} פועלת.", + "update.finish_in_installer": "יש לסיים את התקנת FMX {version} בחלון שנפתח, ואז להפעיל מחדש את FMX.", + "update.installer_running": "תוכנית ההתקנה של FMX {version} פועלת.", "update.failed_title": "העדכון נכשל", "update.try_again": "ניסיון חוזר", - "update.unsupported": "אין עדכון מוכן של fmx למערכת הזו. אפשר להוריד אותו מדף הגרסאות.", + "update.unsupported": "אין עדכון מוכן של FMX למערכת הזו. אפשר להוריד אותו מדף הגרסאות.", "update.network": "לא ניתן להתחבר ל-GitHub: {error}", "update.bad_release": "הגרסה ב-GitHub חלקית או לא חתומה, ולכן לא נעשה בה שימוש.", - "update.bad_signature": "החתימה של ההורדה לא תאמה למפתח הגרסאות של fmx. הקובץ נמחק ושום דבר לא הותקן.", + "update.bad_signature": "החתימה של ההורדה לא תאמה למפתח הגרסאות של FMX. הקובץ נמחק ושום דבר לא הותקן.", "update.too_large": "ההורדה הייתה גדולה מהצפוי ונמחקה.", "update.not_installed": "העדכון לא הותקן. יש לנסות שוב ולהזין את הסיסמה כשתתבקש.", "update.available_hint": "עדכון ממתין בהגדרות → עדכונים.", @@ -505,7 +505,7 @@ "about.report": "דיווח על תקלה", "about.releases": "כל הגרסאות", "about.license_title": "רישיון", - "about.license": "fmx היא תוכנה חופשית ובקוד פתוח, הזמינה ברישיון MIT או Apache 2.0 לבחירתכם.", + "about.license": "FMX היא תוכנה חופשית ובקוד פתוח, הזמינה ברישיון MIT או Apache 2.0 לבחירתכם.", "about.third_party": "תוכנות צד שלישי", "about.third_party_hint": "כולל את ffmpeg ואת yt-dlp, כל אחת ברישיון משלה.", "download.container_mp4": "MP4", @@ -557,12 +557,12 @@ "settings.sound_victory": "ניצחון", "settings.sound_custom": "קובץ מותאם אישית…", "settings.debug_logging": "יומן אבחון מפורט", - "settings.debug_hint": "שומר ביומן את הפעולות של fmx. אם מתרחשת תקלה, הפעילו אפשרות זו ושלחו את הקבצים מתיקיית היומנים יחד עם הדיווח.", + "settings.debug_hint": "שומר ביומן את הפעולות של FMX. אם מתרחשת תקלה, הפעילו אפשרות זו ושלחו את הקבצים מתיקיית היומנים יחד עם הדיווח.", "settings.debug_short": "שמירת מידע מפורט לצורך אבחון תקלות.", "settings.open_logs": "פתיחת תיקיית היומנים", - "crash.last_time": "fmx נסגר באופן לא צפוי בפעם הקודמת. דוח נשמר בתיקיית היומנים (הגדרות → כללי).", - "shell.menu": "המרה עם fmx", - "shell.open": "פתיחה ב-fmx", + "crash.last_time": "FMX נסגר באופן לא צפוי בפעם הקודמת. דוח נשמר בתיקיית היומנים (הגדרות → כללי).", + "shell.menu": "המרה עם FMX", + "shell.open": "פתיחה ב-FMX", "shell.to": "ל-{format}", "shell.images": "תמונות", "settings.shell_label": "תפריט לחיצה ימנית", @@ -619,7 +619,6 @@ "image_preset.saved": "ההגדרה ל־{format} נשמרה", "image_preset.removed": "ההגדרה ל־{format} הוסרה", "settings.install_program": "התקנה / הורדה", - "settings.install_hint": "התקינו תוכנות נוספות באמצעות הקישורים למטה. הוסיפו את כלי שורת הפקודה שלהן ל־PATH ולחצו על סריקה מחדש. ניתן גם למקם קובצי הפעלה בתיקיית tools/bin לצד fmx.", "welcome.title": "ברוכים הבאים ל־FMX", "welcome.progress": "שלב {step} מתוך 4", "welcome.choose_title": "בוחרים מה לעשות", diff --git a/locales/ru.json b/locales/ru.json index 6792668..9db24d6 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -16,7 +16,7 @@ "window.maximize": "Развернуть", "window.restore": "Восстановить", "language.name": "Русский", - "app.name": "fmx", + "app.name": "FMX", "category.video": "Видео", "category.audio": "Аудио", "category.image": "Изображения", @@ -214,13 +214,13 @@ "mix.top_bottom": "Друг над другом", "mix.pip": "Картинка в картинке", "filter.supported": "Поддерживаемые файлы", - "filter.task_list": "Список заданий fmx", + "filter.task_list": "Список заданий FMX", "hint.download_rights": "Скачивайте только материалы, которые имеете право сохранять.", "hint.dvd_title": "0 - выбрать основной раздел автоматически.", "hint.edit_applies": "Эти изменения применяются только к файлам, добавленным в этой группе.", "hint.mix_order": "Первый файл - основное видео.", "info.title": "Сведения о файле - {name}", - "input.capture": "Запись идёт, пока вы не нажмёте «Остановить» в очереди.", + "input.capture": "Запись идёт, пока вы не нажмёте «Остановить». Очередь с этой кнопкой откроется, когда начнётся запись.", "input.url": "Адрес:", "notice.list_saved": "Сохранено заданий: {count}", "option.audio": "Звук", @@ -279,7 +279,7 @@ "record.quality_high": "Высокое качество", "record.cursor": "Показывать указатель мыши", "record.countdown": "Обратный отсчёт 3 секунды перед записью", - "record.minimize": "Свернуть fmx за 3 секунды до записи", + "record.minimize": "Свернуть FMX за 3 секунды до записи", "record.format_mkv_hint": "Файл можно воспроизвести, даже если запись прервётся.", "record.format_mov_hint": "Для приложений Apple: QuickTime, iMovie и Final Cut.", "record.format_webm_hint": "Открытый веб-формат; при записи сильнее нагружает процессор.", @@ -292,7 +292,7 @@ "shot.area_pick": "Выбрать область при создании снимка", "shot.delay": "Задержка", "shot.seconds_suffix": " с", - "shot.minimize": "Свернуть fmx, чтобы окно не попало на снимок", + "shot.minimize": "Свернуть FMX, чтобы окно не попало на снимок", "record.choose_screen": "Выбрать экран или окно…", "record.starting_in": "Начало через {seconds}…", "record.recording": "Запись {time} · {size}", @@ -300,14 +300,14 @@ "record.screen": "Экран", "record.no_screen": "Не найден экран для записи.", "record.needs_gstreamer": "Для записи в Wayland нужен GStreamer с модулем PipeWire (gstreamer1.0-pipewire в Debian и Ubuntu, gstreamer1-plugin-pipewire в Fedora).", - "record.mac_permission": "При первом запуске разрешите fmx запись экрана в macOS: «Системные настройки» › «Конфиденциальность и безопасность» › «Запись экрана», а для звука - «Микрофон». Затем начните запись снова.", + "record.mac_permission": "При первом запуске разрешите FMX запись экрана в macOS: «Системные настройки» › «Конфиденциальность и безопасность» › «Запись экрана», а для звука - «Микрофон». Затем начните запись снова.", "record.loopback_windows": "Для записи звука компьютера включите «Стерео микшер» на вкладке «Запись» в панели управления звуком или установите виртуальный аудиокабель.", "record.loopback_mac": "Для записи звука компьютера установите драйвер захвата звука, например BlackHole.", "error.screen_share": "Система не предоставила доступ к экрану. {error}", "error.tool_failed": "Ошибка {program} (код {code}): {log}", "error.missing_program": "Программа {program} не установлена. Установите её и нажмите «Проверить снова» в настройках.", "error.bad_url": "Введите веб-адрес, начинающийся с http:// или https://.", - "error.bad_list": "Этот файл не является списком заданий fmx.", + "error.bad_list": "Этот файл не является списком заданий FMX.", "error.list_too_big": "Файл списка заданий слишком большой.", "error.no_output": "Программа завершилась, не создав файл.", "error.no_tracks": "На диске не найдены аудиодорожки.", @@ -388,8 +388,8 @@ "option.subtitle_file": "Файл субтитров", "option.hw_decode_on": "По возможности декодировать на видеокарте", "settings.notify": "Уведомлять о завершении очереди", - "settings.after_done": "Затем", - "settings.after_done_hint": "До закрытия fmx. При запуске выбрано «Ничего не делать».", + "settings.after_done": "Когда очередь завершится", + "settings.after_done_hint": "При следующем запуске FMX снова будет выбрано «Ничего не делать».", "settings.name_tag": "Метка в имени файла", "grid.results": "Результаты поиска", "grid.search": "Поиск инструментов…", @@ -462,12 +462,12 @@ "hint.back_to": "Назад: {category}", "settings.parallel_hint": "Сколько заданий выполнять одновременно.", "settings.name_tag_hint": "Добавляется к именам готовых файлов, например video_converted.mp4", - "settings.programs_hint": "Дополнительные программы, открывающие доступ к другим инструментам. Установите их и нажмите «Проверить снова».", + "settings.programs_hint": "Дополнительные программы, открывающие доступ к другим инструментам. Установите программу, убедитесь, что её инструмент командной строки есть в PATH (или поместите его в папку tools/bin рядом с FMX), и нажмите «Проверить снова».", "settings.program_found": "Установлено", "settings.program_missing": "Не установлено", "settings.ffmpeg_found": "Готово", - "settings.ytdlp_hint": "yt-dlp входит в состав fmx и обновляется с каждой его версией.", - "error.download_failed": "Не удалось скачать файл. Возможно, сайт изменился; обычно это исправляется в новой версии fmx.", + "settings.ytdlp_hint": "yt-dlp входит в состав FMX и обновляется с каждой его версией.", + "error.download_failed": "Не удалось скачать файл. Возможно, сайт изменился; обычно это исправляется в новой версии FMX.", "action.paste": "Вставить", "hint.paste_url": "Вставить скопированный адрес (также работает Ctrl+V).", "update.version_label": "Версия", @@ -475,23 +475,23 @@ "update.check_now": "Проверить сейчас", "update.checking": "Проверка…", "update.up_to_date": "У вас последняя версия.", - "update.safety_hint": "Обновления загружаются только из выпусков fmx на GitHub и устанавливаются, только если их цифровая подпись соответствует встроенному в fmx ключу.", - "update.available_title": "Доступна fmx {version}", + "update.safety_hint": "Обновления загружаются только из выпусков FMX на GitHub и устанавливаются, только если их цифровая подпись соответствует встроенному в FMX ключу.", + "update.available_title": "Доступна FMX {version}", "update.current_version": "У вас версия {current}", "update.install": "Обновить сейчас", "update.whats_new": "Что нового", "update.skip": "Пропустить эту версию", - "update.downloading": "Загрузка fmx {version}…", - "update.restart": "fmx {version} установлена. Перезапустите программу, чтобы начать работу.", + "update.downloading": "Загрузка FMX {version}…", + "update.restart": "FMX {version} установлена. Перезапустите программу, чтобы начать работу.", "update.restart_now": "Перезапустить сейчас", - "update.finish_in_installer": "Завершите установку fmx {version} в открывшемся окне, затем перезапустите fmx.", - "update.installer_running": "Установщик fmx {version} запущен.", + "update.finish_in_installer": "Завершите установку FMX {version} в открывшемся окне, затем перезапустите FMX.", + "update.installer_running": "Установщик FMX {version} запущен.", "update.failed_title": "Не удалось обновить", "update.try_again": "Повторить", - "update.unsupported": "Для этой системы нет готового обновления fmx. Скачайте его со страницы выпусков.", + "update.unsupported": "Для этой системы нет готового обновления FMX. Скачайте его со страницы выпусков.", "update.network": "Не удалось связаться с GitHub: {error}", "update.bad_release": "Выпуск на GitHub неполный или не подписан, поэтому он не использован.", - "update.bad_signature": "Подпись загруженного файла не соответствует ключу выпусков fmx. Файл удалён, ничего не установлено.", + "update.bad_signature": "Подпись загруженного файла не соответствует ключу выпусков FMX. Файл удалён, ничего не установлено.", "update.too_large": "Размер загруженного файла превысил ожидаемый; файл удалён.", "update.not_installed": "Обновление не установлено. Повторите попытку и введите пароль, когда появится запрос.", "update.available_hint": "Доступно обновление: Настройки → Обновления.", @@ -505,7 +505,7 @@ "about.report": "Сообщить о проблеме", "about.releases": "Все версии", "about.license_title": "Лицензия", - "about.license": "fmx - бесплатная программа с открытым исходным кодом под лицензией MIT или Apache 2.0, на ваш выбор.", + "about.license": "FMX - бесплатная программа с открытым исходным кодом под лицензией MIT или Apache 2.0, на ваш выбор.", "about.third_party": "Сторонние компоненты", "about.third_party_hint": "Включает ffmpeg и yt-dlp, каждый под собственной лицензией.", "download.container_mp4": "MP4", @@ -557,12 +557,12 @@ "settings.sound_victory": "Победа", "settings.sound_custom": "Свой файл…", "settings.debug_logging": "Отладочный журнал", - "settings.debug_hint": "Записывает все действия fmx в журнал. Включите при возникновении проблемы, затем приложите файлы из папки журналов к сообщению об ошибке.", + "settings.debug_hint": "Записывает все действия FMX в журнал. Включите при возникновении проблемы, затем приложите файлы из папки журналов к сообщению об ошибке.", "settings.debug_short": "Ведёт подробный журнал для сообщений об ошибках.", "settings.open_logs": "Открыть папку журналов", - "crash.last_time": "В прошлый раз fmx завершилась неожиданно. Отчёт сохранён в папке журналов (Настройки → Общие).", - "shell.menu": "Преобразовать с помощью fmx", - "shell.open": "Открыть в fmx", + "crash.last_time": "В прошлый раз FMX завершилась неожиданно. Отчёт сохранён в папке журналов (Настройки → Общие).", + "shell.menu": "Преобразовать с помощью FMX", + "shell.open": "Открыть в FMX", "shell.to": "В {format}", "shell.images": "Изображения", "settings.shell_label": "Контекстное меню", @@ -619,7 +619,6 @@ "image_preset.saved": "Пресет {format} сохранён", "image_preset.removed": "Пресет {format} удалён", "settings.install_program": "Установка / скачивание", - "settings.install_hint": "Установите дополнительные программы по ссылкам ниже. Добавьте их инструменты командной строки в PATH, затем нажмите «Проверить снова». Исполняемые файлы также можно поместить в папку tools/bin рядом с fmx.", "download.only_subtitles": "Только субтитры", "download.only_thumbnail": "Только миниатюра", "download.only_metadata": "Метаданные и описание", diff --git a/plan.md b/plan.md new file mode 100644 index 0000000..8d99452 --- /dev/null +++ b/plan.md @@ -0,0 +1,187 @@ +# FMX UI improvement plan + +A plan to make FMX feel clean, calm and fast. It is based on building the +debug app (v0.5.1, branch `fix/office-reader-text`) and capturing 27 +screens with `FMX_SCREENSHOT` (Light, Dark, Hebrew/RTL, German, small window, +first run, Settings, editor, queue, dialogs). The source and +`packaging/audit-ui.py` were also checked. + +The current app is a solid base. It uses an Adwaita-like palette, has good +contrast tests, correct RTL mirroring, sensible step cards and a quiet +Settings dialog. Most problems are about **density, consistency and +hierarchy**, not broken features. The aim is fewer things on screen, one +visual language, and the main action always in view. + +--- + +## 1. Bugs found (fix first) + +> **Status:** Phase 0 is done on branch `fix/ui-bug-sweep`. B1–B3 and B5–B14 are +> fixed. B4 was a false positive. B1's real cause was different from the guess +> in the table (see the note below it). Still open: German mixes informal "du" +> (about 9 strings) with formal "Sie" (about 34). That needs a German copy pass. + +| # | Where | What happens | Likely fix | +|---|---|---|---| +| B1 | Main window, **light theme** | The sidebar/content and content/queue separators render almost black (`#2C2C2F`, the *text* color), not the border color (`#DEDEE0`). Dark theme is correct (`#444448`). This makes a harsh frame around the content. | The panel separator is painted with `widgets.hovered.fg_stroke` (egui `panel.rs:930`). Draw the separator yourself with `p.border`, or set panels to `show_separator_line(false)` and use the frame stroke. Check it with a real mouse too. | +| B2 | Screen recorder / Screenshot, action bar | Says *"1 job will be added to the queue and saved **next to the original files**"*. A recorder has no original files. | Use a capture-specific `ready_summary()` text: "Saves to ~/Videos" (show the real folder). | +| B3 | Screen recorder, step 1 | Step 1 "What gets recorded" shows a green ✓ (done) before the user did anything, and says "press Stop **in the queue**". The queue is hidden while the editor is open. | Make it an info card (no number or check). Show the Stop control in the action bar or a floating "Recording…" pill while recording. | +| B4 | Screen recorder, "Output format" row | ~~The subtitle "Stays playable even if recording stops unexpectedly" is clipped by the row below.~~ **False positive:** the row was at the edge of the scroll area. | `pref_row` must grow to fit the subtitle when it sits beside a segmented control. Add a layout test like `editor_panels_stay_within_available_space`. | +| B5 | Empty queue bar at narrow widths and in German | "More" wraps to a second line (900 px). In German the whole message wraps into a two-line paragraph. A 1-line bar becomes 3 lines. | Truncate the hint with an ellipsis, or hide it below about 900 px. Keep "More" on the trailing edge. | +| B6 | Sidebar search | The clear "×" is always visible, even when the field is empty, and it sits outside the field. In German the placeholder is cut off ("Werkzeuge such…"). | Put the clear button inside the field, shown only when there is text. Let the field use the full sidebar width. | +| B7 | Queue, waiting jobs | **Stop all** is enabled and red when nothing is running (only waiting jobs). | Disable it, or turn it into "Clear queue" when nothing is running. | +| B8 | Queue rows | **Cancel** (running job) and **Remove** (finished job) both use the same `X` icon. One is destructive and one is not. | Use `STOP`/`X_CIRCLE` for cancel and `X` or `TRASH` for remove. Add tooltips. | +| B9 | Branding | The window title, sidebar title and About page say "fmx". The welcome screen, Settings help and README say "FMX". There are 23 lowercase "fmx" strings in `locales/en.json`. | Choose **FMX** everywhere visible (`app.name`, window title, About page, strings). Keep `fmx` only for file and command names. | +| B10 | Copy casing | "When Finished" and "Core Programs" use Title Case. Every other heading is sentence case. | Change them to "When finished" and "Core programs" (all 6 locales). | +| B11 | Programs page | Two explanations say the same thing with different verbs: "click **Rescan**" and "press **Scan again**". The refresh button has no label. | Use one sentence and one verb that match the button's tooltip. | +| B12 | "When finished → Then" row | The label "Then" and the hint "Until fmx is closed; it starts as Do nothing." are hard to understand. | Use the label "After the queue finishes" and the hint "Resets to Do nothing next time FMX starts." | +| B13 | First run (debug build) | The right-click menu is installed for Nautilus, Nemo and KDE without asking. | Ask on the welcome screen's last step ("Add FMX to your file manager's right-click menu?") or make it opt-in in Settings. | +| B14 | Image preset dialog | "Max width" uses a grey checkbox labelled "Original". An unchecked box called "Original" is confusing. | Use a switch "Limit width" with a number field that appears when it is on, or a dropdown: *Original / 3840 / 1920 / 1280 / Custom*. | + +> **B1 note:** the separators were fine. There is a 1 px seam between panels +> that showed eframe's default near-black `clear_color`. `FmxApp::clear_color` +> now returns the panel fill. + +--- + +## 2. Experience problems (design debt) + +### 2.1 Home and tool grid +- **Cards are big and nearly empty.** Each card is about 265×120 px and shows only a name such as "MP4". Only 6 tools fit above the fold. The next group ("Edit and combine") falls below the fold, so users don't see what else exists. +- **A "⋮" on every card** adds visual noise (18 dots on one page) for actions that few people use (favorite, preset). +- **Icon colors carry no meaning.** MP4 is blue, MKV purple, WebM green, AVI orange, but they all use the same file glyph. Glyphs also vary within a category without a rule: MP3 uses a ♪ note, M4A/AAC/OGG a file glyph, FLAC/WAV a waveform. Screen recorder and Sound recorder share the same red ● icon. +- **The page header repeats the sidebar.** A 40 px colored tile plus a heading plus a description show the same category that is already highlighted on the left. + +### 2.2 Task editor +- **The main settings are below the fold.** At the default window size, step 2 "Choose your settings" is hidden for *every* tool (MP4, JPG, Edit tags, Trim). The user sees the file list and a big button but not what they are about to do. +- **Tool descriptions are long and refer to other parts of the UI.** MP4: *"Open 'Output settings' for codec, hardware encoding… and 'Edit' to clip, crop…"* That is 2–3 lines of hard-to-read centered text. +- **Duplicate add controls.** The "Add files…" button and the clickable drop zone do the same thing. The empty drop zone takes about 210 px. +- **File rows are inconsistent.** Video rows show 👁 preview, ⓘ info and ✕ remove. Image rows show only ✕, and there is no thumbnail even for a JPG. Audio rows show ⓘ and ✕. "Files selected: 1" compares with "Files selected: 2 · 0:07 in total". +- **The action bar is crowded.** A two-line status ("Ready: 2 jobs will be added to the queue and saved next to the original files.") competes with "📁 Change…" (change *what*?) and the primary button. +- **The disabled primary button is unreadable.** White text on pale blue (around 1.5:1 contrast). It looks broken rather than disabled. +- **The header actions are mysterious.** A bare ⚡ (presets) and ⋮ (a menu with one item, "Save as preset…") sit side by side. +- **The queue disappears in the editor.** You cannot see your running jobs while you set up the next one. + +### 2.3 Small windows +- The sidebar stays 230 px wide at any width. At 800×560 the editor shows **one file row** between the header and the action bar. +- There is no compact mode, and the sidebar doesn't collapse. + +### 2.4 Dialogs and modals +- Three dialog styles: Settings (centered title, close ✕), Image preset (left title, Cancel/Save), and Welcome (small left label "Welcome to FMX" and a plain-text "Skip guide"). +- Two segmented-control styles: Settings → Appearance (white pill on grey) and Collage tabs (blue-tinted pill). +- The welcome guide is 4 text-heavy steps with thin outline icons and "Step 1 of 4" text. The default focus ring on "Next" shows a double outline. + +### 2.5 Queue +- Rows show no output name or location, and no thumbnail. +- There is no overall progress (for example, "2 of 5 · about 1 min left") in the header or in the window title or taskbar. +- "⋮ More" is an icon plus a label, a pattern used nowhere else. + +### 2.6 Window chrome +- The client-side title bar says "fmx" right above a sidebar header that also says "fmx". That uses 55 px of vertical space for a duplicated label. + +--- + +## 3. Design direction: "calm, compact, confident" + +1. **One accent, used rarely.** Blue only for the primary action, selection and focus. Category color shows *only* in the category's icon tile, not on every format card. +2. **Content first.** What the user is about to do (files + key settings + Go) fits in one screen at 1280×720 without scrolling. +3. **Progressive disclosure.** Basics are visible. Advanced options go in collapsibles, and rare actions go in menus or right-click. +4. **One component per job.** One dialog template, one segmented control, one row type, one icon size scale. +5. **Tokens, not literals.** There are 140+ literal `add_space`/size values today. Move them into named spacing and type tokens in `theme.rs`. + +### Proposed tokens (`src/theme.rs`) +```rust +pub mod space { pub const XS: f32 = 4.0; pub const S: f32 = 8.0; pub const M: f32 = 12.0; + pub const L: f32 = 16.0; pub const XL: f32 = 24.0; pub const XXL: f32 = 32.0; } +pub mod text { pub const CAPTION: f32 = 12.0; pub const BODY: f32 = 14.0; pub const LABEL: f32 = 14.0; + pub const TITLE: f32 = 17.0; pub const HEADING: f32 = 22.0; } +pub mod icon { pub const S: f32 = 16.0; pub const M: f32 = 20.0; pub const TILE_S: f32 = 32.0; pub const TILE_L: f32 = 48.0; } +``` +Add a `p.accent_disabled` color and a `p.on_accent_disabled` color that pass 3:1 contrast, and extend `text_meets_contrast_guidelines` to check them. + +--- + +## 4. Roadmap + +Each phase can ship on its own. Within a phase, items are listed in order. + +### Phase 0: Bug sweep (about 1–2 days, low risk) +B1–B14 above. Add a test for each layout bug (B4, B5, B6) next to the existing +`*_stay_within_*` tests in `app.rs`. + +### Phase 1: Foundations (about 2–3 days) +- [ ] Add the `space`/`text`/`icon` tokens. Replace literals in `app.rs`, `widgets.rs` and `tag_editor.rs` (mechanical). +- [ ] Add disabled-primary colors (fixes the unreadable "Add to queue"). +- [ ] Make one dialog helper, `widgets::dialog(title, body, actions)`: centered title, close ✕, footer actions on the trailing side. Port Settings, Image preset, Save preset, Media info and Welcome to it. +- [ ] Use one `segmented()` style everywhere. Port the collage tabs to it. +- [ ] Use one row primitive for file rows, queue rows and pref rows (leading tile, title and subtitle, trailing actions), with consistent hover-reveal actions. +- [ ] Extend `audit-ui.py` to flag new `add_space()`, `Color32::from_rgb` outside `theme.rs`/`art.rs`, and Title Case headings in `en.json`. + +### Phase 2: Home and tool grid (about 3 days) +- [ ] **Compact format cards:** about 160×88 px with a 32 px tile, the name, and a one-line weak subtitle ("Most compatible", "Smaller files", "Lossless"). This fits about 12–15 tools above the fold. +- [ ] Remove the per-card ⋮. Show a ☆ favorite toggle on hover or focus, and put the other actions in the right-click menu. +- [ ] **Icon system:** each category has one hue (Video blue, Audio pink, Image green, Docs orange…). Glyphs say *what kind of thing* it is (container/codec/lossless/edit/capture) and follow one rule. Give Screen recorder and Sound recorder different glyphs (monitor vs. microphone). +- [ ] **Slimmer header:** category name plus description on one line, without the 40 px tile because the sidebar already shows it. Show the section heading counts ("Convert video · 6"). +- [ ] Add a **"Recent"** row at the top of each category (the last 3 tools used). Most people repeat the same conversion. +- [ ] Put the search clear button inside the field (B6). Search keeps its `Ctrl+F` hint as a visible placeholder suffix. + +### Phase 3: Task editor (about 4–5 days, the biggest win) +- [ ] **Two-pane layout at ≥ 1100 px:** files on the start side, settings on the end side, both visible at once. Below 1100 px, keep stacked steps but **collapse the file list to a summary chip** ("2 files · 0:07 ▾") once files are added, so step 2 is visible. +- [ ] **Short descriptions:** at most one line ("Plays everywhere. Good default for sharing."). Move the long text into a ⓘ tooltip on the title. +- [ ] **Empty state:** one big drop zone with the "Add files…" and "Add folder…" buttons *inside* it. Remove the duplicate button row. +- [ ] **File rows:** real thumbnails for images and video (there is already a preview pipeline in `preview.rs`), the same action set for every type, and actions shown on hover or focus. +- [ ] **Action bar:** `[ 📁 ~/Videos ▾ ] 2 files · ≈ 15 MB [ Add to queue ]`. The folder becomes a labelled path button, and the status is one short line. Give "Start now" its own split-button option. +- [ ] **Header:** replace ⚡ + ⋮ with one labelled "Presets ▾" menu button (apply / save current / manage). +- [ ] **Mini queue:** while the editor is open and jobs are running, show a slim progress pill in the action bar ("2 running · 42%"). Clicking it opens the queue. + +### Phase 4: Queue (about 2 days) +- [ ] Add an overall progress line in the header: "3 of 5 done · about 1 min left", and show the same progress in the window title and taskbar where the platform supports it. +- [ ] Rows show source → output name, a thumbnail, and on completion **Open** / **Show in folder** as visible buttons (not icon-only). +- [ ] Give finished, failed and cancelled jobs a subtle status stripe or color. Failed rows get "Show details" with the ffmpeg error text and Retry. +- [ ] Replace the "⋮ More" pattern with a plain ⋮ menu button: Save list, Load list, Clear finished. +- [ ] Fix B7/B8 here if they were not done in Phase 0. + +### Phase 5: Responsive and chrome (about 2–3 days) +- [ ] **Breakpoints:** ≥ 1100 px full sidebar. 760–1100 px, the sidebar collapses to a 64 px icon rail with tooltips. Below 760 px, the sidebar becomes an overlay that a ☰ button opens. +- [ ] Remove the duplicated title: set the window title to the current page ("Convert to MP4 — FMX"). Where the platform allows it (macOS `fullsize_content_view`, Windows), draw the sidebar header into the title bar area. +- [ ] Add tests in the style of `settings_dialog_switches_navigation_between_narrow_and_wide_windows` for each breakpoint, and add `FMX_SCREENSHOT_SIZE` presets to CI as golden images (optional). + +### Phase 6: First run and polish (about 2 days) +- [ ] **Welcome:** 3 steps, each with a filled illustration that uses the category hues, page dots instead of "Step 1 of 4", and a primary "Get started". The last step offers the right-click menu (B13) and the theme choice. +- [ ] **Empty home after the welcome:** a big drop target on the home page ("Drop any file — FMX suggests what to do"). This uses the existing `accepts()` logic to suggest matching tools. +- [ ] **Micro-interactions:** card hover lifts 1 px with a shadow, the progress bar is animated with a stripe while it is indeterminate, and a success toast has an "Open folder" action. All of them respect `reduce_motion`. +- [ ] **Keyboard:** visible focus on cards, arrow-key navigation in the grid, `Enter` opens a tool, `Ctrl+Enter` = Add to queue, `Esc` = back. Show the shortcuts in tooltips. +- [ ] **Copy pass:** every string in `en.json` is sentence case and uses "FMX", with one verb per action (Add / Remove / Clear / Rescan). Then sync the other 5 locales and run `audit-ui.py`. + +--- + +## 5. How to check each change + +```bash +cargo build +S=/tmp/fmx-shots; mkdir -p $S +# Isolated profile so real settings are untouched +export XDG_DATA_HOME=$S/data XDG_CONFIG_HOME=$S/config FMX_LANG=en +FMX_SCREENSHOT=$S/home.png FMX_SCREENSHOT_SIZE=1280x800 target/debug/fmx +FMX_SCREENSHOT=$S/editor.png FMX_SCREENSHOT_SIZE=1280x800 FMX_SCREENSHOT_TOOL=mp4 target/debug/fmx some.mp4 +FMX_SCREENSHOT=$S/small.png FMX_SCREENSHOT_SIZE=800x560 FMX_SCREENSHOT_TOOL=mp4 target/debug/fmx some.mp4 +FMX_SCREENSHOT=$S/rtl.png FMX_SCREENSHOT_SIZE=1280x800 FMX_LANG=he target/debug/fmx +FMX_SCREENSHOT=$S/queue.png FMX_SCREENSHOT_SIZE=1280x800 FMX_SCREENSHOT_TOOL=mp4 FMX_SCREENSHOT_ENQUEUE=1 FMX_SCREENSHOT_RUNNING=1 target/debug/fmx some.mp4 +cargo test && python3 packaging/audit-ui.py +``` + +**Done means:** at 1280×720 the editor shows files, key settings and the primary +action without scrolling for MP4, JPG, Trim and Edit tags. Light and dark look +the same apart from color. Hebrew mirrors correctly. German strings don't wrap +the queue bar. `audit-ui.py` reports no new literal spacing or color. + +--- + +## 6. Suggested order + +1. Phase 0 (bugs). Quick wins that are visible right away. +2. Phase 1 (tokens and components). This makes everything after it faster and consistent. +3. Phase 3 (editor). This has the largest effect on everyday use. +4. Phase 2 (grid), then Phases 4, 5 and 6. + +Update the README screenshots (`assets/screenshot*.png`) and the website hero after Phase 3. diff --git a/src/app.rs b/src/app.rs index fa29ec4..e40fe3e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -27,7 +27,7 @@ use crate::ffmpeg; use crate::i18n::{self, tr, trf}; use crate::icons; use crate::instance; -use crate::jobs::{JobSpec, OutputAllocator, Selection, plan_jobs}; +use crate::jobs::{self, JobSpec, OutputAllocator, Selection, plan_jobs}; use crate::options::{ self, Channels, Corner, DownloadKind, Edit, FrameMode, HwAccel, MixLayout, Options, Quality, Rect, Resolution, Rotation, SlideTransition, @@ -330,6 +330,9 @@ pub struct FmxApp { shell_menu: bool, /// Current page of the first-run guide; also opened from Settings. welcome_step: Option, + /// Whether the welcome guide's last page adds the right-click menu, while + /// that page still offers it (on the first start only). + welcome_shell_offer: Option, } /// How FMX was started. @@ -436,6 +439,7 @@ impl FmxApp { requests: None, shell_menu: shell::is_registered(), welcome_step: (!settings.welcome_seen && !self_test).then_some(0), + welcome_shell_offer: None, settings, }; let due = now_secs().saturating_sub(app.settings.last_update_check) @@ -453,6 +457,9 @@ impl FmxApp { } #[cfg(debug_assertions)] { + if let Ok(query) = std::env::var("FMX_SCREENSHOT_SEARCH") { + app.search = query; + } if let Ok(step) = std::env::var("FMX_SCREENSHOT_WELCOME") { app.welcome_step = Some(step.parse::().unwrap_or(0).min(3)); } @@ -648,25 +655,23 @@ impl FmxApp { } } - /// Adds the right-click menu on the first start, and keeps it pointing at - /// this FMX in its language. In the background: `reg.exe` takes a moment. - /// On Windows the installer asks instead (or Settings, for the zip). + /// Keeps the right-click menu pointing at this FMX in its language. In the + /// background: `reg.exe` takes a moment. FMX never adds the menu unasked: + /// on the first start the welcome guide offers it, otherwise it is in + /// Settings. On Windows the installer asks instead (or Settings, for the zip). fn setup_shell_menu(&mut self) { let first_time = !self.settings.shell_menu_setup && !cfg!(windows); + if first_time && self.welcome_step.is_some() { + // Decided on the guide's last page; see `welcome_window`. + self.welcome_shell_offer = Some(true); + return; + } self.settings.shell_menu_setup = true; if first_time { - self.shell_menu = true; + return; } let presets = self.settings.presets.clone(); - std::thread::spawn(move || { - if first_time { - if let Err(e) = shell::register(&presets) { - tracing::warn!(error = %e, "could not add the right-click menu"); - } - } else { - shell::refresh(&presets); - } - }); + std::thread::spawn(move || shell::refresh(&presets)); } /// Lists the presets in the right-click menu, if it is on. @@ -1103,7 +1108,11 @@ impl FmxApp { (Some(dir), _) => trf("ready.in_folder", &[("folder", &file_name(dir))]), // Downloads have no source file; they go to the Downloads folder. (None, Tool::Download) => tr("ready.in_downloads").to_owned(), - (None, _) => tr("ready.beside_source").to_owned(), + // Recordings and screenshots have no source either. + (None, tool) => match jobs::default_output_dir(tool) { + Some(dir) => trf("ready.in_folder", &[("folder", &file_name(&dir))]), + None => tr("ready.beside_source").to_owned(), + }, }; match self.job_count() { 1 => trf("ready.summary_one", &[("where", &place)]), @@ -1367,7 +1376,8 @@ impl FmxApp { { self.queue.is_running = true; } - if counts.running + counts.queued > 0 + // Only running work can be stopped; waiting jobs are removed one by one. + if counts.running > 0 && widgets::button( ui, Some(icons::STOP), @@ -2179,7 +2189,9 @@ impl FmxApp { return; } let (title, help) = self.input_heading(); - let input_done = self.input_missing().is_none(); + // A capture has nothing to add, so its first step is never "done". + let input_done = + self.tool.input_kind() != InputKind::Capture && self.input_missing().is_none(); let size = ui.available_size(); match self.settings_heading() { None if size.y >= PANEL_MIN_HEIGHT => { @@ -4012,29 +4024,49 @@ impl FmxApp { ui.horizontal_wrapped(|ui| { ui.label(RichText::new(tr("queue.title")).strong().size(16.0)); let total = self.queue.jobs().len(); - ui.label( - RichText::new(trf( - "queue.summary", - &[("done", &counts.done), ("total", &total)], - )) - .weak(), + let width = widgets::button_width( + ui, + Some(icons::DOTS_THREE_VERTICAL), + tr("action.more"), + Size::Regular, ); if total == 0 { + // One line: the hint is cut short rather than pushing the + // menu, or itself, onto another line in a narrow window or a + // language with longer words. ui.add_space(8.0); + let spacing = ui.spacing().item_spacing.x; + let room = (dir::room_left(ui) - width - spacing * 2.0).max(0.0); + if room > 60.0 { + let height = ui.spacing().interact_size.y; + ui.allocate_ui_with_layout( + egui::vec2(room, height), + dir::leading(Align::Center), + |ui| { + ui.add( + Label::new( + RichText::new(icons::label( + icons::LIST_PLUS, + tr("queue.empty"), + )) + .color(p.text_weak), + ) + .truncate(), + ) + }, + ); + } + } else { ui.label( - RichText::new(icons::label(icons::LIST_PLUS, tr("queue.empty"))) - .color(p.text_weak), + RichText::new(trf( + "queue.summary", + &[("done", &counts.done), ("total", &total)], + )) + .weak(), ); - } else { ui.add_space(8.0); self.queue_controls(ui); } - let width = widgets::button_width( - ui, - Some(icons::DOTS_THREE_VERTICAL), - tr("action.more"), - Size::Regular, - ); dir::at_end(ui, width, |ui| self.queue_menu(ui)); }); if self.queue.jobs().is_empty() { @@ -4283,13 +4315,22 @@ impl FmxApp { let Some(step) = self.welcome_step else { return; }; - let modal = welcome_dialog(ctx, step); + let modal = welcome_dialog(ctx, step, self.welcome_shell_offer.as_mut()); match modal.inner { WelcomeAction::Back => self.welcome_step = Some(step.saturating_sub(1)), WelcomeAction::Next => self.welcome_step = Some(step + 1), _ => {} } if modal.inner == WelcomeAction::Finish || modal.should_close() { + // Only the last page shows the offer, so skipping the guide + // earlier leaves the menu off; Settings can still add it. + if let Some(add) = self.welcome_shell_offer.take() { + self.settings.shell_menu_setup = true; + if add && step >= WELCOME_PAGES - 1 && modal.inner == WelcomeAction::Finish { + self.shell_menu = true; + self.toggle_shell_menu(); + } + } self.welcome_step = None; self.settings.welcome_seen = true; ctx.data_mut(|data| data.remove::(Id::unique("welcome_focus"))); @@ -4559,9 +4600,10 @@ impl FmxApp { ui.add_space(4.0); group_title(ui, tr("settings.group_core")); ui.with_layout(dir::trailing(Align::Center), |ui| { - if widgets::icon_button( + // Labelled, since the hints below tell people to press it. + if widgets::button( ui, - icons::ARROW_CLOCKWISE, + Some(icons::ARROW_CLOCKWISE), tr("action.rescan"), Kind::Ghost, Size::Small, @@ -4626,12 +4668,6 @@ impl FmxApp { .on_hover_text(tr("settings.ytdlp_hint")); }); ui.add_space(GROUP_GAP); - ui.label( - RichText::new(tr("settings.install_hint")) - .small() - .color(p.text_weak), - ); - ui.add_space(6.0); pref_group( ui, Some((tr("settings.programs"), tr("settings.programs_hint"))), @@ -5079,8 +5115,17 @@ enum WelcomeAction { /// A clamped welcome page with a scrollable body and persistent navigation. /// Uses standard modal/focus behavior and the app's direction-aware controls. -fn welcome_dialog(ctx: &egui::Context, step: usize) -> egui::ModalResponse { - let pages = [ +/// How many pages the welcome guide has. +const WELCOME_PAGES: usize = 4; + +/// `shell_offer` is the right-click menu switch shown on the last page, if +/// the menu is still to be offered. +fn welcome_dialog( + ctx: &egui::Context, + step: usize, + shell_offer: Option<&mut bool>, +) -> egui::ModalResponse { + let pages: [_; WELCOME_PAGES] = [ ( "welcome.choose_title", "welcome.choose_body", @@ -5157,6 +5202,22 @@ fn welcome_dialog(ctx: &egui::Context, step: usize) -> egui::ModalResponse bool { /// frame that receives the first character. TextEdit's width includes its frame. fn tool_search(ui: &mut egui::Ui, text: &mut String) -> (egui::Response, bool) { let p = theme::palette(ui); - ui.horizontal(|ui| { - ui.with_layout(dir::trailing(Align::Center), |ui| { - let clear = ui - .add_enabled_ui(!text.is_empty(), |ui| { - widgets::icon_button(ui, icons::X, tr("action.clear"), Kind::Ghost, Size::Small) - }) - .inner - .clicked(); - let width = ui.available_width().max(0.0); - let search = ui.add_sized( - egui::vec2(width, theme::BUTTON_HEIGHT), - TextEdit::singleline(text) - .id(Id::unique("tool_search")) - .hint_text(icons::label(icons::MAGNIFYING_GLASS, tr("grid.search"))) - .align(egui::Align2([dir::start(), Align::Center])) - .background_color(p.surface) - .margin(Margin::symmetric(10, 7)) - .desired_width(0.0), - ); - (search, clear) - }) - .inner - }) - .inner + // The field takes the sidebar's full width; its clear button sits inside + // it at the end edge, and only while there is something to clear. + const CLEAR: f32 = 22.0; + let clear_room = (CLEAR + 10.0) as i8; + let margin = if dir::is_rtl() { + Margin { + left: clear_room, + right: 10, + top: 7, + bottom: 7, + } + } else { + Margin { + left: 10, + right: clear_room, + top: 7, + bottom: 7, + } + }; + let width = ui.available_width().max(0.0); + let search = ui.add_sized( + egui::vec2(width, theme::BUTTON_HEIGHT), + TextEdit::singleline(text) + .id(Id::unique("tool_search")) + .hint_text(icons::label(icons::MAGNIFYING_GLASS, tr("grid.search"))) + .align(egui::Align2([dir::start(), Align::Center])) + .background_color(p.surface) + .margin(margin) + .desired_width(0.0), + ); + let mut clear = false; + if !text.is_empty() { + let field = search.rect; + let x = dir::mirror_x(field, field.right() - 5.0 - CLEAR, CLEAR); + let button = egui::Rect::from_min_size( + egui::pos2(x, field.center().y - CLEAR / 2.0), + egui::Vec2::splat(CLEAR), + ); + clear = widgets::field_clear_button(ui, button, tr("action.clear")).clicked(); + } + (search, clear) } /// Lays out `content` at most `max_width` wide, centered in the available space. @@ -6837,14 +6915,19 @@ fn optional_number( suffix: &str, off_label: &str, ) { + // The value (or what "off" means, such as "Original"), then a switch at + // the end edge, as in GNOME's rows; a bare checkbox beside a greyed word + // read as a disabled control. let mut on = value.is_some(); - dir::checkbox(ui, &mut on, ""); let mut number = value.unwrap_or(default); - if on { - ui.add(DragValue::new(&mut number).range(range).suffix(suffix)); - } else { - ui.label(RichText::new(off_label).weak()); - } + ui.with_layout(dir::leading(Align::Center), |ui| { + if on { + ui.add(DragValue::new(&mut number).range(range).suffix(suffix)); + } else { + ui.label(RichText::new(off_label).color(theme::palette(ui).text_weak)); + } + widgets::switch(ui, &mut on); + }); *value = on.then_some(number); } @@ -7040,11 +7123,18 @@ fn job_controls( *cancel = Some(job.id); } } - JobState::Queued | JobState::Running { .. } => { - if icon(ui, icons::X, tr("action.cancel")) { + // Stopping running work is a different act from taking a waiting + // job off the list, so the two get different icons. + JobState::Running { .. } => { + if icon(ui, icons::STOP, tr("action.cancel")) { *cancel = Some(job.id); } } + JobState::Queued => { + if icon(ui, icons::X, tr("action.remove")) { + *remove = Some(job.id); + } + } JobState::Done { .. } => { if job.spec.output.is_file() && icon(ui, icons::ARROW_SQUARE_OUT, tr("action.open")) { open_path(&job.spec.output); @@ -7145,6 +7235,12 @@ fn power_off() { } impl eframe::App for FmxApp { + /// The window's background. eframe's default is near black, which shows + /// through the 1 px seams between panels as dark lines in light mode. + fn clear_color(&self, visuals: &egui::Visuals) -> [f32; 4] { + visuals.panel_fill.to_normalized_gamma_f32() + } + fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) { let ctx = ui.ctx().clone(); #[cfg(debug_assertions)] @@ -7623,7 +7719,7 @@ mod tests { ..Default::default() }; ctx.run_ui(input, |ui| { - bounds = welcome_dialog(ui.ctx(), step).response.rect; + bounds = welcome_dialog(ui.ctx(), step, None).response.rect; }) .textures_delta .clear(); diff --git a/src/devshot.rs b/src/devshot.rs index fe49072..7c2a885 100644 --- a/src/devshot.rs +++ b/src/devshot.rs @@ -8,6 +8,7 @@ //! - `FMX_SCREENSHOT_TOOL=record` opens that tool (`screenshot`, `frames`, `trim`, `rotate`, `mp4`, `download`, `resize`, `jpg`, `cd`); //! - `FMX_SCREENSHOT_ENQUEUE=1` adds the editor's files to the queue //! (`FMX_SCREENSHOT_RUNNING=1` then shows the first two as running); +//! - `FMX_SCREENSHOT_SEARCH=` types that into the tool search; //! - `FMX_SCREENSHOT_SIZE=x` resizes the window; //! - `FMX_SCREENSHOT_MENU=` opens that drop-down (e.g. `after_done`, `presets`), //! `save_preset` the dialog that names a new preset, or `image_preset` diff --git a/src/diagnostics.rs b/src/diagnostics.rs index 3701cdf..9c8a9da 100644 --- a/src/diagnostics.rs +++ b/src/diagnostics.rs @@ -250,7 +250,7 @@ fn show_error(message: &str, report: Option<&Path>) { }; rfd::MessageDialog::new() .set_level(rfd::MessageLevel::Error) - .set_title("fmx") + .set_title("FMX") .set_description(text) .set_buttons(rfd::MessageButtons::Ok) .show(); diff --git a/src/dir.rs b/src/dir.rs index f5f022e..5ecc55a 100644 --- a/src/dir.rs +++ b/src/dir.rs @@ -50,19 +50,25 @@ pub fn trailing(valign: Align) -> Layout { /// fits there, and otherwise just next in the row, so in a wrapping row it /// moves to the next line instead of overlapping what came before. pub fn at_end(ui: &mut Ui, width: f32, add: impl FnOnce(&mut Ui) -> R) -> R { - // `available_width` counts the whole row in a right-to-left wrapping - // layout, so measure from the cursor to the row's far edge instead. + let room = room_left(ui); + if room >= width + ui.spacing().item_spacing.x { + ui.with_layout(trailing(Align::Center), add).inner + } else { + add(ui) + } +} + +/// The width left on the current row, from the cursor to the row's far edge. +/// `available_width` counts the whole row in a wrapping layout, so it can't +/// tell how much fits beside what is already on the row. +pub fn room_left(ui: &Ui) -> f32 { let (cursor, row) = (ui.cursor(), ui.max_rect()); let room = if ui.layout().main_dir() == egui::Direction::RightToLeft { cursor.max.x - row.min.x } else { row.max.x - cursor.min.x }; - if room >= width + ui.spacing().item_spacing.x { - ui.with_layout(trailing(Align::Center), add).inner - } else { - add(ui) - } + room.max(0.0) } /// Like `ui.vertical`, aligned to the start edge. diff --git a/src/jobs.rs b/src/jobs.rs index 10011c9..8ec6b00 100644 --- a/src/jobs.rs +++ b/src/jobs.rs @@ -329,6 +329,18 @@ fn default_dir(sub: &str) -> PathBuf { if preferred.is_dir() { preferred } else { home } } +/// The folder a tool with no source file saves to when no output folder is +/// set, or `None` when the tool saves beside its source files. +pub fn default_output_dir(tool: Tool) -> Option { + match tool { + Tool::Download => Some(default_dir("Downloads")), + Tool::Screenshot => Some(default_dir("Pictures")), + Tool::Record => Some(default_dir("Videos")), + Tool::RecordAudio => Some(default_dir("Music")), + _ => None, + } +} + /// What the user selected for one batch. pub struct Selection<'a> { pub tool: Tool, diff --git a/src/widgets.rs b/src/widgets.rs index 095a6f1..e8f7559 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -114,6 +114,44 @@ pub fn icon_button( response.on_hover_text(label) } +/// The small round "clear" button drawn inside a text field at `rect`. It +/// takes no room in the layout and has no frame: a weak × that gains a soft +/// round highlight on hover, and a thin accent ring only for keyboard focus. +pub fn field_clear_button(ui: &mut egui::Ui, rect: Rect, label: &str) -> Response { + let p = theme::palette(ui); + let response = ui + .interact(rect, ui.next_auto_id().with("field_clear"), Sense::click()) + .on_hover_cursor(CursorIcon::PointingHand); + response.widget_info(|| WidgetInfo::labeled(egui::Role::Button, true, label)); + let painter = ui.painter_at(rect); + let center = rect.center(); + let radius = rect.width().min(rect.height()) / 2.0; + if response.is_pointer_button_down_on() { + painter.circle_filled(center, radius, p.control_pressed); + } else if response.hovered() { + painter.circle_filled(center, radius, p.control_hover); + } + if response.has_focus() && !response.hovered() { + painter.circle_stroke(center, radius - 1.0, Stroke::new(1.5, p.accent)); + } + let color = if response.hovered() { + p.text + } else { + p.text_weak + }; + let arm = radius * 0.38; + let stroke = Stroke::new(1.5, color); + painter.line_segment( + [center + Vec2::new(-arm, -arm), center + Vec2::new(arm, arm)], + stroke, + ); + painter.line_segment( + [center + Vec2::new(arm, -arm), center + Vec2::new(-arm, arm)], + stroke, + ); + response.on_hover_text(label) +} + /// A small icon action with an inset highlight and the full click target. pub fn compact_icon_button(ui: &mut egui::Ui, icon: &str, label: &str) -> Response { let response = button_tinted_inset(ui, Some(icon), None, "", Kind::Ghost, Size::Small, 4.0);