PhotoCraft: An open-source, photo editor written by scratch in pure Rust
feat(adjust): Color Lookup lists the LUTs in a Preferences folder (#6558)
Juan Antonio Redondoc6943482b5af
diff --git a/crates/automation/src/workspace.rs b/crates/automation/src/workspace.rsindex 99dedac77..3954095d4 100644--- a/crates/automation/src/workspace.rs+++ b/crates/automation/src/workspace.rs@@ -374,8 +374,11 @@ fn preferences_may_grant_ambient_paths(id: &str, params: &Value) -> bool {fn preference_uses_ambient_filesystem(path: &str) -> bool {// The engine skips empty segments (`.scriptEvents.enabled` sets `scriptEvents.enabled`), so// judge the first non-empty one; no segment at all is the whole-preferences update.- let Some(section) = path.split('.').find(|segment| !segment.is_empty()) else { return true };+ let mut segments = path.split('.').filter(|segment| !segment.is_empty());+ let Some(section) = segments.next() else { return true };+ // File Handling's LUT folder (#6558) is listed from disk; the rest of that section is not.matches!(section, "colorSettings" | "scriptEvents" | "historyLog" | "plugIns" | "scratchDisks")+ || (section == "fileHandling" && segments.next().is_none_or(|key| key == "lutFolder"))}fn command_uses_ambient_path(id: &str, params: &Value) -> bool {@@ -847,6 +850,8 @@ mod tests {"historyLog.filePath",".historyLog.filePath","plugIns.additionalPluginsFolder",+ "fileHandling.lutFolder",+ "fileHandling","scratchDisks.disks",".","..historyLog.filePath",@@ -857,6 +862,7 @@ mod tests {authorize_engine_command("prefs.set", &serde_json::json!({"values": {"interface.language": "fr", "historyLog.filePath": "/outside/log"}})).is_err());assert!(authorize_engine_command("prefs.set", &serde_json::json!({"path": "interface.language", "value": "fr"})).is_ok());+ assert!(authorize_engine_command("prefs.set", &serde_json::json!({"path": "fileHandling.autosave", "value": false})).is_ok());}#[test]diff --git a/crates/engine/src/adjust_cmds.rs b/crates/engine/src/adjust_cmds.rsindex 7e3b05b44..accafb2bc 100644--- a/crates/engine/src/adjust_cmds.rs+++ b/crates/engine/src/adjust_cmds.rs@@ -168,6 +168,36 @@ fn base_name(path: &str) -> String {path.rsplit(['/', '\\']).next().unwrap_or(path).to_string()}+/// Most LUT files [`folder_luts`] lists.+const MAX_FOLDER_LUTS: usize = 500;++/// The `.cube`, `.3dl` and `.look` files directly in `dir`, as (file name, path) sorted by name,+/// for Color Lookup's dropdown (Preferences › File Handling › LUT Folder, #6558). An empty,+/// missing or unreadable folder lists nothing; hidden files and subfolders are skipped.+#[cfg(not(target_arch = "wasm32"))]+pub fn folder_luts(dir: &str) -> Vec<(String, String)> {+ let dir = dir.trim();+ let Some(entries) = (!dir.is_empty()).then(|| std::fs::read_dir(dir).ok()).flatten() else { return Vec::new() };+ let mut out: Vec<(String, String)> = entries+ .flatten()+ .filter_map(|e| {+ let name = e.file_name().into_string().ok()?;+ let ext = name.rsplit_once('.')?.1.to_ascii_lowercase();+ let path = e.path();+ (!name.starts_with('.') && matches!(ext.as_str(), "cube" | "3dl" | "look") && path.is_file()).then_some((name, path.to_str()?.to_string()))+ })+ .collect();+ out.sort_by_key(|(name, _)| name.to_lowercase());+ out.truncate(MAX_FOLDER_LUTS);+ out+}++/// No file system on the web: a LUT folder lists nothing there.+#[cfg(target_arch = "wasm32")]+pub fn folder_luts(_: &str) -> Vec<(String, String)> {+ Vec::new()+}+#[cfg(not(target_arch = "wasm32"))]fn read_file(path: &str) -> Option<Vec<u8>> {std::fs::read(path).ok()diff --git a/crates/engine/src/adjust_cmds/tests.rs b/crates/engine/src/adjust_cmds/tests.rsindex 1dc0c8865..0d9526604 100644--- a/crates/engine/src/adjust_cmds/tests.rs+++ b/crates/engine/src/adjust_cmds/tests.rs@@ -731,3 +731,17 @@ fn invert_turns_the_black_of_quick_mask_and_alpha_channels_white() {}}}++/// #6558: a LUT folder lists its LUT files by name, case-insensitively, and nothing else.+#[test]+fn folder_luts_lists_lut_files_by_name() {+ let dir = tempfile::tempdir().unwrap();+ for f in ["b.cube", "A.3DL", "c.look", "notes.txt", ".hidden.cube", "noext"] {+ std::fs::write(dir.path().join(f), "LUT_3D_SIZE 2\n").unwrap();+ }+ std::fs::create_dir(dir.path().join("sub.cube")).unwrap();+ let names: Vec<_> = folder_luts(dir.path().to_str().unwrap()).into_iter().map(|(name, _)| name).collect();+ assert_eq!(names, ["A.3DL", "b.cube", "c.look"]);+ assert!(folder_luts("").is_empty());+ assert!(folder_luts(dir.path().join("missing").to_str().unwrap()).is_empty());+}diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rsindex ed8b7f148..b82db268c 100644--- a/crates/engine/src/prefs.rs+++ b/crates/engine/src/prefs.rs@@ -463,6 +463,9 @@ pub struct FileHandling {pub recent_file_count: u32,/// Most recently opened files, newest first (File › Open Recent).pub recent_files: Vec<String>,+ /// A folder whose `.cube`, `.3dl` and `.look` files Color Lookup lists under its built-in+ /// looks (native only, #6558). Empty lists none.+ pub lut_folder: String,}impl Default for FileHandling {@@ -481,6 +484,7 @@ impl Default for FileHandling {rasterize_svg_groups_deeper_than: photocraft_doc::MAX_GROUP_DEPTH as u32,recent_file_count: 20,recent_files: Vec::new(),+ lut_folder: String::new(),}}}diff --git a/crates/ui-egui/src/adjust_ui.rs b/crates/ui-egui/src/adjust_ui.rsindex b713e9104..2492da68f 100644--- a/crates/ui-egui/src/adjust_ui.rs+++ b/crates/ui-egui/src/adjust_ui.rs@@ -90,14 +90,55 @@ fn browse_color_lookup(app: &mut PhotocraftApp, layer: LayerId) -> Result<Value,})}+/// Dropdown key prefix of a LUT listed from the LUT folder; the rest of the key is its path.+const FOLDER_LUT: &str = "file:";++/// The LUT folder's files (Preferences › File Handling › LUT Folder, #6558), re-read at most+/// every couple of seconds rather than every frame.+fn folder_luts(app: &PhotocraftApp, ctx: &egui::Context) -> Vec<(String, String)> {+ type Cached = (String, f64, Vec<(String, String)>);+ let folder = app.session.prefs().file_handling.lut_folder.clone();+ let now = ctx.input(|input| input.time);+ let key = egui::Id::new("color-lookup-folder");+ if let Some((cached, at, luts)) = ctx.data(|data| data.get_temp::<Cached>(key))+ && cached == folder+ && now - at < 2.0+ {+ return luts;+ }+ let luts = photocraft_engine::adjust_cmds::folder_luts(&folder);+ ctx.data_mut(|data| data.insert_temp::<Cached>(key, (folder, now, luts.clone())));+ luts+}++/// The dropdown key for the current look: a built-in id, a LUT folder file, `none` or `custom`.+fn current_lookup(name: &str, has_lut: bool, folder: &[(String, String)]) -> String {+ if !has_lut {+ return "none".into();+ }+ if let Some((id, _)) = photocraft_engine::adjust_cmds::LOOKS.iter().find(|b| b.1 == name) {+ return id.to_string();+ }+ folder.iter().find(|(file, _)| file == name).map_or_else(|| "custom".into(), |(_, path)| format!("{FOLDER_LUT}{path}"))+}++/// `layer.setAdjustment` params for a dropdown key: a folder file is read and embedded like+/// Load 3D LUT… does; anything else is a built-in id or `none`.+fn lookup_params(key: &str) -> Value {+ match key.strip_prefix(FOLDER_LUT) {+ Some(path) => json!({"file": path}),+ None => json!({"lut": key}),+ }+}+pub fn color_lookup_editor(app: &mut PhotocraftApp, ui: &mut egui::Ui, id: LayerId, adj: &Adjustment) {let t = Tokens::get(ui.ctx());let Adjustment::ColorLookup { name, lut, size, tetrahedral, dither } = adj else {return;};let builtins = photocraft_engine::adjust_cmds::LOOKS;- let current =- if lut.is_none() { "none".to_string() } else { builtins.iter().find(|b| b.1 == name).map_or_else(|| "custom".to_string(), |b| b.0.to_string()) };+ let folder = folder_luts(app, ui.ctx());+ let current = current_lookup(name, lut.is_some(), &folder);let current = app.live_adjust.as_ref()@@ -108,6 +149,7 @@ pub fn color_lookup_editor(app: &mut PhotocraftApp, ui: &mut egui::Ui, id: Layerlet custom_label = format!("{name} ({size}³)");let mut opts: Vec<(String, &str)> = vec![("load".into(), tl!("Load 3D LUT…")), ("none".into(), tl!("None"))];opts.extend(builtins.iter().map(|(id, label)| (id.to_string(), *label)));+ opts.extend(folder.iter().map(|(file, path)| (format!("{FOLDER_LUT}{path}"), file.as_str())));if current == "custom" {opts.push(("custom".into(), custom_label.as_str()));}@@ -127,14 +169,16 @@ pub fn color_lookup_editor(app: &mut PhotocraftApp, ui: &mut egui::Ui, id: Layerlet (chosen, _) = widgets::dropdown_wheel_hovered(ui, &format!("clrl-{}", id.0), &mut sel, &opts, 170.0);if !chosen.is_empty() {if cycle_input {- if sel != "load" && sel != "custom" {+ // ponytail: wheel previews cover the built-ins only; a folder LUT would be re-read+ // from disk on every step. Pick it with a click.+ if sel != "load" && sel != "custom" && !sel.starts_with(FOLDER_LUT) {app.live_adjust = Some((id, json!({"lut": sel})));cycling_preview = true;}} else if sel == "load" {browse = true;} else if sel != current && sel != "custom" {- params = Some(json!({"lut": sel}));+ params = Some(lookup_params(&sel));}}});@@ -219,6 +263,35 @@ mod lookup_picker_tests {);}+ /// #6558: a LUT folder file is offered by name, and picking it embeds it.+ #[test]+ fn lut_folder_files_are_offered_and_embedded() {+ let dir = std::env::temp_dir().join(format!("pc-lut-folder-{}", std::process::id()));+ std::fs::create_dir_all(&dir).unwrap();+ let path = dir.join("film.cube");+ std::fs::write(&path, CUBE).unwrap();+ let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default());+ app.run("prefs.set", json!({"path": "fileHandling.lutFolder", "value": dir.to_str().unwrap()})).unwrap();+ let folder = folder_luts(&app, &egui::Context::default());+ let key = format!("{FOLDER_LUT}{}", path.to_str().unwrap());+ assert_eq!(folder, [("film.cube".to_string(), path.to_str().unwrap().to_string())]);+ app.run("file.new", json!({"width": 16, "height": 12})).unwrap();+ let layer = app.run("layer.newAdjustmentLayer.colorLookup", json!({})).unwrap()["layer"].as_u64().unwrap();+ let mut p = lookup_params(&key);+ p["layer"] = json!(layer);+ app.run("layer.setAdjustment", p).unwrap();+ let photocraft_doc::LayerContent::Adjustment(Adjustment::ColorLookup { name, lut, .. }) =+ &app.session.active().unwrap().doc.layer(LayerId(layer)).unwrap().content+ else {+ panic!("not a Color Lookup layer")+ };+ assert!(lut.is_some());+ assert_eq!(current_lookup(name, true, &folder), key);+ assert_eq!(current_lookup(name, true, &[]), "custom");+ assert_eq!(lookup_params("none"), json!({"lut": "none"}));+ let _ = std::fs::remove_dir_all(&dir);+ }+#[test]fn invalid_lut_does_not_modify_the_existing_adjustment() {let (dialog, _) = file_dialog::fake(vec![Some(FileDialogAnswer::Contents("broken.cube".into(), b"invalid".to_vec()))]);diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex 15879f60d..54a8a10ab 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -2007,6 +2007,7 @@Quick export format Formát rychlého exportuQuick export location Umístění rychlého exportuRecent file count Počet nedávných souborů+ LUT folder Složka LUTRecent files Nedávné souboryRecent fonts Nedávná písmaRecover on launch Obnovit při spuštěnídiff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex eb3ca7794..832500b35 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -1981,6 +1981,7 @@Quick export format Schnellexport-FormatQuick export location Schnellexport-ZielRecent file count Anzahl zuletzt geöffneter Dateien+ LUT folder LUT-OrdnerRecent files Zuletzt geöffnete DateienRecent fonts Zuletzt verwendete SchriftenRecover on launch Beim Start wiederherstellendiff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex bac53b53d..e47b49562 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -2897,6 +2897,7 @@Raw Data Ακατέργαστα δεδομέναRaw Defaults Προεπιλογές RAWRecent file count Αριθμός πρόσφατων αρχείων+ LUT folder Φάκελος LUTRecent files Πρόσφατα αρχείαRecent fonts Πρόσφατες γραμματοσειρέςReconstruct Ανακατασκευήdiff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 8629fc3fd..f7a30b357 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -1995,6 +1995,7 @@Quick export format Formato de exportación rápidaQuick export location Ubicación de exportación rápidaRecent file count Número de archivos recientes+ LUT folder Carpeta de LUTRecent files Archivos recientesRecent fonts Fuentes recientesRecover on launch Recuperar al iniciardiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex fad669a4b..c1abdf8aa 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -1964,6 +1964,7 @@Quick export format Format d'exportation rapideQuick export location Emplacement d'exportation rapideRecent file count Nombre de fichiers récents+ LUT folder Dossier LUTRecent files Fichiers récentsRecent fonts Polices récentesRecover on launch Récupérer au démarragediff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex c066f4271..7405aef68 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -3476,6 +3476,7 @@ cameraRaw Yellow SárgaRandom VéletlenszerűRasterize svg groups deeper than SVG-csoportok raszterizálása ennél mélyebb szintenRecent file count Legutóbbi fájlok száma+ LUT folder LUT-mappaRecent files Legutóbbi fájlokRecent Files Legutóbbi fájlokRecent fonts Legutóbbi betűtípusokdiff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 9e0012bd6..733e2b7b8 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -1958,6 +1958,7 @@Quick export format Format ekspor cepatQuick export location Lokasi ekspor cepatRecent file count Jumlah berkas terbaru+ LUT folder Folder LUTRecent files Berkas terbaruRecent fonts Font terbaruRecover on launch Pulihkan saat dibukadiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex fe8d4cf8d..b1858ec83 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -1989,6 +1989,7 @@Quick export format Formato esportazione rapidaQuick export location Posizione esportazione rapidaRecent file count Conteggio file recenti+ LUT folder Cartella LUTRecent files File recentiRecent fonts Font recentiRecover on launch Recupera all'avviodiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex 9b121c4c9..9b8cdf95d 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -1991,6 +1991,7 @@Quick export format クイック書き出しの形式Quick export location クイック書き出しの保存先Recent file count 最近使ったファイルの数+ LUT folder LUT フォルダーRecent files 最近使ったファイルRecent fonts 最近使ったフォントRecover on launch 起動時に復元diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex dc4bf58c9..8c27cad05 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -1959,6 +1959,7 @@Quick export format 빠른 내보내기 형식Quick export location 빠른 내보내기 위치Recent file count 최근 파일 수+ LUT folder LUT 폴더Recent files 최근 파일Recent fonts 최근 글꼴Recover on launch 시작 시 복구diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex 7104d69ed..d1e29b52e 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -1963,6 +1963,7 @@Quick export format Formaat snel exporterenQuick export location Locatie snel exporterenRecent file count Aantal recente bestanden+ LUT folder LUT-mapRecent files Recente bestandenRecent fonts Recente lettertypenRecover on launch Herstellen bij opstartendiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 8abed62ba..064f2a0ee 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -1984,6 +1984,7 @@Quick export format Format szybkiego eksportuQuick export location Lokalizacja szybkiego eksportuRecent file count Liczba ostatnich plików+ LUT folder Folder LUTRecent files Ostatnie plikiRecent fonts Ostatnie czcionkiRecover on launch Odzyskaj przy uruchomieniudiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex b21564e68..ac3e7ab64 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -1958,6 +1958,7 @@Quick export format Formato da exportação rápidaQuick export location Local da exportação rápidaRecent file count Número de arquivos recentes+ LUT folder Pasta de LUTsRecent files Arquivos recentesRecent fonts Fontes recentesRecover on launch Recuperar ao iniciardiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex ff6fc08de..d85f984f1 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -2419,6 +2419,7 @@Quick export format Формат быстрого экспортаQuick export location Расположение быстрого экспортаRecent file count Число недавних файлов+ LUT folder Папка LUTRecent files Недавние файлыRecent fonts Недавние шрифтыRecover on launch Восстановление при запускеdiff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsvindex 9a1ceff63..f4ddd1316 100644--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@ -1942,6 +1942,7 @@Quick export format Format brzog izvozaQuick export location Lokacija brzog izvozaRecent file count Broj nedavnih datoteka+ LUT folder Fascikla LUTRecent files Nedavne datotekeRecent fonts Nedavni fontoviRecover on launch Oporavi pri pokretanjudiff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex def688abc..b01127d9f 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -1939,6 +1939,7 @@Quick export format Hızlı dışa aktarma formatıQuick export location Hızlı dışa aktarma konumuRecent file count Son dosya sayısı+ LUT folder LUT klasörüRecent files Son dosyalarRecent fonts En yeni yazı tipleriRecover on launch Başlatıldığında kurtardiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex e28ea0008..9570ff5a2 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -2391,6 +2391,7 @@Quick export format Формат швидкого експортуQuick export location Розташування швидкого експортуRecent file count Кількість нещодавніх файлів+ LUT folder Папка LUTRecent files Нещодавні файлиRecent fonts Нещодавні шрифтиRecover on launch Відновлювати під час запускуdiff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex 503cc1006..017fe17d7 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -1502,6 +1502,7 @@ cameraRaw Shadows Vùng tốiQuick export format Định dạng xuất nhanhQuick export location Vị trí xuất nhanhRecent file count Số tệp gần đây+ LUT folder Thư mục LUTRecent files Tệp gần đâyRecover on launch Khôi phục khi khởi chạyRemember workspace changes Ghi nhớ thay đổi không gian làm việcdiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex a030a8885..fa5516b21 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2007,6 +2007,7 @@Quick export format 快速导出格式Quick export location 快速导出位置Recent file count 最近使用的文件数量+ LUT folder LUT 文件夹Recent files 最近使用的文件Recent fonts 最近使用的字体Recover on launch 启动时恢复diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 25a05a182..d6d50d602 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2000,6 +2000,7 @@Quick export format 快速匯出格式Quick export location 快速匯出位置Recent file count 最近檔案數量+ LUT folder LUT 資料夾Recent files 最近檔案Recent fonts 最近使用的字體Recover on launch 啟動時復原diff --git a/crates/ui-egui/src/prefs_ui.rs b/crates/ui-egui/src/prefs_ui.rsindex 5cd2e547d..79674da4e 100644--- a/crates/ui-egui/src/prefs_ui.rs+++ b/crates/ui-egui/src/prefs_ui.rs@@ -1175,7 +1175,13 @@ fn humanize(key: &str) -> String {s.push(ch);}}- s.replace("Psd", "PSD").replace("Gpu", "GPU").replace("Ui ", "UI ").replace("Mb", "(MB)").replace("Exif", "EXIF").replace("Hud", "HUD")+ s.replace("Psd", "PSD")+ .replace("Gpu", "GPU")+ .replace("Ui ", "UI ")+ .replace("Mb", "(MB)")+ .replace("Exif", "EXIF")+ .replace("Hud", "HUD")+ .replace("Lut ", "LUT ")}fn choice_label(v: &str) -> String {