mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-11 02:49:56 -06:00
P1.1: point docs, brand legacy list and craft-fonts notes at the new engine crates
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
658aab12c8
commit
4807cecb1a
@@ -726,5 +726,4 @@ text]], z = ZSTR "loc" }"#,
|
||||
assert_eq!(group_from_dir("Film Pack/XMP Presets for Lightroom CC 7.3+"), Some("Film Pack".into()));
|
||||
assert_eq!(group_from_dir("Sacred Light"), Some("Sacred Light".into()), "whole words only");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -666,5 +666,4 @@ mod tests {
|
||||
assert_eq!(got, [("Vintage", "Wild Pack"), ("Pop 1", "Wild Pack")]);
|
||||
assert!(read_presets("empty.mplumpack", &zip(&[("icon.png", b"x")], false), None).is_err());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ use dac_develop::Preset;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{Value, json};
|
||||
|
||||
|
||||
/// File extension of the app's preset files (legacy extensions are read too, see [`dac_brand::preset_exts`]).
|
||||
pub const LCPRESET_EXT: &str = dac_brand::PRESET_EXT;
|
||||
/// The `format` tag of a `.lcpreset` file.
|
||||
@@ -102,7 +101,6 @@ pub fn expand_preset_paths(paths: &[String]) -> Vec<String> {
|
||||
out
|
||||
}
|
||||
|
||||
|
||||
fn p(group: &str, id: &str, name: &str, settings: serde_json::Value) -> Preset {
|
||||
Preset { id: format!("lc.{id}"), name: name.into(), group: group.into(), settings, favorite: false, builtin: true }
|
||||
}
|
||||
@@ -412,7 +410,6 @@ pub fn profile(id: &str) -> Option<&'static ProfileInfo> {
|
||||
/// How many recently used profiles the profile menu lists.
|
||||
pub const RECENT_PROFILES: usize = 5;
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
@@ -440,15 +437,10 @@ mod tests {
|
||||
assert_eq!(profile_groups(), ["Basic", "Film", "Cinematic", "Muted", "B&W"]);
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn slugs() {
|
||||
assert_eq!(slug("Warm & Soft!"), "warm-soft");
|
||||
assert_eq!(slug(" "), "preset");
|
||||
assert_eq!(slug("B&W/Film 2"), "b-w-film-2");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user