Skip to content

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

docs: write product name as PhotoCraft in crate module docs (#5455)

wwewe33384c9bae2
diff --git a/apps/photocraft-web/src/main.rs b/apps/photocraft-web/src/main.rs
index 5ba75f525..428143c88 100644
--- a/apps/photocraft-web/src/main.rs
+++ b/apps/photocraft-web/src/main.rs
@@ -1,4 +1,4 @@
-//! Photocraft in the browser.
+//! PhotoCraft in the browser.
//!
//! Runs the same [`photocraft_ui_egui::PhotocraftApp`] as the desktop app through eframe's web
//! runner (wgpu: WebGPU where available, WebGL2 otherwise). Build with `trunk build --release`
diff --git a/apps/photocraft/src/main.rs b/apps/photocraft/src/main.rs
index c0f93bd31..abd70eb41 100644
--- a/apps/photocraft/src/main.rs
+++ b/apps/photocraft/src/main.rs
@@ -1,4 +1,4 @@
-//! Photocraft desktop app.
+//! PhotoCraft desktop app.
//!
//! Usage: `photocraft [--control <port>] [--control-token <64-hex> |
//! --control-token-file <path>] [--automation-read-root <dir>]
diff --git a/crates/cms/src/lib.rs b/crates/cms/src/lib.rs
index d6911ccd2..f93b00372 100644
--- a/crates/cms/src/lib.rs
+++ b/crates/cms/src/lib.rs
@@ -1,4 +1,4 @@
-//! Photocraft colour management: a pure-Rust ICC v2/v4 colour management module.
+//! PhotoCraft colour management: a pure-Rust ICC v2/v4 colour management module.
//!
//! * [`Profile`] parses ICC profiles (matrix/TRC RGB, gray TRC, `mft1`/`mft2`/`mAB `/`mBA `
//! LUT profiles incl. CMYK↔Lab, `curv`/`para` curves) and writes ICC v4 profiles.
diff --git a/crates/cms/src/lutfile.rs b/crates/cms/src/lutfile.rs
index 0a68ef8bc..47ff164fd 100644
--- a/crates/cms/src/lutfile.rs
+++ b/crates/cms/src/lutfile.rs
@@ -245,7 +245,7 @@ fn smooth(x: f32) -> f32 {
x * x * (3.0 - 2.0 * x)
}
-/// Generated looks shipped with Photocraft (procedural, CC0): `(id, label)`.
+/// Generated looks shipped with PhotoCraft (procedural, CC0): `(id, label)`.
pub const BUILTIN: [(&str, &str); 8] = [
("warm", "Warm Filter"),
("cool", "Cool Filter"),
diff --git a/crates/cms/src/synth.rs b/crates/cms/src/synth.rs
index 96a23dbfc..390e509dc 100644
--- a/crates/cms/src/synth.rs
+++ b/crates/cms/src/synth.rs
@@ -2,7 +2,7 @@
//!
//! Adobe's CMYK profiles (U.S. Web Coated SWOP, Coated FOGRA39 …) are proprietary, and the
//! freely downloadable characterisation-based profiles come with redistribution conditions, so
-//! Photocraft ships a CMYK profile it generates itself from a documented printer model:
+//! PhotoCraft ships a CMYK profile it generates itself from a documented printer model:
//!
//! * **Forward model** (CMYK → XYZ): Yule–Nielsen modified Neugebauer (n = 2) over the 16
//! ink overprints, with Demichel coverage weights and a parabolic tone value increase (dot
diff --git a/crates/doc/src/lib.rs b/crates/doc/src/lib.rs
index c4f7f523d..a1214e793 100644
--- a/crates/doc/src/lib.rs
+++ b/crates/doc/src/lib.rs
@@ -1,4 +1,4 @@
-//! The Photocraft document model: pure data, no rendering, no UI.
+//! The PhotoCraft document model: pure data, no rendering, no UI.
//!
//! Layer order: inside every group (and the root), `children[0]` is the **bottom** layer, matching
//! compositing order and the PSD file order. UIs display the list reversed.
diff --git a/crates/geom/src/lib.rs b/crates/geom/src/lib.rs
index 0e7673601..d95e4b847 100644
--- a/crates/geom/src/lib.rs
+++ b/crates/geom/src/lib.rs
@@ -1,4 +1,4 @@
-//! Geometry primitives shared by every Photocraft crate.
+//! Geometry primitives shared by every PhotoCraft crate.
//!
//! Document space is integer pixels with the origin at the canvas top-left.
//! Layers may extend beyond the canvas (negative coordinates are valid).
diff --git a/crates/paint/src/brush.rs b/crates/paint/src/brush.rs
index d60412a58..54e74e2e1 100644
--- a/crates/paint/src/brush.rs
+++ b/crates/paint/src/brush.rs
@@ -678,7 +678,7 @@ impl BrushSettings {
pub struct BrushPreset {
pub name: String,
pub brush: BrushSettings,
- /// Shipped with Photocraft (built-ins can be deleted from a session but are regenerated on reset).
+ /// Shipped with PhotoCraft (built-ins can be deleted from a session but are regenerated on reset).
#[serde(default)]
pub builtin: bool,
/// Preset group (folder) in the Brushes panel, e.g. "General" or an imported file's name.
diff --git a/crates/text/src/fonts.rs b/crates/text/src/fonts.rs
index 5ce71e59a..756ce8745 100644
--- a/crates/text/src/fonts.rs
+++ b/crates/text/src/fonts.rs
@@ -35,7 +35,7 @@ pub static INTER_MEDIUM: LazyLock<Vec<u8>> = LazyLock::new(|| inflate_font(bundl
pub static INTER_SEMIBOLD: LazyLock<Vec<u8>> = LazyLock::new(|| inflate_font(bundled_font!("Inter-SemiBold.ttf")));
pub static JETBRAINS_MONO_REGULAR: LazyLock<Vec<u8>> = LazyLock::new(|| inflate_font(bundled_font!("JetBrainsMono-Regular.ttf")));
-/// Fonts shipped with Photocraft (OFL; licences in `assets/fonts`).
+/// Fonts shipped with PhotoCraft (OFL; licences in `assets/fonts`).
pub static BUNDLED: [(&str, &LazyLock<Vec<u8>>); 4] = [
("Inter-Regular.ttf", &INTER_REGULAR),
("Inter-Medium.ttf", &INTER_MEDIUM),
diff --git a/crates/text/src/lib.rs b/crates/text/src/lib.rs
index ad5e90ae3..af4de19f5 100644
--- a/crates/text/src/lib.rs
+++ b/crates/text/src/lib.rs
@@ -1,4 +1,4 @@
-//! Photocraft's type engine.
+//! PhotoCraft's type engine.
//!
//! * [`fonts::FontDb`]: bundled fonts (Inter, JetBrains Mono; always available, including on the
//! web), optional system fonts from platform directory scans plus Fontconfig's Linux file list,
diff --git a/crates/ui-egui/examples/snapshot.rs b/crates/ui-egui/examples/snapshot.rs
index 31e4c6030..0d227255d 100644
--- a/crates/ui-egui/examples/snapshot.rs
+++ b/crates/ui-egui/examples/snapshot.rs
@@ -1,4 +1,4 @@
-//! Render the full Photocraft UI offscreen (no window, no focus stealing) and save a PNG.
+//! Render the full PhotoCraft UI offscreen (no window, no focus stealing) and save a PNG.
//!
//! ```sh
//! cargo run --release -p photocraft-ui-egui --example snapshot -- \
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index bde51ff27..4e82be710 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -1,4 +1,4 @@
-//! Photocraft's first UI shell, built on egui/eframe.
+//! PhotoCraft's first UI shell, built on egui/eframe.
//!
//! This crate is deliberately thin. Every action goes through
//! [`photocraft_engine::Session::execute`], and all UI state lives in [`state::UiState`] (plain
diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs
index 2acbdf3c8..7235790cb 100644
--- a/crates/ui-egui/src/widgets.rs
+++ b/crates/ui-egui/src/widgets.rs
@@ -1,4 +1,4 @@
-//! Custom widgets for the Photocraft look: cards with pill tabs, thin sliders with round knobs,
+//! Custom widgets for the PhotoCraft look: cards with pill tabs, thin sliders with round knobs,
//! monospace value fields with dimmed units, toggle switches, primary/secondary buttons.
use egui::{Align2, Color32, CornerRadius, Pos2, Rect, Response, Sense, Stroke, StrokeKind, Ui, Vec2, pos2, vec2};