LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge branch 'main' into worktree-agent-aecd35c3421bad4ae
Brandon Thomase1b205589758
diff --cc crates/ui-egui/src/panels/edit.rsindex 7592ac197,239316a6f..7e98fe7d3--- a/crates/ui-egui/src/panels/edit.rs+++ b/crates/ui-egui/src/panels/edit.rs@@@ -282,60 -304,7 +302,60 @@@ pub fn show(app: &mut LightcraftApp, uiui.add_space(40.0);}+/// The profile dropdown: Favorites, Recent, one submenu per group, then favourite toggle and+/// Browse….+fn profile_menu(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSettings) {+ use lightcraft_engine::presets::{PROFILES, profile, profile_groups};+ let t = Tokens::get(ui.ctx());+ ui.set_min_width(200.0);+ let cur = d.profile.id.as_str();+ let mut pick: Option<&'static str> = None;+ let item = |ui: &mut egui::Ui, key: &str, p: &'static lightcraft_engine::presets::ProfileInfo, pick: &mut Option<&'static str>| {+ let r = ui.selectable_label(p.id == cur, p.name);+ register(ui.ctx(), format!("profileMenu:{key}:{}", p.id), r.rect);+ if r.clicked() {+ *pick = Some(p.id);+ }+ };+ let heading = |ui: &mut egui::Ui, s: &str| {+ ui.label(egui::RichText::new(s).font(t.semibold(11.5)).color(t.text_dim));+ };+ for (title, key, ids) in [("Favorites", "fav", app.session.profile_favorites.clone()), ("Recent", "recent", app.session.profile_recent.clone())] {+ let list: Vec<_> = ids.iter().filter_map(|id| profile(id)).collect();+ if list.is_empty() {+ continue;+ }+ heading(ui, title);+ for p in list {+ item(ui, key, p, &mut pick);+ }+ ui.separator();+ }+ for g in profile_groups() {+ let r = ui.menu_button(g, |ui| {+ ui.set_min_width(170.0);+ for p in PROFILES.iter().filter(|p| p.group == g) {+ item(ui, "group", p, &mut pick);+ }+ });+ register(ui.ctx(), format!("profileMenu:groupMenu:{g}"), r.response.rect);+ }+ ui.separator();+ if let Some(p) = profile(cur) {+ let fav = app.session.profile_favorites.iter().any(|f| f == p.id);+ let label = if fav { format!("Remove “{}” from Favorites", p.name) } else { format!("Add “{}” to Favorites", p.name) };+ let r = ui.button(label);+ register(ui.ctx(), "profileMenu:toggleFavorite", r.rect);+ if r.clicked() {+ let _ = app.run("profile.favorite", json!({"id": p.id}));+ }+ }+ if let Some(id) = pick {+ let _ = app.run("develop.profile", json!({"id": id}));+ }+}+- fn sub_title(ui: &mut egui::Ui, title: &str) {+ pub fn sub_title(ui: &mut egui::Ui, title: &str) {let t = Tokens::get(ui.ctx());let (r, _) = ui.allocate_exact_size(vec2(ui.available_width(), 30.0), Sense::hover());ui.painter().text(pos2(r.left() + 24.0, r.center().y + 4.0), Align2::LEFT_CENTER, title, t.semibold(13.0), t.text_label);diff --cc docs/parity.mdindex 301bb7eb5,97cada6d8..1263f9e54--- a/docs/parity.md+++ b/docs/parity.md@@@ -22,12 -22,12 +22,12 @@@ and prints the summary; `cargo xtask pa| Section | ✅ | 🟡 | ⬜ | 🚫 | P0 done | P1 done ||---|---:|---:|---:|---:|---:|---:|| A. Import (IMP) | 2 | 4 | 7 | 1 | 1/4 (25%) | 1/4 (25%) |- | B. Library management (LIB) | 9 | 4 | 12 | 2 | 7/9 (78%) | 1/9 (11%) |- | C. Views & navigation (VIEW) | 7 | 2 | 8 | 0 | 7/9 (78%) | 0/4 (0%) |- | D. Search & filter (FILT) | 2 | 7 | 4 | 0 | 2/4 (50%) | 0/4 (0%) |+ | B. Library management (LIB) | 12 | 4 | 9 | 2 | 7/9 (78%) | 4/9 (44%) |+ | C. Views & navigation (VIEW) | 9 | 2 | 6 | 0 | 7/9 (78%) | 1/4 (25%) |+ | D. Search & filter (FILT) | 7 | 2 | 4 | 0 | 4/4 (100%) | 3/4 (75%) || E. Metadata (META) | 2 | 2 | 2 | 0 | 2/2 (100%) | 0/2 (0%) || F. Edit panel — global adjustments (EDIT) | 36 | 2 | 10 | 1 | 28/28 (100%) | 8/14 (57%) |-| G. Profiles (PROF) | 3 | 1 | 6 | 0 | 2/3 (67%) | 1/3 (33%) |+| G. Profiles (PROF) | 4 | 1 | 5 | 0 | 2/3 (67%) | 1/3 (33%) || H. Crop & rotate (CROP) | 7 | 2 | 0 | 1 | 6/6 (100%) | 1/3 (33%) || I. Remove / healing (REM) | 3 | 3 | 4 | 2 | 2/4 (50%) | 1/3 (33%) || J. Red eye (EYE) | 0 | 0 | 2 | 0 | — | 0/1 (0%) |@@@ -45,10 -45,10 +45,10 @@@| V. Preferences (PREF) | 0 | 3 | 5 | 3 | 0/1 (0%) | 0/4 (0%) || W. Cloud & AI infrastructure (CLOUD / AI) | 0 | 1 | 1 | 2 | — | — || X. Cross-cutting behaviours (BEHAV) | 10 | 2 | 5 | 1 | 7/8 (88%) | 3/5 (60%) |- | Y. Menus | 42 | 19 | 24 | 8 | 37/47 (79%) | 3/23 (13%) |- | Z. Keyboard shortcuts (desktop) | 45 | 16 | 19 | 1 | 39/52 (75%) | 6/23 (26%) |- | Lightroom Classic extras | 1 | 17 | 61 | 9 | — | 1/21 (5%) |- | **Total** | 191 | 107 | 202 | 37 | 150/198 (76%) | 34/144 (24%) |+ | Y. Menus | 46 | 18 | 21 | 8 | 37/47 (79%) | 7/23 (30%) |+ | Z. Keyboard shortcuts (desktop) | 46 | 16 | 18 | 1 | 39/52 (75%) | 7/23 (30%) |+ | Lightroom Classic extras | 4 | 19 | 56 | 9 | — | 3/21 (14%) |-| **Total** | 208 | 103 | 189 | 37 | 152/198 (77%) | 48/144 (33%) |++| **Total** | 209 | 103 | 188 | 37 | 152/198 (77%) | 48/144 (33%) |<!-- /parity:summary -->## Top gaps