Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge remote-tracking branch 'origin/main' into feat/animated-gif-open-and-timeline-fixes

AlastorIRL2406e762b9bd
diff --cc crates/ui-egui/src/i18n/de.tsv
index 1a944c9a2,48ebfba67..c83745c8c
--- a/crates/ui-egui/src/i18n/de.tsv
+++ b/crates/ui-egui/src/i18n/de.tsv
@@@ -2687,4 -2754,459 +2754,460 @@@ curves Smooth Glätte
Light Red Hellrot
Medium Blue Mittelblau
Light Gray Hellgrau
+ Stop Stopp
+ # Status messages, system info and tool names
+ Join the ArtCraft Discord ({url}) Dem ArtCraft-Discord beitreten ({url})
+ Nothing to paste: the clipboard holds no image Nichts einzufügen: Die Zwischenablage enthält kein Bild
+ Graphics adapter: {adapter} Grafikadapter: {adapter}
+ Backend: {backend} ({type}) Backend: {backend} ({type})
+ Driver: {driver} Treiber: {driver}
+ GPU backend preference: {backend} Bevorzugtes GPU-Backend: {backend}
+ Selected at launch: {backend} Beim Start gewählt: {backend}
+ Image compositor: {processor} Bildkompositor: {processor}
+ Window renderer: {renderer} Fensterdarstellung: {renderer}
+ Graphics adapter Grafikadapter
+ Platform: {os} {arch} Plattform: {os} {arch}
+ Monitor profile: {profile} Monitorprofil: {profile}
+ Opened {url} {url} geöffnet
+ {index} of {total} {index} von {total}
+ Export As: {name} Exportieren als: {name}
+ Color Sampler Tool Farbaufnahme-Werkzeug
+ Vertical Type Tool Vertikales Text-Werkzeug
+ Patch Tool Ausbessern-Werkzeug
+ Grid view Rasteransicht
+ List view Listenansicht
+ Proof Setup… Proof einrichten…
+ 32-bit Preview Options 32-Bit-Vorschauoptionen
+ # Shortcut editor commands without a menu item
+ Toggle Layer Mask Overlay Ebenenmasken-Überlagerung umschalten
+ Increase Type Size Schriftgröße erhöhen
+ Decrease Type Size Schriftgröße verringern
+ Increase Type Size by 10 Schriftgröße um 10 erhöhen
+ Decrease Type Size by 10 Schriftgröße um 10 verringern
+ Make Selection from Path Auswahl aus Pfad erstellen
+ Target Composite Channel Gesamtkanal als Ziel festlegen
+ Target Channel 3 Kanal 3 als Ziel festlegen
+ Target Channel 4 Kanal 4 als Ziel festlegen
+ Target Channel 5 Kanal 5 als Ziel festlegen
+ Target Channel 6 Kanal 6 als Ziel festlegen
+ Target Channel 7 Kanal 7 als Ziel festlegen
+ Target Channel 8 Kanal 8 als Ziel festlegen
+ Target Channel 9 Kanal 9 als Ziel festlegen
+ Switch Foreground and Background Colors Vorder- und Hintergrundfarbe vertauschen
+ Default Foreground and Background Colors Standardfarben für Vorder- und Hintergrund
+ Fill with Foreground Color Mit Vordergrundfarbe füllen
+ Fill with Background Color Mit Hintergrundfarbe füllen
+ Fill with Foreground Color, Preserve Transparency Mit Vordergrundfarbe füllen, Transparenz erhalten
+ Fill with Background Color, Preserve Transparency Mit Hintergrundfarbe füllen, Transparenz erhalten
+ Decrease Brush Size Pinselgröße verringern
+ Increase Brush Size Pinselgröße erhöhen
+ Decrease Brush Hardness Pinselhärte verringern
+ Increase Brush Hardness Pinselhärte erhöhen
+ Temporary Vorübergehend
+ Space Leertaste
+ Hand Tool (hold) Hand-Werkzeug (gedrückt halten)
+ Zoom In (hold, drag to scrub) Vergrößern (gedrückt halten, zum Zoomen ziehen)
+ Zoom Out (hold) Verkleinern (gedrückt halten)
+ Erase with Brush or Pencil (hold) Mit Pinsel oder Buntstift radieren (gedrückt halten)
+ # Document Info and color profiles
+ Author Title Position des Urhebers
+ Copyright Status Urheberrechtsstatus
+ Unknown Unbekannt
+ Copyrighted Urheberrechtlich geschützt
+ Public Domain Gemeinfrei
+ Copyright Url Urheberrechts-URL
+ Keywords Stichwörter
+ Title Titel
+ Profile Profil
+ Working Arbeitsfarbraum
+ Working-cmyk Arbeits-CMYK
+ Coated-cmyk CMYK (gestrichen)
+ Linear-srgb Lineares sRGB
+ Gray-gamma-2.2 Grau (Gamma 2,2)
+ Adobe-rgb-compat Adobe-RGB-kompatibel
+ Prophoto-compat ProPhoto-kompatibel
+ Display-p3 Display P3
+ Intent Renderpriorität
+ Bpc Schwarzpunktkompensierung
+ Simulate Paper Papierfarbe simulieren
+ # Color Lookup, Shadows/Highlights, channels and Calculations
+ Warming Filter (85) Wärmefilter (85)
+ Lut LUT
+ Cool Kühl
+ Teal Orange Türkis-Orange
+ Faded Film Verblasster Film
+ Day For Night Tag für Nacht
+ Mono Contrast Mono-Kontrast
+ Cross Process Kreuzentwicklung
+ Shadow Amount Stärke der Tiefen
+ Shadow Tone Tonbreite der Tiefen
+ Shadow Radius Radius der Tiefen
+ Highlight Amount Stärke der Lichter
+ Highlight Tone Tonbreite der Lichter
+ Highlight Radius Radius der Lichter
+ Midtone Mitteltöne
+ Black Clip Schwarz beschneiden
+ White Clip Weiß beschneiden
+ Strength Stärke
+ Shadow Schatten
+ Highlight Lichter
+ Intensity Intensität
+ Neutralize Neutralisieren
+ Use Selection In Source Auswahl in der Quelle verwenden
+ Use Selection In Target Auswahl im Ziel verwenden
+ Cw Im Uhrzeigersinn
+ Ccw Gegen den Uhrzeigersinn
+ Nearest Nächster Nachbar
+ Linear Dodge Linear abwedeln
+ Mask Channel Maskenkanal
+ R G B RGB
+ Source Channel Quellkanal
+ Source Invert Quelle invertieren
+ Result Ergebnis
+ Source1 Channel Kanal der Quelle 1
+ Source1 Invert Quelle 1 invertieren
+ Source2 Channel Kanal der Quelle 2
+ Source2 Invert Quelle 2 invertieren
+ Channel1 Kanal 1
+ Channel2 Kanal 2
+ Channel3 Kanal 3
+ Channel4 Kanal 4
+ # Measurement log
+ Label Beschriftung
+ Date and Time Datum und Uhrzeit
+ Scale Units Maßstabseinheiten
+ Scale Factor Maßstabsfaktor
+ Area Fläche
+ Perimeter Umfang
+ Circularity Kreisförmigkeit
+ Gray Value (Minimum) Grauwert (Minimum)
+ Gray Value (Maximum) Grauwert (Maximum)
+ Gray Value (Mean) Grauwert (Mittelwert)
+ Gray Value (Median) Grauwert (Median)
+ Integrated Density Integrierte Dichte
+ Length Länge
+ W: B:
+ A: Wi:
+ # Lens Correction, Blur Gallery and distortion filters
+ Pattern Fill… Musterfüllung…
+ Generic Allgemein
+ Correct Distortion Verzerrung korrigieren
+ Correct Vignette Vignette korrigieren
+ Correct C A Chromatische Aberration korrigieren
+ Auto Scale Automatisch skalieren
+ Distortion Verzerrung
+ Red Cyan Rot/Cyan
+ Blue Yellow Blau/Gelb
+ Vignette Amount Stärke der Vignette
+ Vignette Midpoint Mittelpunkt der Vignette
+ Edge Extension Kantenerweiterung
+ Hexagon Sechseck
+ Pentagon Fünfeck
+ Heptagon Siebeneck
+ Octagon Achteck
+ Blade Curvature Krümmung der Blendenlamellen
+ Depth Map Tiefenkarte
+ Focal Distance Fokusabstand
+ Distribution Verteilung
+ Uniform Gleichmäßig
+ Monochromatic Monochrom
+ Seed Startwert
+ Spin Drehen
+ Draft Entwurf
+ Good Gut
+ Best Beste
+ Center X Mitte X
+ Center Y Mitte Y
+ Circle Kreis
+ Star Stern
+ Cross Kreuz
+ High Hoch
+ Low Niedrig
+ Edge Only Nur Kanten
+ Overlay Edge Kante überlagern
+ Focus Fokus
+ Transition Übergang
+ Speed Geschwindigkeit
+ Taper Verjüngung
+ End X Ende X
+ End Y Ende Y
+ Blur Angle Weichzeichnungswinkel
+ Rectangular To Polar Rechteckig zu Polar
+ Polar To Rectangular Polar zu Rechteckig
+ Undefined Areas Undefinierte Bereiche
+ Wrap Umbrechen
+ Repeat Wiederholen
+ Horizontal Only Nur horizontal
+ Vertical Only Nur vertikal
+ Generators Generatoren
+ Wavelength Min Wellenlänge min.
+ Wavelength Max Wellenlänge max.
+ Amplitude Min Amplitude min.
+ Amplitude Max Amplitude max.
+ Sine Sinus
+ Ridges Grate
+ Pond Ripples Teichwellen
+ Out From Center Von der Mitte nach außen
+ Around Center Um die Mitte
+ Reduce Color Noise Farbrauschen reduzieren
+ Sharpen Details Details schärfen
+ Remove Jpeg Artifact JPEG-Artefakte entfernen
+ Max Radius Maximaler Radius
+ Cell Size Zellengröße
+ Fine Dots Feine Punkte
+ Medium Dots Mittlere Punkte
+ Grainy Dots Körnige Punkte
+ Coarse Dots Grobe Punkte
+ Short Lines Kurze Linien
+ Medium Lines Mittlere Linien
+ Long Lines Lange Linien
+ Short Strokes Kurze Striche
+ Medium Strokes Mittlere Striche
+ Long Strokes Lange Striche
+ # Render filters: Flame, Picture Frame, Tree
+ Flame Type Flammentyp
+ One Flame Along Path Eine Flamme entlang des Pfads
+ Multiple Flames Along Path Mehrere Flammen entlang des Pfads
+ Multiple Flames Path Directions Mehrere Flammen, Pfadrichtungen
+ Multiple Flames Various Length Mehrere Flammen, unterschiedliche Längen
+ Candle Light Kerzenlicht
+ Multiple Flames One Direction Mehrere Flammen, eine Richtung
+ Randomize Length Länge zufällig variieren
+ Interval Abstand
+ Adjust Interval For Loops Abstand für Schleifen anpassen
+ Use Custom Color Eigene Farbe verwenden
+ Jag Zacken
+ Flame Lines Flammenlinien
+ Flame Bottom Alignment Ausrichtung des Flammenfußes
+ Flame Style Flammenstil
+ Violent Heftig
+ Flat Flach
+ Flame Shape Flammenform
+ To Center Zur Mitte
+ Pointed Spitz
+ Randomize Shapes Formen zufällig variieren
+ Fine Fein
+ Frame Rahmen
+ Vine With Flowers Ranke mit Blumen
+ Vine With Leaves Ranke mit Blättern
+ Ivy Efeu
+ Roses Rosen
+ Daisies Gänseblümchen
+ Berries Beeren
+ Bamboo Bambus
+ Waves Wellen
+ Zigzag Zickzack
+ Rope Seil
+ Scallops Muschelrand
+ Double Line Doppellinie
+ Snowflakes Schneeflocken
+ Stars Sterne
+ Hearts Herzen
+ Arrangement Anordnung
+ Thickness Dicke
+ Vine Color Rankenfarbe
+ Flower Color Blütenfarbe
+ Leaf Color Blattfarbe
+ Base Tree Type Baumtyp
+ Light Direction Lichtrichtung
+ Leaves Amount Blattmenge
+ Leaves Size Blattgröße
+ Branches Height Asthöhe
+ Branches Thickness Aststärke
+ Default Leaves Standardblätter
+ Leaves Color Blattfarbe
+ Custom Branch Color Eigene Astfarbe
+ Branches Color Astfarbe
+ Flat Shading Flächige Schattierung
+ # Lens, Lighting Effects, depth and mosaic filters
+ Lens Objektiv
+ Prime35 Festbrennweite 35
+ Prime105 Festbrennweite 105
+ Movie Prime Film-Festbrennweite
+ Light Type Lichttyp
+ Point Punkt
+ Infinite Unendlich
+ Light X Licht X
+ Light Y Licht Y
+ Light Z Licht Z
+ Target X Ziel X
+ Target Y Ziel Y
+ Elevation Höhe
+ Gloss Glanz
+ Metallic Metallisch
+ Ambience Umgebungslicht
+ White Is High Weiß ist hoch
+ Ambient Umgebung
+ Warmth Wärme
+ Softness Weichheit
+ Reduce Noise Rauschen reduzieren
+ Darken Only Nur abdunkeln
+ Lighten Only Nur aufhellen
+ Anisotropic Anisotrop
+ Blocks Blöcke
+ Pyramids Pyramiden
+ Depth Mode Tiefenmodus
+ Random Zufällig
+ Level Based Stufenbasiert
+ Solid Front Faces Einfarbige Vorderseiten
+ Mask Incomplete Blocks Unvollständige Blöcke maskieren
+ Stylization Stilisierung
+ Cleanliness Sauberkeit
+ Bristle Detail Borstendetail
+ Lighting Beleuchtung
+ Shine Glanz
+ Max Offset Maximaler Versatz
+ Unaltered Unverändert
+ Lower Untere
+ Upper Obere
+ Blast Böe
+ Stagger Versetzt
+ From Right Von rechts
+ From Left Von links
+ Eliminate Entfernen
+ Odd Fields Ungerade Halbbilder
+ Even Fields Gerade Halbbilder
+ Create By Erzeugen durch
+ Duplication Duplizieren
+ Kernel Kern
+ Input Mode Eingabemodus
+ Rgb RGB
+ Hsb HSB
+ Hsl HSL
+ Row Order Zeilenreihenfolge
+ Preserve Erhalten
+ Squareness Rechteckigkeit
+ # Find and Replace, image size, Warp and Layer Style blending options
+ Any Beliebig
+ Cmyk CMYK
+ To Nach
+ Dont Enlarge Nicht vergrößern
+ Find Suchen
+ Replace Ersetzen
+ Change Find Ersetzen und suchen
+ Case Sensitive Groß-/Kleinschreibung beachten
+ Whole Word Ganzes Wort
+ Forward Vorwärts
+ Based On Basierend auf
+ General Blending Allgemeine Füllmethode
+ Advanced Blending Erweiterte Füllmethode
+ Blend Interior Effects as Group Innere Effekte als Gruppe überblenden
+ Blend Clipped Layers as Group Ebenen der Schnittmaske als Gruppe überblenden
+ Transparency Shapes Layer Transparenz bestimmt die Ebenenform
+ Layer Mask Hides Effects Ebenenmaske blendet Effekte aus
+ Vector Mask Hides Effects Vektormaske blendet Effekte aus
+ This Layer: Diese Ebene:
+ Underlying Layer: Darunterliegende Ebene:
+ Up Nach oben
+ Checkerboard Schachbrett
+ Arc Lower Bogen unten
+ Arc Upper Bogen oben
+ Bend Biegen
+ Horizontal Distortion Horizontale Verzerrung
+ Vertical Distortion Vertikale Verzerrung
+ Stretch Strecken
+ Map Document Dokument zuordnen
+ Map Path Pfad zuordnen
+ Fuzziness Toleranz
+ Object Finder Objektsucher
+ No object found there — drag a rectangle around it Dort wurde kein Objekt gefunden — ziehen Sie ein Rechteck darum
+ Remove after each stroke Nach jedem Strich entfernen
+ Apply the removal ({key}) Entfernen anwenden ({key})
+ Strokes to remove: {n} (Enter applies, Esc cancels) Striche zum Entfernen: {n} (Eingabe wendet an, Esc bricht ab)
+ Show home recent files Zuletzt geöffnete Dateien auf dem Startbildschirm anzeigen
+ Clear Brush Controls Pinselsteuerungen löschen
+ Reset All Locked Settings Alle gesperrten Einstellungen zurücksetzen
+ Copy Texture to Other Tools Struktur auf andere Werkzeuge kopieren
+
+ # Actions panel: Load/Save Actions (.atn) and kept Photoshop steps
+ Load Actions… Aktionen laden…
+ Save Actions… Aktionen speichern…
+ {name} (Photoshop) {name} (Photoshop)
+ {message} ({note}) {message} ({note})
+ @plural Loaded {n} action from {file}|Loaded {n} actions from {file} {n} Aktion aus {file} geladen|{n} Aktionen aus {file} geladen
+ @plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} Schritt hat noch keine Entsprechung in PhotoCraft|{n} Schritte haben noch keine Entsprechung in PhotoCraft
+ @plural Saved {n} action to {file}|Saved {n} actions to {file} {n} Aktion in {file} gespeichert|{n} Aktionen in {file} gespeichert
+ @plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out {n} Schritt ohne Photoshop-Entsprechung ausgelassen|{n} Schritte ohne Photoshop-Entsprechung ausgelassen
+
+ File Naming Dateibenennung
+ Starting serial Startnummer
+ # Actions panel: set folders, dialog toggle, Insert Stop
+ Insert Stop… Stopp einfügen…
+ Save Set… Set speichern…
+ Message: Meldung:
+ Allow Continue Fortsetzen erlauben
+ Show dialog during playback Dialog bei der Wiedergabe anzeigen
+ Select an action first Wählen Sie zuerst eine Aktion aus
+ Action playback stopped Aktionswiedergabe angehalten
+ Step {step} is waiting for its dialog Schritt {step} wartet auf seinen Dialog
+ @plural {n} action|{n} actions {n} Aktion|{n} Aktionen
+ Background (Default) Hintergrund (Standard)
+ Content-Aware Fill Inhaltsbasiert füllen
+ # Batch / Image Processor
+ Include All Subfolders Alle Unterordner einschließen
+ Auto Add/Delete Autom. hinzuf./löschen
+
+ # Native Windows printing qualification
+ Don't also tick Mirror Image in Print Settings…: the two flips cancel out. Aktiviere nicht zusätzlich das Spiegelbild in den Druckeinstellungen: Die beiden Spiegelungen heben sich auf.
+ Print Settings… Druckeinstellungen…
+ Remember to turn off the printer's own colour management in Print Settings… Denke daran, die eigene Farbverwaltung des Druckers in den Druckeinstellungen auszuschalten…
+ Sent to {printer} An {printer} gesendet
+ set in Print Settings… in den Druckeinstellungen festlegen…
+ ICO is limited to 256 × 256 pixels ICO ist auf 256 × 256 Pixel begrenzt
+ # Embedded Profile Mismatch: profile names beside the choices, Remember this choice
+ Use the embedded profile ({profile}) Eingebettetes Profil verwenden ({profile})
+ Convert to the working space ({profile}) In den Arbeitsfarbraum konvertieren ({profile})
+ Remember this choice for future images Diese Auswahl für künftige Bilder merken
+ Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. Die Abfrage lässt sich mit „Ask On Mismatch“ unter Bearbeiten › Farbeinstellungen wieder einschalten.
+ Button Mode Schaltflächenmodus
+ Button Mode On Schaltflächenmodus an
+
+ # Darken / Lighten Interface (⇧⌘F1 / ⇧⌘F2)
+ Darken Interface Benutzeroberfläche abdunkeln
+ Lighten Interface Benutzeroberfläche aufhellen
+ # Bevel & Emboss Technique.
+ Technique Technik
+ Chisel Hard Meißeln hart
+ Chisel Soft Meißeln weich
+ Open color-less EXR as ACEScg Farbangabenloses EXR als ACEScg öffnen
+ # Export As metadata and profile options
+ Color Profile Farbprofil
+ EXIF EXIF
+
+ # View › Guides › right-click a guide
+ Edit Selected Guides Ausgewählte Hilfslinien bearbeiten
+ Clear Selected Guides Ausgewählte Hilfslinien löschen
+ Delete this set Diesen Satz löschen
+ New Set… Neuer Satz…
+ PhotoCraft Defaults PhotoCraft-Standard
+ Save a list of these shortcuts as a web page Liste dieser Kurzbefehle als Webseite speichern
+ Save the changes to this set Änderungen in diesem Satz speichern
+ Save these shortcuts as a .kys file Diese Kurzbefehle als .kys-Datei speichern
+ Save these shortcuts as a new set Diese Kurzbefehle als neuen Satz speichern
+ Set deleted. Satz gelöscht.
+ Set saved. Satz gespeichert.
+ Set: Satz:
+ Summarize… Zusammenfassen…
+ There are too many sets: delete one first. Zu viele Sätze: Löschen Sie zuerst einen.
+ set name Name des Satzes
+ {set} (modified) {set} (geändert)
+ Accept and Go to Conflict Übernehmen und zum Konflikt
+ Changes undone. Änderungen rückgängig gemacht.
+ Choose a new shortcut for this command, or leave it without one. Wählen Sie einen neuen Kurzbefehl für diesen Befehl oder lassen Sie ihn ohne.
+ Put this command's shortcuts back as they were Die Kurzbefehle dieses Befehls wiederherstellen
+ Take the shortcut from the other command and select it Den Kurzbefehl dem anderen Befehl entziehen und diesen auswählen
+ Undo Changes Änderungen rückgängig machen
+ {shortcut} is reserved by the system and can't be assigned. {shortcut} ist vom System reserviert und kann nicht zugewiesen werden.
+ Low-Latency Drawing (vsync off, applies at next launch) Zeichnen mit geringer Latenz (ohne VSync, gilt ab dem nächsten Start)
+ # Free Transform: a new layer while the box is open (#5859)
+ Free Transform is still being applied; try again when it has finished. Frei transformieren wird noch angewendet; versuchen Sie es erneut, wenn es fertig ist.
+ The transform couldn't be applied. Die Transformation konnte nicht angewendet werden.
+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice
+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. Die Ebenen brauchen {needed} GPU-Speicher; das Budget lässt ihnen {budget}.
+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. Stellen Sie unter Voreinstellungen › Leistung den GPU-Speicher auf das ein, was Ihre Grafikkarte fassen kann, höchstens 3/8 ihres Speichers. Automatisch folgt der Speichernutzung, innerhalb eines Viertels des Arbeitsspeichers dieses Computers und 3/8 des Kartenspeichers, und rechnet das Dokument bei einer Karte mit bekanntem Speicher nicht an. Solange sie nicht hineinpassen, zeigt die Statusleiste GPU-Speicher voll.
+ GPU Memory Full GPU-Speicher voll
+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Die Ebenen brauchen {needed} GPU-Speicher und dürfen {budget} belegen, daher zeichnen Änderungen, die das ganze Dokument neu zeichnen, auf der CPU. Klicken, um den GPU-Speicher einzustellen.
+ GPU memory budget: {budget} GPU-Speicherbudget: {budget}
+ This document's layers: {needed} of {budget} for layers Ebenen dieses Dokuments: {needed} von {budget} für Ebenen
+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Die Ebenen dieses Dokuments brauchen {needed}, dürfen aber {budget} belegen: Das ganze Dokument wird auf der CPU neu gezeichnet
+ GPU Memory (MB, 0 = Automatic) GPU-Speicher (MB, 0 = Automatisch)
diff --cc crates/ui-egui/src/i18n/ko.tsv
index cd7ff45cf,361cef2e9..972471593
--- a/crates/ui-egui/src/i18n/ko.tsv
+++ b/crates/ui-egui/src/i18n/ko.tsv
@@@ -3217,4 -3285,104 +3285,105 @@@ curves Smooth 매끄럽�
Light Red 연한 빨강
Medium Blue 중간 파랑
Light Gray 연한 회색
+ Stop 정지
+ Object Finder 개체 찾기
+ No object found there — drag a rectangle around it 그곳에서 개체를 찾지 못했습니다 — 주위에 사각형을 드래그하세요
+ Remove after each stroke 획마다 제거
+ Apply the removal ({key}) 제거 적용 ({key})
+ Strokes to remove: {n} (Enter applies, Esc cancels) 제거할 획: {n} (Enter 적용, Esc 취소)
+ Show home recent files 홈 화면에 최근 파일 표시
+ Clear Brush Controls 브러시 제어 지우기
+ Reset All Locked Settings 모든 잠긴 설정 재설정
+ Copy Texture to Other Tools 다른 도구로 텍스처 복사
+
+ # Actions panel: Load/Save Actions (.atn) and kept Photoshop steps
+ Load Actions… 액션 불러오기…
+ Save Actions… 액션 저장…
+ {name} (Photoshop) {name} (Photoshop)
+ {message} ({note}) {message} ({note})
+ @plural Loaded {n} action from {file}|Loaded {n} actions from {file} {file}에서 액션 {n}개를 불러왔습니다
+ @plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n}개 단계에는 아직 PhotoCraft에 해당하는 기능이 없습니다
+ @plural Saved {n} action to {file}|Saved {n} actions to {file} {file}에 액션 {n}개를 저장했습니다
+ @plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out Photoshop에 해당하는 기능이 없는 {n}개 단계를 제외했습니다
+
+ File Naming 파일 이름 지정
+ Starting serial 시작 일련번호
+ # Actions panel: set folders, dialog toggle, Insert Stop
+ Insert Stop… 정지 삽입…
+ Save Set… 세트 저장…
+ Message: 메시지:
+ Allow Continue 계속 허용
+ Show dialog during playback 재생 중 대화 상자 표시
+ Select an action first 먼저 액션을 선택하세요
+ Action playback stopped 액션 재생이 중지되었습니다
+ Step {step} is waiting for its dialog {step}단계가 대화 상자를 기다리고 있습니다
+ @plural {n} action|{n} actions 액션 {n}개
+ Background (Default) 배경(기본값)
+ # Batch / Image Processor
+ Include All Subfolders 모든 하위 폴더 포함
+ Auto Add/Delete 자동 추가/삭제
+
+ # Native Windows printing qualification
+ Don't also tick Mirror Image in Print Settings…: the two flips cancel out. 인쇄 설정에서도 이미지 반전을 켜지 마세요. 두 번 반전하면 원래대로 돌아갑니다.
+ Print Settings… 인쇄 설정…
+ Remember to turn off the printer's own colour management in Print Settings… 인쇄 설정에서 프린터 자체의 색상 관리를 끄세요…
+ Sent to {printer} {printer}(으)로 전송됨
+ set in Print Settings… 인쇄 설정에서 지정…
+ ICO is limited to 256 × 256 pixels ICO는 256 × 256픽셀로 제한됩니다
+ # Embedded Profile Mismatch: profile names beside the choices, Remember this choice
+ Use the embedded profile ({profile}) 포함된 프로파일 사용({profile})
+ Convert to the working space ({profile}) 작업 색상 공간으로 변환({profile})
+ Remember this choice for future images 이후 이미지에도 이 선택 기억
+ Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. 편집 › 색상 설정의 Ask On Mismatch로 이 확인을 다시 켤 수 있습니다.
+ Button Mode 단추 모드
+ Button Mode On 단추 모드 켜짐
+
+ # Darken / Lighten Interface (⇧⌘F1 / ⇧⌘F2)
+ Darken Interface 인터페이스 어둡게
+ Lighten Interface 인터페이스 밝게
+ # Bevel & Emboss Technique.
+ Technique 기법
+ Chisel Hard 단단하게 조각
+ Chisel Soft 부드럽게 조각
+ Open color-less EXR as ACEScg 색 공간 정보 없는 EXR을 ACEScg로 열기
+ # Export As metadata and profile options
+ Color Profile 색상 프로필
+ EXIF EXIF
+
+ # View › Guides › right-click a guide
+ Edit Selected Guides 선택한 안내선 편집
+ Clear Selected Guides 선택한 안내선 지우기
+ Delete this set 이 세트 삭제
+ New Set… 새 세트…
+ PhotoCraft Defaults PhotoCraft 기본값
+ Save a list of these shortcuts as a web page 이 단축키 목록을 웹 페이지로 저장
+ Save the changes to this set 이 세트에 변경 사항 저장
+ Save these shortcuts as a .kys file 이 단축키를 .kys 파일로 저장
+ Save these shortcuts as a new set 이 단축키를 새 세트로 저장
+ Set deleted. 세트를 삭제했습니다.
+ Set saved. 세트를 저장했습니다.
+ Set: 세트:
+ Summarize… 요약…
+ There are too many sets: delete one first. 세트가 너무 많습니다. 먼저 하나를 삭제하세요.
+ set name 세트 이름
+ {set} (modified) {set}(수정됨)
+ Accept and Go to Conflict 적용 후 충돌 항목으로 이동
+ Changes undone. 변경 사항을 취소했습니다.
+ Choose a new shortcut for this command, or leave it without one. 이 명령의 새 단축키를 선택하거나 단축키 없이 두세요.
+ Put this command's shortcuts back as they were 이 명령의 단축키를 원래대로 되돌리기
+ Take the shortcut from the other command and select it 다른 명령에서 단축키를 빼고 그 명령 선택
+ Undo Changes 변경 사항 취소
+ {shortcut} is reserved by the system and can't be assigned. {shortcut}은(는) 시스템에서 예약되어 할당할 수 없습니다.
+ Low-Latency Drawing (vsync off, applies at next launch) 저지연 그리기(수직 동기화 끔, 다음 실행 시 적용)
+ # Free Transform: a new layer while the box is open (#5859)
+ Free Transform is still being applied; try again when it has finished. 자유 변형을 아직 적용하는 중입니다. 완료된 후 다시 시도하세요.
+ The transform couldn't be applied. 변형을 적용할 수 없습니다.
+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice
+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. 레이어에 GPU 메모리 {needed}가 필요하지만 예산은 {budget}만 남겨 둡니다.
+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. 환경 설정 › 성능에서 GPU 메모리를 그래픽 카드가 감당할 수 있는 양으로 설정하세요(최대 카드 메모리의 3/8). 자동은 메모리 사용량을 따르며, 이 컴퓨터 메모리의 4분의 1과 카드 메모리의 3/8 이내이고, 메모리를 알 수 있는 카드에서는 문서를 차감하지 않습니다. 맞지 않는 동안 상태 표시줄에 GPU 메모리 부족이 표시됩니다.
+ GPU Memory Full GPU 메모리 부족
+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. 레이어에 GPU 메모리 {needed}가 필요하지만 {budget}만 사용할 수 있어 문서 전체를 다시 그리는 편집은 CPU에서 처리됩니다. 클릭하여 GPU 메모리를 설정합니다.
+ GPU memory budget: {budget} GPU 메모리 예산: {budget}
+ This document's layers: {needed} of {budget} for layers 이 문서의 레이어: 레이어용 {budget} 중 {needed}
+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 이 문서의 레이어에 {needed}가 필요하지만 {budget}만 사용할 수 있습니다: 문서 전체 다시 그리기는 CPU를 사용합니다
+ GPU Memory (MB, 0 = Automatic) GPU 메모리(MB, 0 = 자동)
diff --cc crates/ui-egui/src/i18n/zh-hans.tsv
index e01b9a3d4,eebeabaa6..aab2ea9fa
--- a/crates/ui-egui/src/i18n/zh-hans.tsv
+++ b/crates/ui-egui/src/i18n/zh-hans.tsv
@@@ -2652,4 -2721,106 +2721,107 @@@ curves Smooth 平�
Light Red 浅红色
Medium Blue 中蓝色
Light Gray 浅灰色
+ Stop 停止
+ Object Finder 对象查找程序
+ No object found there — drag a rectangle around it 那里未找到对象 — 请在其周围拖动矩形
+ Remove after each stroke 每次描边后移除
+ Apply the removal ({key}) 应用移除 ({key})
+ Strokes to remove: {n} (Enter applies, Esc cancels) 待移除的描边:{n}(Enter 应用,Esc 取消)
+ Show home recent files 在主屏幕上显示最近的文件
+ Clear Brush Controls 清除画笔控件
+ Reset All Locked Settings 复位所有锁定的设置
+ Copy Texture to Other Tools 将纹理复制到其他工具
+
+ # Actions panel: Load/Save Actions (.atn) and kept Photoshop steps
+ Load Actions… 载入动作…
+ Save Actions… 存储动作…
+ {name} (Photoshop) {name}(Photoshop)
+ {message} ({note}) {message}({note})
+ @plural Loaded {n} action from {file}|Loaded {n} actions from {file} 已从 {file} 载入 {n} 个动作
+ @plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} 个步骤在 PhotoCraft 中尚无对应功能
+ @plural Saved {n} action to {file}|Saved {n} actions to {file} 已将 {n} 个动作存储到 {file}
+ @plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out 已省略 {n} 个没有 Photoshop 对应功能的步骤
+
+ File Naming 文件命名
+ Starting serial 起始序号
+ # Actions panel: set folders, dialog toggle, Insert Stop
+ Insert Stop… 插入停止…
+ Save Set… 存储组…
+ Message: 信息:
+ Allow Continue 允许继续
+ Show dialog during playback 播放时显示对话框
+ Select an action first 请先选择一个动作
+ Action playback stopped 动作播放已停止
+ Step {step} is waiting for its dialog 步骤 {step} 正在等待其对话框
+ @plural {n} action|{n} actions {n} 个动作
+ Background (Default) 背景(默认)
+ Content-Aware Fill 内容识别填充
+ # Batch / Image Processor
+ Include All Subfolders 包含所有子文件夹
+ Auto Add/Delete 自动添加/删除
+
+ # Native Windows printing qualification
+ Don't also tick Mirror Image in Print Settings…: the two flips cancel out. 不要同时勾选打印设置中的镜像:两次翻转会相互抵消。
+ Print Settings… 打印设置…
+ Remember to turn off the printer's own colour management in Print Settings… 请记得在打印设置中关闭打印机自身的色彩管理…
+ Sent to {printer} 已发送到 {printer}
+ set in Print Settings… 在打印设置中设置…
+ ICO is limited to 256 × 256 pixels ICO 最大为 256 × 256 像素
+ # Embedded Profile Mismatch: profile names beside the choices, Remember this choice
+ Use the embedded profile ({profile}) 使用嵌入的配置文件({profile})
+ Convert to the working space ({profile}) 转换到工作空间({profile})
+ Remember this choice for future images 以后打开的图像都使用此选择
+ Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. 可在 编辑 › 颜色设置 中打开 Ask On Mismatch,重新显示此提示。
+ Button Mode 按钮模式
+ Button Mode On 按钮模式 开
+
+ # Darken / Lighten Interface (⇧⌘F1 / ⇧⌘F2)
+ Darken Interface 界面变暗
+ Lighten Interface 界面变亮
+ # Bevel & Emboss Technique.
+ Technique 方法
+ Chisel Hard 雕刻清晰
+ Chisel Soft 雕刻柔和
+ Open color-less EXR as ACEScg 将无色彩空间信息的 EXR 以 ACEScg 打开
+ # Export As metadata and profile options
+ Color Profile 颜色配置文件
+ EXIF EXIF
+
+ # View › Guides › right-click a guide
+ Edit Selected Guides 编辑所选参考线
+ Clear Selected Guides 清除所选参考线
+ Delete this set 删除此组
+ New Set… 新建组…
+ PhotoCraft Defaults PhotoCraft 默认值
+ Save a list of these shortcuts as a web page 将这些快捷键的列表存储为网页
+ Save the changes to this set 将更改存储到此组
+ Save these shortcuts as a .kys file 将这些快捷键存储为 .kys 文件
+ Save these shortcuts as a new set 将这些快捷键存储为新组
+ Set deleted. 已删除组。
+ Set saved. 已存储组。
+ Set: 组:
+ Summarize… 摘要…
+ There are too many sets: delete one first. 组太多:请先删除一个。
+ set name 组名称
+ {set} (modified) {set}(已修改)
+ Random 随机
+ Accept and Go to Conflict 接受并转到冲突
+ Changes undone. 已撤消更改。
+ Choose a new shortcut for this command, or leave it without one. 为此命令选择新的快捷键,或保留为无快捷键。
+ Put this command's shortcuts back as they were 将此命令的快捷键恢复原样
+ Take the shortcut from the other command and select it 从另一个命令移除该快捷键并选中它
+ Undo Changes 撤消更改
+ {shortcut} is reserved by the system and can't be assigned. {shortcut} 由系统保留,无法指定。
+ Low-Latency Drawing (vsync off, applies at next launch) 低延迟绘画(关闭垂直同步,下次启动时生效)
+ # Free Transform: a new layer while the box is open (#5859)
+ Free Transform is still being applied; try again when it has finished. 自由变换仍在应用中;请在完成后重试。
+ The transform couldn't be applied. 无法应用变换。
+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice
+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. 其图层需要 {needed} GPU 内存;预算只留给它们 {budget}。
+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. 在 首选项 › 性能 中将 GPU 内存设置为显卡能容纳的大小,最多为其显存的 3/8。自动跟随内存使用量,不超过本机内存的四分之一和显卡显存的 3/8,且在显存已知的显卡上不把文档计入。在图层放不下期间,状态栏显示“GPU 内存已满”。
+ GPU Memory Full GPU 内存已满
+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. 图层需要 {needed} GPU 内存,但只能占用 {budget},因此重绘整个文档的编辑会在 CPU 上进行。点击以设置 GPU 内存。
+ GPU memory budget: {budget} GPU 内存预算:{budget}
+ This document's layers: {needed} of {budget} for layers 此文档的图层:图层可用 {budget} 中的 {needed}
+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 此文档的图层需要 {needed},但只能占用 {budget}:整个文档的重绘使用 CPU
+ GPU Memory (MB, 0 = Automatic) GPU 内存(MB,0 = 自动)
diff --cc crates/ui-egui/src/i18n/zh-hant.tsv
index 8c2a27efa,b35556b6f..51b264ab7
--- a/crates/ui-egui/src/i18n/zh-hant.tsv
+++ b/crates/ui-egui/src/i18n/zh-hant.tsv
@@@ -2637,4 -2706,106 +2706,107 @@@ curves Smooth 平�
Light Red 淺紅色
Medium Blue 中藍色
Light Gray 淺灰色
+ Stop 停止
+ Object Finder 物件尋找器
+ No object found there — drag a rectangle around it 那裡找不到物件 — 請在其周圍拖曳矩形
+ Remove after each stroke 每次描邊後移除
+ Apply the removal ({key}) 套用移除 ({key})
+ Strokes to remove: {n} (Enter applies, Esc cancels) 待移除的描邊:{n}(Enter 套用,Esc 取消)
+ Show home recent files 在主畫面上顯示最近的檔案
+ Clear Brush Controls 清除筆刷控制項
+ Reset All Locked Settings 重設所有鎖定的設定
+ Copy Texture to Other Tools 複製紋理至其他工具
+
+ # Actions panel: Load/Save Actions (.atn) and kept Photoshop steps
+ Load Actions… 載入動作…
+ Save Actions… 儲存動作…
+ {name} (Photoshop) {name}(Photoshop)
+ {message} ({note}) {message}({note})
+ @plural Loaded {n} action from {file}|Loaded {n} actions from {file} 已從 {file} 載入 {n} 個動作
+ @plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} 個步驟在 PhotoCraft 中尚無對應功能
+ @plural Saved {n} action to {file}|Saved {n} actions to {file} 已將 {n} 個動作儲存到 {file}
+ @plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out 已略過 {n} 個沒有 Photoshop 對應功能的步驟
+
+ File Naming 檔案命名
+ Starting serial 起始序號
+ # Actions panel: set folders, dialog toggle, Insert Stop
+ Insert Stop… 插入停止…
+ Save Set… 儲存組合…
+ Message: 訊息:
+ Allow Continue 允許繼續
+ Show dialog during playback 播放時顯示對話框
+ Select an action first 請先選取一個動作
+ Action playback stopped 動作播放已停止
+ Step {step} is waiting for its dialog 步驟 {step} 正在等待其對話框
+ @plural {n} action|{n} actions {n} 個動作
+ Background (Default) 背景(預設)
+ Content-Aware Fill 內容感知填滿
+ # Batch / Image Processor
+ Include All Subfolders 包含所有子資料夾
+ Auto Add/Delete 自動增加/刪除
+
+ # Native Windows printing qualification
+ Don't also tick Mirror Image in Print Settings…: the two flips cancel out. 請勿同時勾選列印設定中的鏡像:兩次翻轉會互相抵消。
+ Print Settings… 列印設定…
+ Remember to turn off the printer's own colour management in Print Settings… 請記得在列印設定中關閉印表機本身的色彩管理…
+ Sent to {printer} 已傳送至 {printer}
+ set in Print Settings… 在列印設定中設定…
+ ICO is limited to 256 × 256 pixels ICO 最大為 256 × 256 像素
+ # Embedded Profile Mismatch: profile names beside the choices, Remember this choice
+ Use the embedded profile ({profile}) 使用內嵌描述檔 ({profile})
+ Convert to the working space ({profile}) 轉換為工作空間 ({profile})
+ Remember this choice for future images 之後開啟的影像都使用此選擇
+ Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. 可在 編輯 › 色彩設定 中開啟 Ask On Mismatch,重新顯示此提示。
+ Button Mode 按鈕模式
+ Button Mode On 按鈕模式 開
+
+ # Darken / Lighten Interface (⇧⌘F1 / ⇧⌘F2)
+ Darken Interface 介面變暗
+ Lighten Interface 介面變亮
+ # Bevel & Emboss Technique.
+ Technique 方法
+ Chisel Hard 雕刻清晰
+ Chisel Soft 雕刻柔和
+ Open color-less EXR as ACEScg 將無色彩空間資訊的 EXR 以 ACEScg 開啟
+ # Export As metadata and profile options
+ Color Profile 色彩描述檔
+ EXIF EXIF
+
+ # View › Guides › right-click a guide
+ Edit Selected Guides 編輯所選參考線
+ Clear Selected Guides 清除所選參考線
+ Delete this set 刪除此組合
+ New Set… 新增組合…
+ PhotoCraft Defaults PhotoCraft 預設值
+ Save a list of these shortcuts as a web page 將這些快速鍵的清單儲存為網頁
+ Save the changes to this set 將變更儲存到此組合
+ Save these shortcuts as a .kys file 將這些快速鍵儲存為 .kys 檔案
+ Save these shortcuts as a new set 將這些快速鍵儲存為新組合
+ Set deleted. 已刪除組合。
+ Set saved. 已儲存組合。
+ Set: 組合:
+ Summarize… 摘要…
+ There are too many sets: delete one first. 組合太多:請先刪除一個。
+ set name 組合名稱
+ {set} (modified) {set}(已修改)
+ Random 隨機
+ Accept and Go to Conflict 接受並前往衝突
+ Changes undone. 已還原變更。
+ Choose a new shortcut for this command, or leave it without one. 為此指令選擇新的快速鍵,或保持沒有快速鍵。
+ Put this command's shortcuts back as they were 將此指令的快速鍵恢復原狀
+ Take the shortcut from the other command and select it 從另一個指令移除該快速鍵並選取它
+ Undo Changes 還原變更
+ {shortcut} is reserved by the system and can't be assigned. {shortcut} 由系統保留,無法指定。
+ Low-Latency Drawing (vsync off, applies at next launch) 低延遲繪圖(關閉垂直同步,下次啟動時生效)
+ # Free Transform: a new layer while the box is open (#5859)
+ Free Transform is still being applied; try again when it has finished. 任意變形仍在套用中;請在完成後再試一次。
+ The transform couldn't be applied. 無法套用變形。
+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice
+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. 其圖層需要 {needed} GPU 記憶體;預算只留給它們 {budget}。
+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. 在 偏好設定 › 效能 中將 GPU 記憶體設為顯示卡能容納的大小,最多為其記憶體的 3/8。自動會跟隨記憶體使用量,不超過本機記憶體的四分之一和顯示卡記憶體的 3/8,且在記憶體已知的顯示卡上不把文件計入。在圖層放不下期間,狀態列會顯示「GPU 記憶體已滿」。
+ GPU Memory Full GPU 記憶體已滿
+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. 圖層需要 {needed} GPU 記憶體,但只能佔用 {budget},因此重繪整份文件的編輯會在 CPU 上進行。按一下以設定 GPU 記憶體。
+ GPU memory budget: {budget} GPU 記憶體預算:{budget}
+ This document's layers: {needed} of {budget} for layers 此文件的圖層:圖層可用 {budget} 中的 {needed}
+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 此文件的圖層需要 {needed},但只能佔用 {budget}:整份文件的重繪使用 CPU
+ GPU Memory (MB, 0 = Automatic) GPU 記憶體(MB,0 = 自動)
diff --cc crates/ui-egui/src/view_cmds/tests.rs
index b073ed8db,2205b6e15..39362d2a2
--- a/crates/ui-egui/src/view_cmds/tests.rs
+++ b/crates/ui-egui/src/view_cmds/tests.rs
@@@ -369,28 -462,47 +462,72 @@@ fn load_selection_without_alpha_channel
assert_eq!(app.ui.dialog_mut(dialog).unwrap().fields["channel"], "RGB");
crate::dialogs::confirm(&mut app, dialog).unwrap();
}
+
+#[test]
+fn video_menu_commands_open_pickers_and_dialogs() {
+ let (mut app, ctx) = app_with(1);
+ app.services.file_dialog = Some(Box::new(|_, _, _| {}));
+
+ for id in ["layer.videoLayers.newVideoLayerFromFile", "file.import.videoFramesToLayers", "layer.videoLayers.replaceFootage"] {
+ assert!(is_live(id), "{id}");
+ assert_eq!(menu(&mut app, &ctx, id, json!({})).unwrap(), json!({"fileDialog": "open"}), "{id}");
+ app.file_dialog = None;
+ }
+
+ let interpret = menu(&mut app, &ctx, "layer.videoLayers.interpretFootage", json!({})).unwrap()["dialog"].as_u64().unwrap();
+ let fields = &app.ui.dialog_mut(interpret).unwrap().fields;
+ assert_eq!(fields["__command"], "layer.videoLayers.interpretFootage");
+ assert_eq!(fields["fps"], 30.0);
+ app.ui.close_dialog(interpret);
+
+ let render = menu(&mut app, &ctx, "file.export.renderVideo", json!({})).unwrap()["dialog"].as_u64().unwrap();
+ let fields = &app.ui.dialog_mut(render).unwrap().fields;
+ assert_eq!(fields["__command"], "file.export.renderVideo");
+ assert_eq!(fields["format"], "gif");
+ assert_eq!(fields["__choices"]["format"], json!(["gif", "png", "jpg", "webp", "bmp", "tiff"]));
+ app.ui.close_dialog(render);
+}
+
+ /// One frame of the shortcut handler with a plain Esc press.
+ fn press_esc(app: &mut PhotocraftApp, ctx: &egui::Context) {
+ let key = egui::Key::Escape;
+ let input = egui::RawInput {
+ focused: true,
+ events: vec![egui::Event::Key { key, physical_key: Some(key), pressed: true, repeat: false, modifiers: egui::Modifiers::NONE }],
+ ..Default::default()
+ };
+ ctx.run_ui(input, |ui| crate::shortcuts::handle(app, ui.ctx())).textures_delta.clear();
+ }
+
+ #[test]
+ fn esc_leaves_full_screen_modes_unless_something_else_owns_it() {
+ let (mut app, ctx) = app_with(1);
+ // Both full screen modes return to Standard, and the menu check follows (#4116).
+ for mode in ["fullScreen", "fullScreenWithMenuBar"] {
+ menu(&mut app, &ctx, &format!("view.screenMode.{mode}"), json!({})).unwrap();
+ press_esc(&mut app, &ctx);
+ assert_eq!(app.ui.view.screen_mode, "standard", "{mode}");
+ assert_eq!(checked(&app, "view.screenMode.standard"), Some(true));
+ }
+ // In Standard, Esc leaves the mode alone.
+ press_esc(&mut app, &ctx);
+ assert_eq!(app.ui.view.screen_mode, "standard");
+ // An open dialog takes Esc first.
+ menu(&mut app, &ctx, "view.screenMode.fullScreen", json!({})).unwrap();
+ menu(&mut app, &ctx, "image.canvasSize", json!({})).unwrap();
+ assert_eq!(app.ui.dialogs.len(), 1);
+ press_esc(&mut app, &ctx);
+ assert_eq!(app.ui.view.screen_mode, "fullScreen");
+ app.ui.dialogs.clear();
+ // So does Free Transform: Esc cancels it and the mode stays.
+ app.run("select.all", json!({})).unwrap();
+ crate::transform_tool::begin(&mut app, &ctx).unwrap();
+ assert!(app.ui.transform.is_some());
+ press_esc(&mut app, &ctx);
+ assert!(app.ui.transform.is_none());
+ assert_eq!(app.ui.view.screen_mode, "fullScreen");
+ // A selection stays while Esc leaves full screen; the next Esc deselects.
+ press_esc(&mut app, &ctx);
+ assert_eq!(app.ui.view.screen_mode, "standard");
+ assert!(app.session.active().unwrap().doc.selection.is_some());
+ }