Skip to content

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

Merge PR #4049: feat(styles): import and export .asl layer style libraries (#1051)

David Mann47b6df156eff
diff --cc apps/photocraft-web/src/web.rs
index 0bec8646c,f9bb0f986..7818bdf2b
--- a/apps/photocraft-web/src/web.rs
+++ b/apps/photocraft-web/src/web.rs
@@@ -17,11 -17,11 +17,11 @@@ use wasm_bindgen::JsCast as _
type Inbox = Arc<Mutex<Vec<(String, Vec<u8>)>>>;
/// Everything File › Open reads: PhotoCraft, Photoshop, OpenRaster, Krita and Affinity documents, flat images, and
- /// Photoshop brushes (.abr), gradients (.grd) and swatches (.aco, .ase), which go to the preset libraries.
+ /// Photoshop brushes (.abr), gradients (.grd), layer styles (.asl) and swatches (.aco, .ase), which go to the preset libraries.
const OPEN_EXTS: &[&str] = &[
- "pcraft", "pdn", "ora", "kra", "krz", "psd", "psb", "psdt", "png", "jpg", "jpeg", "tif", "tiff", "webp", "gif", "bmp", "tga", "ico", "qoi", "exr", "hdr",
- "pbm", "pgm", "ppm", "pam", "pfm", "dds", "fits", "fit", "fts", "dpx", "cin", "heic", "heif", "hif", "dng", "cr2", "cr3", "nef", "nrw", "arw", "pef",
- "orf", "rw2", "raf", "abr", "grd", "asl", "svg", "svgz", "aco", "ase", "af", "afdesign", "afphoto", "afpub",
+ "pcraft", "pdn", "ora", "xcf", "xcfgz", "gz", "kra", "krz", "psd", "psb", "psdt", "png", "jpg", "jpeg", "tif", "tiff", "webp", "gif", "bmp", "tga", "ico",
+ "qoi", "exr", "hdr", "pbm", "pgm", "ppm", "pam", "pfm", "dds", "fits", "fit", "fts", "dpx", "cin", "heic", "heif", "hif", "dng", "cr2", "cr3", "nef",
- "nrw", "arw", "pef", "orf", "rw2", "raf", "abr", "grd", "svg", "svgz", "aco", "ase", "af", "afdesign", "afphoto", "afpub",
++ "nrw", "arw", "pef", "orf", "rw2", "raf", "abr", "grd", "asl", "svg", "svgz", "aco", "ase", "af", "afdesign", "afphoto", "afpub",
];
const SVG_EXTS: &[&str] = &["svg", "svgz"];
const CANVAS_ID: &str = "photocraft_canvas";
diff --cc apps/photocraft/src/services.rs
index 082506e92,dbf93abab..57ecfdf4e
--- a/apps/photocraft/src/services.rs
+++ b/apps/photocraft/src/services.rs
@@@ -17,12 -17,12 +17,12 @@@ use std::sync::Arc
mod recovery_tests;
/// Everything File › Open reads: PhotoCraft, Photoshop, OpenRaster, Krita and Affinity documents, flat images, and
- /// Photoshop brushes (.abr), gradients (.grd), swatches (.aco, .ase) and keyboard shortcut sets
+ /// Photoshop brushes (.abr), gradients (.grd), layer styles (.asl), swatches (.aco, .ase) and keyboard shortcut sets
/// (.kys), which go to the preset libraries and Edit › Keyboard Shortcuts.
const OPEN_EXTS: &[&str] = &[
- "pcraft", "pdn", "ora", "kra", "krz", "psd", "psb", "psdt", "png", "jpg", "jpeg", "tif", "tiff", "webp", "gif", "bmp", "tga", "ico", "qoi", "exr", "hdr",
- "pbm", "pgm", "ppm", "pam", "pfm", "pcx", "dds", "xpm", "fits", "fit", "fts", "dpx", "cin", "heic", "heif", "hif", "dng", "cr2", "cr3", "nef", "nrw",
- "arw", "pef", "orf", "rw2", "raf", "abr", "grd", "asl", "svg", "svgz", "aco", "ase", "kys", "af", "afdesign", "afphoto", "afpub",
+ "pcraft", "pdn", "ora", "xcf", "xcfgz", "gz", "kra", "krz", "psd", "psb", "psdt", "png", "jpg", "jpeg", "tif", "tiff", "webp", "gif", "bmp", "tga", "ico",
+ "qoi", "exr", "hdr", "pbm", "pgm", "ppm", "pam", "pfm", "pcx", "dds", "xpm", "fits", "fit", "fts", "dpx", "cin", "heic", "heif", "hif", "dng", "cr2",
- "cr3", "nef", "nrw", "arw", "pef", "orf", "rw2", "raf", "abr", "grd", "svg", "svgz", "aco", "ase", "kys", "af", "afdesign", "afphoto", "afpub",
++ "cr3", "nef", "nrw", "arw", "pef", "orf", "rw2", "raf", "abr", "grd", "asl", "svg", "svgz", "aco", "ase", "kys", "af", "afdesign", "afphoto", "afpub",
];
const SVG_EXTS: &[&str] = &["svg", "svgz"];
diff --cc crates/ui-egui/src/i18n/cs.tsv
index 9f3ca51dd,d4c938b6c..97f7caf10
--- a/crates/ui-egui/src/i18n/cs.tsv
+++ b/crates/ui-egui/src/i18n/cs.tsv
@@@ -3884,6 -3856,10 +3884,14 @@@ navigator Zoom Zvětšen�
# DDS Options (#1327)
DDS Options Možnosti DDS
Generate Mipmaps Generovat mipmapy
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Adaptér GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Importovat styly…
+ Export Selected Styles… Exportovat vybrané styly…
+ Export Styles… Exportovat styly…
+ {file} is not a style library (.asl) {file} není knihovna stylů (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Importován {n} styl ze souboru {file}|Importovány {n} styly ze souboru {file}|Importováno {n} stylů ze souboru {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Exportován {n} styl do souboru {file}|Exportovány {n} styly do souboru {file}|Exportováno {n} stylů do souboru {file}
diff --cc crates/ui-egui/src/i18n/de.tsv
index c4c03454e,7c10b5f2b..8afe19529
--- a/crates/ui-egui/src/i18n/de.tsv
+++ b/crates/ui-egui/src/i18n/de.tsv
@@@ -3280,6 -3250,10 +3280,14 @@@ curves Smooth Glätte
DDS Options DDS-Optionen
Compression Komprimierung
Generate Mipmaps Mipmaps erzeugen
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU-Adapter
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Stile importieren…
+ Export Selected Styles… Ausgewählte Stile exportieren…
+ Export Styles… Stile exportieren…
+ {file} is not a style library (.asl) {file} ist keine Stilbibliothek (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {n} Stil aus {file} importiert|{n} Stile aus {file} importiert
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {n} Stil nach {file} exportiert|{n} Stile nach {file} exportiert
diff --cc crates/ui-egui/src/i18n/el.tsv
index 74ab59cba,4b28b5760..2da034c5d
--- a/crates/ui-egui/src/i18n/el.tsv
+++ b/crates/ui-egui/src/i18n/el.tsv
@@@ -3974,6 -3948,10 +3974,14 @@@ curves Smooth Εξομάλυνσ�
# DDS Options (#1327)
DDS Options Επιλογές DDS
Generate Mipmaps Δημιουργία mipmap
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Προσαρμογέας GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Εισαγωγή στιλ…
+ Export Selected Styles… Εξαγωγή επιλεγμένων στιλ…
+ Export Styles… Εξαγωγή στιλ…
+ {file} is not a style library (.asl) Το {file} δεν είναι βιβλιοθήκη στιλ (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Εισήχθη {n} στιλ από το {file}|Εισήχθησαν {n} στιλ από το {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Εξήχθη {n} στιλ στο {file}|Εξήχθησαν {n} στιλ στο {file}
diff --cc crates/ui-egui/src/i18n/es.tsv
index cbbbbc14f,5d059288a..0e8892775
--- a/crates/ui-egui/src/i18n/es.tsv
+++ b/crates/ui-egui/src/i18n/es.tsv
@@@ -4236,6 -4210,10 +4236,14 @@@ navigator Zoom Zoo
# DDS Options (#1327)
DDS Options Opciones de DDS
Generate Mipmaps Generar mipmaps
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Adaptador de GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Importar estilos…
+ Export Selected Styles… Exportar estilos seleccionados…
+ Export Styles… Exportar estilos…
+ {file} is not a style library (.asl) {file} no es una biblioteca de estilos (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Se importó {n} estilo de {file}|Se importaron {n} estilos de {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Se exportó {n} estilo a {file}|Se exportaron {n} estilos a {file}
diff --cc crates/ui-egui/src/i18n/fr.tsv
index e8164e967,65596b601..795349576
--- a/crates/ui-egui/src/i18n/fr.tsv
+++ b/crates/ui-egui/src/i18n/fr.tsv
@@@ -3284,6 -3257,10 +3284,14 @@@ curves Smooth Lisse
DDS Options Options DDS
Compression Compression
Generate Mipmaps Générer les mipmaps
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Adaptateur GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Importer des styles…
+ Export Selected Styles… Exporter les styles sélectionnés…
+ Export Styles… Exporter les styles…
+ {file} is not a style library (.asl) {file} n’est pas une bibliothèque de styles (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {n} style importé depuis {file}|{n} styles importés depuis {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {n} style exporté vers {file}|{n} styles exportés vers {file}
diff --cc crates/ui-egui/src/i18n/hu.tsv
index fe21a5fbf,5d0e74efc..0c83e8638
--- a/crates/ui-egui/src/i18n/hu.tsv
+++ b/crates/ui-egui/src/i18n/hu.tsv
@@@ -4190,6 -4169,8 +4192,12 @@@ cameraRaw Yellow Sárg
# DDS Options (#1327)
DDS Options DDS-beállítások
Generate Mipmaps Mipmapek létrehozása
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU-adapter
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Stílusok importálása…
+ Export Selected Styles… Kijelölt stílusok exportálása…
+ Export Styles… Stílusok exportálása…
+ {file} is not a style library (.asl) {file} nem stíluskönyvtár (.asl)
diff --cc crates/ui-egui/src/i18n/id.tsv
index 0feaf2839,5c6dca813..a42c91d8b
--- a/crates/ui-egui/src/i18n/id.tsv
+++ b/crates/ui-egui/src/i18n/id.tsv
@@@ -3271,6 -3244,10 +3271,14 @@@ curves Smooth Haluska
DDS Options Opsi DDS
Compression Kompresi
Generate Mipmaps Buat mipmap
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Adaptor GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Impor Gaya…
+ Export Selected Styles… Ekspor Gaya Terpilih…
+ Export Styles… Ekspor Gaya…
+ {file} is not a style library (.asl) {file} bukan pustaka gaya (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {n} gaya diimpor dari {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {n} gaya diekspor ke {file}
diff --cc crates/ui-egui/src/i18n/it.tsv
index 57b58861a,a2349f6b8..0500f613d
--- a/crates/ui-egui/src/i18n/it.tsv
+++ b/crates/ui-egui/src/i18n/it.tsv
@@@ -4391,6 -4365,10 +4391,14 @@@ shape Appearance Aspett
# DDS Options (#1327)
DDS Options Opzioni DDS
Generate Mipmaps Genera mipmap
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Adattatore GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Importa stili…
+ Export Selected Styles… Esporta stili selezionati…
+ Export Styles… Esporta stili…
+ {file} is not a style library (.asl) {file} non è una libreria di stili (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {n} stile importato da {file}|{n} stili importati da {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {n} stile esportato in {file}|{n} stili esportati in {file}
diff --cc crates/ui-egui/src/i18n/ja.tsv
index 28fe0ccc6,41e2662c6..e847d4b03
--- a/crates/ui-egui/src/i18n/ja.tsv
+++ b/crates/ui-egui/src/i18n/ja.tsv
@@@ -3952,6 -3926,10 +3952,14 @@@ curves Smooth スムー�
DDS Options DDS オプション
Compression 圧縮
Generate Mipmaps ミップマップを生成
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU アダプター
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… スタイルを読み込み…
+ Export Selected Styles… 選択したスタイルを書き出し…
+ Export Styles… スタイルを書き出し…
+ {file} is not a style library (.asl) {file} はスタイルライブラリ (.asl) ではありません
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {file} からスタイル {n} 個を読み込みました
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {file} にスタイル {n} 個を書き出しました
diff --cc crates/ui-egui/src/i18n/ko.tsv
index e9163eba8,86b9b5f96..7b718c2b7
--- a/crates/ui-egui/src/i18n/ko.tsv
+++ b/crates/ui-egui/src/i18n/ko.tsv
@@@ -3461,6 -3431,10 +3461,14 @@@ curves Smooth 매끄럽�
DDS Options DDS 옵션
Compression 압축
Generate Mipmaps 밉맵 생성
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU 어댑터
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… 스타일 가져오기…
+ Export Selected Styles… 선택한 스타일 내보내기…
+ Export Styles… 스타일 내보내기…
+ {file} is not a style library (.asl) {file}은(는) 스타일 라이브러리(.asl)가 아닙니다
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {file}에서 스타일 {n}개를 가져왔습니다
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} 스타일 {n}개를 {file}(으)로 내보냈습니다
diff --cc crates/ui-egui/src/i18n/nl.tsv
index 9b20a49de,1df590901..1633be51f
--- a/crates/ui-egui/src/i18n/nl.tsv
+++ b/crates/ui-egui/src/i18n/nl.tsv
@@@ -4034,6 -4008,10 +4034,14 @@@ curves Smooth Vloeiend make
# DDS Options (#1327)
DDS Options DDS-opties
Generate Mipmaps Mipmaps genereren
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU-adapter
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Stijlen importeren…
+ Export Selected Styles… Geselecteerde stijlen exporteren…
+ Export Styles… Stijlen exporteren…
+ {file} is not a style library (.asl) {file} is geen stijlbibliotheek (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {n} stijl geïmporteerd uit {file}|{n} stijlen geïmporteerd uit {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {n} stijl geëxporteerd naar {file}|{n} stijlen geëxporteerd naar {file}
diff --cc crates/ui-egui/src/i18n/pl.tsv
index b223c0cd2,854610ee9..dc6872d56
--- a/crates/ui-egui/src/i18n/pl.tsv
+++ b/crates/ui-egui/src/i18n/pl.tsv
@@@ -3874,6 -3848,10 +3874,14 @@@ curves Smooth Wygład�
DDS Options Opcje DDS
Compression Kompresja
Generate Mipmaps Generuj mipmapy
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Karta GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Importuj style…
+ Export Selected Styles… Eksportuj zaznaczone style…
+ Export Styles… Eksportuj style…
+ {file} is not a style library (.asl) {file} nie jest biblioteką stylów (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Zaimportowano {n} styl z {file}|Zaimportowano {n} style z {file}|Zaimportowano {n} stylów z {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Wyeksportowano {n} styl do {file}|Wyeksportowano {n} style do {file}|Wyeksportowano {n} stylów do {file}
diff --cc crates/ui-egui/src/i18n/pt-br.tsv
index 5319f4f74,f53c1d5c5..f7b602fb1
--- a/crates/ui-egui/src/i18n/pt-br.tsv
+++ b/crates/ui-egui/src/i18n/pt-br.tsv
@@@ -4064,6 -4038,10 +4064,14 @@@ layerLabel No Color Sem co
# DDS Options (#1327)
DDS Options Opções de DDS
Generate Mipmaps Gerar mipmaps
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Adaptador de GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Importar estilos…
+ Export Selected Styles… Exportar estilos selecionados…
+ Export Styles… Exportar estilos…
+ {file} is not a style library (.asl) {file} não é uma biblioteca de estilos (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {n} estilo importado de {file}|{n} estilos importados de {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {n} estilo exportado para {file}|{n} estilos exportados para {file}
diff --cc crates/ui-egui/src/i18n/ru.tsv
index fb0af355c,d9378623f..8750fec81
--- a/crates/ui-egui/src/i18n/ru.tsv
+++ b/crates/ui-egui/src/i18n/ru.tsv
@@@ -3251,6 -3223,10 +3251,14 @@@ curves Smooth Сгладит�
DDS Options Параметры DDS
Compression Сжатие
Generate Mipmaps Создать MIP-карты
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Адаптер GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Импортировать стили…
+ Export Selected Styles… Экспортировать выбранные стили…
+ Export Styles… Экспортировать стили…
+ {file} is not a style library (.asl) {file} не является библиотекой стилей (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Импортирован {n} стиль из {file}|Импортировано {n} стиля из {file}|Импортировано {n} стилей из {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Экспортирован {n} стиль в {file}|Экспортировано {n} стиля в {file}|Экспортировано {n} стилей в {file}
diff --cc crates/ui-egui/src/i18n/sr.tsv
index 2b02f33bc,09113a787..e51dd3b27
--- a/crates/ui-egui/src/i18n/sr.tsv
+++ b/crates/ui-egui/src/i18n/sr.tsv
@@@ -4344,6 -4321,10 +4344,14 @@@ shape Appearance Izgle
# DDS Options (#1327)
DDS Options DDS opcije
Generate Mipmaps Generiši mipmape
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU adapter
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Uvezi stilove…
+ Export Selected Styles… Izvezi izabrane stilove…
+ Export Styles… Izvezi stilove…
+ {file} is not a style library (.asl) {file} nije biblioteka stilova (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Uvezen je {n} stil iz {file}|Uvezena su {n} stila iz {file}|Uvezeno je {n} stilova iz {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Izvezen je {n} stil u {file}|Izvezena su {n} stila u {file}|Izvezeno je {n} stilova u {file}
diff --cc crates/ui-egui/src/i18n/tr.tsv
index d3f6faf4a,b188d94c9..c63aa6c60
--- a/crates/ui-egui/src/i18n/tr.tsv
+++ b/crates/ui-egui/src/i18n/tr.tsv
@@@ -4001,6 -3978,10 +4001,14 @@@ cameraData Lens Len
# DDS Options (#1327)
DDS Options DDS Seçenekleri
Generate Mipmaps Mipmap oluştur
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU bağdaştırıcısı
++
+ # Styles panel: Import / Export Styles (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} {file} dosyasından {n} stil içe aktarıldı
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} {n} stil {file} dosyasına dışa aktarıldı
+ Import Styles… Stilleri İçe Aktar…
+ Export Selected Styles… Seçili Stilleri Dışa Aktar…
+ Export Styles… Stilleri Dışa Aktar…
+ {file} is not a style library (.asl) {file} bir stil kitaplığı değil (.asl)
diff --cc crates/ui-egui/src/i18n/uk.tsv
index bc5e98c2a,99669bc80..da27436ca
--- a/crates/ui-egui/src/i18n/uk.tsv
+++ b/crates/ui-egui/src/i18n/uk.tsv
@@@ -3983,6 -3957,10 +3983,14 @@@ curves Smooth Згладит�
DDS Options Параметри DDS
Compression Стиснення
Generate Mipmaps Створити MIP-карти
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Адаптер GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Імпортувати стилі…
+ Export Selected Styles… Експортувати вибрані стилі…
+ Export Styles… Експортувати стилі…
+ {file} is not a style library (.asl) {file} не є бібліотекою стилів (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Імпортовано {n} стиль з {file}|Імпортовано {n} стилі з {file}|Імпортовано {n} стилів з {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Експортовано {n} стиль до {file}|Експортовано {n} стилі до {file}|Експортовано {n} стилів до {file}
diff --cc crates/ui-egui/src/i18n/vi.tsv
index efba5ce8c,4135ed517..5a58ba7b0
--- a/crates/ui-egui/src/i18n/vi.tsv
+++ b/crates/ui-egui/src/i18n/vi.tsv
@@@ -3763,6 -3736,10 +3763,14 @@@ curves Smooth Làm mượ
DDS Options Tùy chọn DDS
Compression Nén
Generate Mipmaps Tạo mipmap
+
+# Graphics Adapter preference (#1885)
+ GPU adapter Bộ điều hợp GPU
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… Nhập kiểu…
+ Export Selected Styles… Xuất các kiểu đã chọn…
+ Export Styles… Xuất kiểu…
+ {file} is not a style library (.asl) {file} không phải là thư viện kiểu (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} Đã nhập {n} kiểu từ {file}
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} Đã xuất {n} kiểu sang {file}
diff --cc crates/ui-egui/src/i18n/zh-hans.tsv
index f5f2aa37b,eec1b0514..96dca13ac
--- a/crates/ui-egui/src/i18n/zh-hans.tsv
+++ b/crates/ui-egui/src/i18n/zh-hans.tsv
@@@ -2905,6 -2873,10 +2905,14 @@@ curves Smooth 平�
DDS Options DDS 选项
Compression 压缩
Generate Mipmaps 生成 Mipmap
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU 适配器
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… 导入样式…
+ Export Selected Styles… 导出所选样式…
+ Export Styles… 导出样式…
+ {file} is not a style library (.asl) {file} 不是样式库 (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} 已从 {file} 导入 {n} 个样式
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} 已将 {n} 个样式导出到 {file}
diff --cc crates/ui-egui/src/i18n/zh-hant.tsv
index 0e81f6b4f,f00fd1cea..64d652877
--- a/crates/ui-egui/src/i18n/zh-hant.tsv
+++ b/crates/ui-egui/src/i18n/zh-hant.tsv
@@@ -2890,6 -2858,10 +2890,14 @@@ curves Smooth 平�
DDS Options DDS 選項
Compression 壓縮
Generate Mipmaps 產生 Mipmap
+
+# Graphics Adapter preference (#1885)
+ GPU adapter GPU 介面卡
++
+ # Styles panel: Import / Export Styles (.asl)
+ Import Styles… 匯入樣式…
+ Export Selected Styles… 匯出所選樣式…
+ Export Styles… 匯出樣式…
+ {file} is not a style library (.asl) {file} 不是樣式庫 (.asl)
+ @plural Imported {n} style from {file}|Imported {n} styles from {file} 已從 {file} 匯入 {n} 個樣式
+ @plural Exported {n} style to {file}|Exported {n} styles to {file} 已將 {n} 個樣式匯出至 {file}
diff --cc docs/file-format-parity.md
index c05bba49e,2d8b946e8..442a4bf10
--- a/docs/file-format-parity.md
+++ b/docs/file-format-parity.md
@@@ -1,6 -1,6 +1,6 @@@
# File-format parity
- > **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-15 · **Change:** minor (DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 49 filters (35 more: Pinch, Polar Coordinates, Ripple, Spherize, Twirl, Wave, ZigZag, Invert, Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: smart objects keep Photoshop's Cylinder warp through re-renders and saves, #4112; PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; earlier: CMYK Invert, Posterize and Threshold on the inks; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding) · **Target:** Adobe Photoshop 2026
-> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-20 · **Change:** minor (`.asl` layer style libraries read and written, #1051; earlier: DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); earlier: PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; earlier: CMYK Invert, Posterize and Threshold on the inks; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding) · **Target:** Adobe Photoshop 2026
++> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-20 · **Change:** minor (`.asl` layer style libraries read and written, #1051; DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 49 filters (35 more: Pinch, Polar Coordinates, Ripple, Spherize, Twirl, Wave, ZigZag, Invert, Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: smart objects keep Photoshop's Cylinder warp through re-renders and saves, #4112; PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; earlier: CMYK Invert, Posterize and Threshold on the inks; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding) · **Target:** Adobe Photoshop 2026
Every format Photoshop 2026 (27.11.0) reads or writes, with PhotoCraft's support, fidelity and
tests. Photoshop's list comes from its `Info.plist` `CFBundleDocumentTypes`, the PiPL read/write
diff --cc docs/gaps.md
index 522d9df6b,4bc73154c..426331153
--- a/docs/gaps.md
+++ b/docs/gaps.md
@@@ -1,6 -1,6 +1,6 @@@
# Where PhotoCraft falls short of Photoshop
- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-18 · **Change:** minor (G8: area type (TYPE-218-10); G1: smart objects keep Photoshop's Cylinder warp, #4112; G9: Preferences › File Handling › Save in Background takes effect, #6207, 24 of 169 preferences do nothing; G7: Content-Aware Move previews every selection the command takes, coarse then exact, TOOL-213-4 done, #6680; G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7; G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G2: a cancelled 24 MP Gaussian Blur job stops in at most 44 ms, P25 under its 200 ms budget, #6205; G1: generated large-file fixtures, a 4.38 GB PSB opens on Windows through io, FILE-216-2 done, #5107; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-20 · **Change:** minor (G10: `.asl` style libraries landed, #1051; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026
++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-20 · **Change:** minor (G10: `.asl` style libraries landed, #1051; G8: area type (TYPE-218-10); G1: smart objects keep Photoshop's Cylinder warp, #4112; G9: Preferences › File Handling › Save in Background takes effect, #6207, 24 of 169 preferences do nothing; G7: Content-Aware Move previews every selection the command takes, coarse then exact, TOOL-213-4 done, #6680; G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7; G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G2: a cancelled 24 MP Gaussian Blur job stops in at most 44 ms, P25 under its 200 ms budget, #6205; G1: generated large-file fixtures, a 4.38 GB PSB opens on Windows through io, FILE-216-2 done, #5107; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026
Every known shortfall against Photoshop 2026 (27.11.0), one entry each, ranked by user impact
on the way to beta. This is the work list agents pick from: take the highest-ranked entry that
@@@ -290,14 -270,8 +290,15 @@@ what an agent can't finish alone
| Date | Change | Summary |
|---|---|---|
+| 2026-10-15 | minor | G1 / #5972 A1: render only provably constant-RGB `GdFl` noise fills; variable noise synthesis remains open |
+ | 2026-10-20 | minor | G10: `.asl` layer style library import and export landed (#1051) |
| 2026-10-18 | minor | G9: with no selection, Copy takes fill and adjustment layers whole and Paste recreates them (#2344); UI-217-23 stays partial (a single pixel layer copies its pixels only); estimate unchanged |
+| 2026-10-15 | minor | G2: a cancelled 24 MP Gaussian Blur job stops within 44 ms max (P25, budget 200 ms; was about 400 ms), the uncancelled job about 40% faster; #6205 |
+| 2026-10-15 | minor | G9: Animated Zoom preference takes effect (hold the Zoom tool to zoom continuously, #6210); prefs that do nothing 25 of 166; no estimate changed |
+| 2026-10-16 | minor | G7: Content-Aware Move's live preview covers every selection the command takes (over 256 × 256: a coarse result solved scaled down, then the exact one); TOOL-213-4 done (#6680) |
+| 2026-10-15 | minor | G9: Save in Background off saves in the foreground under a modal progress dialog (#6207); preferences that do nothing 25 → 24 of 169 |
+| 2026-10-14 | minor | G1: PSD smart objects keep Transform Warp's Cylinder through Replace Contents, Relink, Edit Contents and re-saves (#4112) |
+| 2026-10-15 | minor | G8: area type: Type tool click inside a closed path or shape wraps text inside it (TYPE-218-10); Type tool click on a path's outline (TYPE-218-1); Type scorecard 5 done, 4 partial, 1 missing |
| 2026-10-14 | minor | G1: a PSD smart object's filter mask shows when the file opens (Photoshop stores the filtered pixels unmasked); export stores them that way too; Photoshop-oracle floor 185 → 188 of 258 |
| 2026-10-13 | minor | G14: D90 image area measured (4288 × 2848 at (10, 10)); gap remains open |
| 2026-10-14 | minor | Corpus floors raised to the measured results of the CMYK, Lab, 32-bit, Levels, Threshold, Posterize, feather and pass-through fixes landed together: Photoshop-authored 165 → 185 of 258, io 146 → 148 of 170, psd-tools 242 → 249 of 309 |