Remove extra dependency notices and hardcoded shortcut hints

This commit is contained in:
chasse20
2026-11-20 04:16:10 -05:00
parent 255977e304
commit 08df994708
5 changed files with 3 additions and 22 deletions
-10
View File
@@ -46,13 +46,3 @@ Built-in environments (`crates/render/src/ibl.rs`), smart materials and procedur
(`crates/paint/src/brush.rs`), meshes (`crates/geom/src/primitives.rs`) and shelf thumbnails
(`crates/ui-egui/src/thumbs.rs`) are generated in code by TextureCraft contributors (MIT OR
Apache-2.0). None of them is derived from another product's presets, shaders, materials or images.
## Default-browser integration dependencies
The desktop app enables eframe's `links` feature. These unmodified Rust dependencies open links in the system browser and parse their URLs; their upstream MIT and Apache-2.0 licence files remain in the published crates.
| Dependency | Source | License |
|---|---|---|
| `webbrowser` 1.2.7 | https://github.com/amodm/webbrowser-rs | MIT OR Apache-2.0 |
| `url` 2.5.8, `idna` 1.1.0, `form_urlencoded` 1.2.2 | https://github.com/servo/rust-url | MIT OR Apache-2.0 |
| `idna_adapter` 1.2.2 | https://github.com/hsivonen/idna_adapter | Apache-2.0 OR MIT |
-7
View File
@@ -25,10 +25,3 @@ in https://github.com/storytold/craft-fonts/blob/main/ATTRIBUTION.md (Inter
and BIZ UDPGothic on desktop and web, Noto Sans CJK SC on desktop), under the SIL Open Font License
1.1. Their licence texts ship
with the package as OFL-<family>.txt.
Default-browser integration (eframe's links feature):
webbrowser 1.2.7 — MIT OR Apache-2.0, https://github.com/amodm/webbrowser-rs.
url 2.5.8, idna 1.1.0 and form_urlencoded 1.2.2 — MIT OR Apache-2.0,
https://github.com/servo/rust-url.
idna_adapter 1.2.2 — Apache-2.0 OR MIT, https://github.com/hsivonen/idna_adapter.
These dependencies are used unmodified; their published crates retain the upstream licence files.
+1 -1
View File
@@ -32,7 +32,7 @@ pub fn color_selection_properties(app: &mut TextureCraftApp, ui: &mut Ui, effect
let set_index = app.session.doc.project.locate(effect_owner(app, effect)).map_or(app.session.ts(), |(set_index, _, _)| set_index);
let has_id_map = app.session.baked(set_index).is_some_and(|baked| baked.maps.contains_key(&BakedMap::Id));
if !has_id_map {
ui.label(RichText::new(format!("{} {}", ic::WARNING, tr("Bake an ID map (F8) to pick colors from the mesh."))).color(tokens.warning));
ui.label(RichText::new(format!("{} {}", ic::WARNING, tr("Bake an ID map to pick colors from the mesh."))).color(tokens.warning));
}
let picking = app.picking_id_color.filter(|pick| pick.effect == effect);
+1 -3
View File
@@ -58,9 +58,7 @@ pub(crate) fn generator_properties(app: &mut TextureCraftApp, ui: &mut Ui, layer
});
}
if !app.session.doc.baked.contains_key(&app.session.ts()) {
ui.label(
RichText::new(format!("{} {}", ic::WARNING, tr("Bake mesh maps (F8) for curvature, AO and thickness based generators."))).color(tokens.warning),
);
ui.label(RichText::new(format!("{} {}", ic::WARNING, tr("Bake mesh maps for curvature, AO and thickness based generators."))).color(tokens.warning));
}
}
@@ -120,7 +120,7 @@ fn pick_mode_shows_the_id_map_and_a_click_on_the_mesh_adds_its_color() {
#[test]
fn without_an_id_map_picking_is_off_and_a_warning_says_why() {
let (mut harness, _) = app_with_color_selection(false);
let warning = format!("{} Bake an ID map (F8) to pick colors from the mesh.", egui_phosphor::regular::WARNING);
let warning = format!("{} Bake an ID map to pick colors from the mesh.", egui_phosphor::regular::WARNING);
assert!(harness.query_by_label(&warning).is_some());
harness.get_by_label(&pick_color_label()).click();