Repository navigation
Conversation
Icons: before and afterContact sheets from Before (
|
…Lucide, ISC) Port of upstream PR #1104 (mattsivak): Lucide paths parsed once and cached, round line ends, one mask-kind icon table, RedEye / Palette and per-kind mask icons, the redrawn star, picker, gear, activity, mask, linear, cloud, brush, filmstrip, reject flag, crop, eye, bell, presets and versions. Fork changes: dac_* names, brand-neutral NOTICE line, and the fork-only grid badge for rotated photos uses RotateDrag (#1104 drops the old Rotate icon). UPSTREAM-PR: storytold/lightcraft#1104 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…and the mask actions (#972) Port of upstream PR #1164 (stacked on #1104). Crop: chain-link aspect lock, one row of rotate / flip / swap / reset icons, ruler (Straighten Tool), wand (Auto), overlay choices as icon segments drawn from the crop guides. Masks: add / subtract / intersect / invert and +/- as icons. Upright modes stay text. Every icon keeps its `button:<id>`, command and accessible name; hover shows the label plus the command's current shortcut (`icon_button_named`, `command_tooltip`, `icon_segmented`). Two new strings in all nine catalogs. Fork changes: dac_* / DacApp names; the rotated-photo grid badge uses the new RotateRight icon. UPSTREAM-PR: storytold/lightcraft#1164 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Marked ready. Verification on a second macOS machine at
|
FredApps
left a comment
There was a problem hiding this comment.
Reviewed and tested at f94de12 on Linux (ui-egui and pipeline tests, see below).
The licensing is handled carefully:
- The ISC notice is in
NOTICEandassets/licenses/ISC-Lucide.txt. - The
ATTRIBUTION.mdrow lists the Lucide-derived arms by name, and eachlucide!arm is commented with its Lucide source. - CLAUDE.md now states the rule (never Adobe, never GPL/LGPL).
The path reader never panicking on fuzzed input, and Icon::ALL coming from one macro list, are good safeguards.
Comments:
- Attribution kept in sync by hand: the list in
assets/ATTRIBUTION.mdhas to be kept in step with thelucide!arms manually. A small test, or acargo xtask assetscheck, that compares the arms'// Lucidecomments with the attribution row would keep the next added icon from being missed. - Depth and Luminance: the arm commented "as Lucide
contrast, filled" (icons.rs:693) is drawn by hand, andlayers(icons.rs:698) is alucide!arm. Please check that the attribution's "Depth" entry points to thelayersarm, and that Luminance, which isn't listed, really isn't derived from Lucide. - Merge order: the
spots.rsas_chunkschange duplicates #997/#1317/#1308 (you noted this).
Tests: cargo test -p lightcraft -p lightcraft-pipeline -p lightcraft-ui-egui passes on Linux.
…t no longer claims Lucide origin) Review on storytold#1104: the Depth attribution entry is the `layers` lucide! arm, and Luminance is a hand-drawn ring and half-disc with no Lucide path data, so it stays out of the Lucide attribution row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the review, @FredApps.
|
FredApps
left a comment
There was a problem hiding this comment.
Rechecked f92d134. Within the icon/attribution scope, the only follow-up change is the corrected Luminance origin comment; drawing code is unchanged from the reviewed version, and Depth remains attributed to Lucide layers. The rebuilt icon suite passed four tests with one ignored. The rebase keeps main's spots.rs resolution. No new blocking defect found; the earlier attribution question is addressed.
FredApps
left a comment
There was a problem hiding this comment.
Rechecked the follow-up at 9220837 against f92d134. The delta is confined to the Sliders drawing: two tracks with solid knobs replace three tracks with rings. No new blocking code issue found in that change. Independently reran icons::tests on the exact head: 4 passed, 1 ignored. This was a source and automated-test check; I have not independently compared the new glyph at 10–14 px on physical displays.
Rank the in-app icon set by eye (contact sheet: icon_contact_sheet, ignored test) and replace the worst: - StarFilled: one fan mesh plus outline, no anti-aliasing seams between triangles - Picker (read as a hammer), Gear (read as a sun), Cloud, Sky, Brush, Filmstrip (credit card), FlagPick/FlagReject (illegible X), Crop, Eraser, Eye/EyeOff, Bell, Presets, Versions, Heart, Edited, Rotate: Lucide (ISC) path data - Activity was a copy of Clock: now a history clock - Mask, Linear, Radial: our own, a family of dashed/solid guide shapes New icons so one glyph no longer stands for several things: RedEye (Red Eye tool, was the visibility eye), Palette (Color Mixer, was Radial), Object, Describe, Background, People, Landscape, Luminance, Depth (masks that all shared Subject/Sky/Sliders); Color Grading uses GradeAll instead of Presets. Pen::svg strokes SVG path data (M L H V C S Q T A Z) through a small reader that never panics on malformed input (tested with fixed junk and 2000 random strings). Lucide's licence: assets/licenses/ISC-Lucide.txt; attribution row in assets/ATTRIBUTION.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d icon table /simplify and /code-review follow-ups to the icon overhaul: - lucide! caches each icon's parsed subpaths in a static; nothing is re-parsed per frame - curves flatten through epaint's Cubic/QuadraticBezierShape; the path reader is a PathReader with a step method instead of a closure called in place - Pen::line rounds its ends (opaque colours, >= 2 px strokes), so hand-drawn and Lucide icons match; Pen::fill takes the pen's colour; Pen::half_disc for GradeMidtones/Luminance - Icon and Icon::ALL come from one macro list; the eight unused icons are gone - masking.rs: kind_icon is the one table for the Create New Mask tiles and the mask list - the contact sheet is written as PNG with lightcraft_codecs - reader: a failed command after Z leaves no stray dot; 1e2.5 lexes as 1e2 and .5 - Linear's dashed centre line is symmetric about its pin - NOTICE carries Lucide's ISC notice (it ships with every release); ATTRIBUTION rows updated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ibution The asset rules said every icon in icons.rs was original work; since the Lucide arms that is no longer true. Say what is allowed (own work, or Lucide under ISC, each named in the attribution row), where the notice lives, and that Adobe and GPL icon sets stay off-limits. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…t no longer claims Lucide origin) Review on storytold#1104: the Depth attribution entry is the `layers` lucide! arm, and Luminance is a hand-drawn ring and half-disc with no Lucide path data, so it stays out of the Lucide attribution row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three tracks with r=2 rings crowded the Edit icon at 10–14 px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9220837 to
4782f77
Compare
FredApps
left a comment
There was a problem hiding this comment.
Rechecked 4782f77 against the previously reviewed 9220837 icon/attribution scope. The rebase adapts the Play arm to the updated Pen::fill signature; it retains the current pen color. I found no new blocking code defect in that scoped change.
Independent Linux validation on this exact head: icons::tests passed 4 tests with the contact-sheet test initially ignored; that test was then run explicitly and passed (5 unique tests, 0 failures). Strict affected-UI all-target Clippy and scoped UI WASM check passed. All 980 tracked source files were unchanged. Formatting and assets checks passed in the earlier stage of this same exact-head validation.
The contact-sheet artifact was generated, but I have not independently inspected it in this review or qualified 10–14 px physical-display rendering, interaction, theme, GPU or accessibility behavior. Optional craft-fonts were absent and the existing WASM warnings remain; this is not a full-workspace or native-interaction qualification.
|
Please include the Feather MIT licence text if any adapted icon (Bell, Eye, Cloud, Crop, Activity) descends from Feather, and check that |
What
A pass over the in-app icon set (
crates/ui-egui/src/icons.rs): the weakest icons are redrawn, every tool and mask kind gets its own icon, and the icon code gets a small SVG-path reader so icons can have real curves.Worst icons, fixed:
One icon per meaning:
Code:
lucide!strokes SVG path data, parsed once per icon and cached in a static.Pen::linerounds line ends (opaque colours, strokes of at least 2 px), so hand-drawn and Lucide icons match.IconandIcon::ALLcome from one macro list, so a new icon can't be missed by the tests.masking.rshas onekind_icontable for the mask tiles and the mask list.icon_contact_sheet(an ignored test) renders every icon, labelled, to a PNG for review:ICON_SHEET=out.png cargo test -p lightcraft-ui-egui --lib icon_contact_sheet -- --ignoredLicence
Path data for 23 icons is adapted from Lucide (
lucide-static0.460.0, ISC), each arm commented with its Lucide name. The licence text is inassets/licenses/ISC-Lucide.txt, the full notice is inNOTICE(which ships with every release), andassets/ATTRIBUTION.mdhas a row for it. No Adobe material.The assets section of
CLAUDE.mdstill says the icons inicons.rsare original work; that wording may want updating.Build fixes on main (separate commit,
4b1c5b4e)Current main does not build here:
apps/lightcraft/src/main.rs:67callseframe::App::on_exit(self), but with eframe'sglowfeature it takes anOption<&glow::Context>. PassingNoneis safe: the app'son_exitignores it.chunks_exact_to_as_chunkslint failscrates/pipeline/src/spots.rs:250; it now usesas_chunks::<3>().Testing
cargo xtask ci: fmt, clippy, parity, layers, assets and wasm pass.catalog::tests_lock::dropping_the_lock_frees_the_library_while_another_thread_spawns_processes: the test machine's sandbox blocks spawning/bin/true.ui-egui::tests_dialog_fit::export_dialog_is_unchanged_in_a_tall_window: the dialog measures 876 pt where the test expects 846.lightcraft-enginesidecar and Lightroom-folder tests also fail on that machine with filesystem errors (EILSEQfor non-UTF-8 names). That crate doesn't depend on the UI code changed here.lightcraft-ui-egui: 747 tests pass, including the new icon tests (parser, junk input, every icon draws, arrowhead symmetry). The app, CLI, MCP and pipeline suites all pass.