// The colours of the Photos tool's things, where they are not painted. // // The bookcloth a photograph lies on, a print's shadow and sheen, the album's // cork board, its instant prints, brass pins and label are painted // (`photos-bookcloth`, `photo-print-shadow`, `photo-print-sheen`, // `album-board`, `album-board-shadow`, `album-instant`, `album-pin`, // `album-label`, cut by `scripts/import-photos-materials.py` from the layers // painted after the lab print and the album board the owner chose, // `objects-2/photos-2`, 30 Oct 2026). What is drawn live over the paint // takes its colour from here: a lab print's white border, a shape drawn over // the photograph; the orange of the date a camera burns into the picture and // its bloom; the near-black the album's label is typed in; and, where a // build carries no pictures, the cloth's own oxblood (the ground's colour // where its tile is not drawn), the cork, the pine, the instant print's card, // the label's paper and the pins' brass, flat; and the album's slide // carousel (`album.carousel`, 12 Nov 2026), drawn and not yet painted: the // tray's charcoal plastic, its lit rim and its slots' recess, and a slide // mount's warm white plastic and its lit edge. A material is NOT a palette // role: it is the colour of a thing, read off the reference the way a // paper's dye is read off its photograph (`PaperDye`), and it does not flip // with the theme. `PaletteGuardTests` exempts this file from the CHANNELS // sweep for that sentence and no other; it writes no hex and names nothing. import SwiftUI /// The Photos tool's materials. public enum PhotosMaterial: String, CaseIterable, Sendable { /// The deep oxblood bookcloth a photograph lies on /// (`FaceGround.bookcloth`), its tile's mean. case bookcloth /// A lab print's white border, read off the painted print. case border /// The orange of the date burned into a picture. case burn /// The burn's bloom, a deeper orange glowing round its figures. case bloom /// The near-black the album's label is typed in. case type /// The cork's warm brown. case cork /// The board's frame, honey pine. case pine /// An instant print's off-white card. case card /// The label's cream paper, its painting's mean. case label /// A drawing pin's brass. case brass /// The slide carousel's moulded charcoal plastic. case tray /// The tray's plastic where the safelight catches it. case trayLit /// The dark recess its slots stand in. case trayRecess /// A slide mount's warm white plastic. case mount /// A mount's edge where the light catches it. case mountLit public var colour: Color { switch self { case .bookcloth: Color(red: 0.259, green: 0.082, blue: 0.071) case .border: Color(red: 0.955, green: 0.927, blue: 0.883) case .burn: Color(red: 1.0, green: 0.50, blue: 0.20) case .bloom: Color(red: 1.0, green: 0.30, blue: 0.06) case .type: Color(red: 0.12, green: 0.105, blue: 0.095) case .cork: Color(red: 0.66, green: 0.43, blue: 0.24) case .pine: Color(red: 0.82, green: 0.66, blue: 0.43) case .card: Color(red: 0.93, green: 0.91, blue: 0.85) case .label: Color(red: 0.947, green: 0.842, blue: 0.715) case .brass: Color(red: 0.74, green: 0.55, blue: 0.24) case .tray: Color(red: 0.13, green: 0.125, blue: 0.13) case .trayLit: Color(red: 0.27, green: 0.25, blue: 0.24) case .trayRecess: Color(red: 0.06, green: 0.055, blue: 0.055) case .mount: Color(red: 0.86, green: 0.84, blue: 0.79) case .mountLit: Color(red: 0.96, green: 0.94, blue: 0.9) } } }