Skip to content

armgit / klad

Public Imported from GitHub
0

A drawing app built for agent/human collaboration

Rust

The bone tool's icon is a bone

Indicode BV606fef4a77b2
diff --git a/crates/app/src/commands.rs b/crates/app/src/commands.rs
index 719f392..99eea9a 100644
--- a/crates/app/src/commands.rs
+++ b/crates/app/src/commands.rs
@@ -737,7 +737,7 @@ impl Cmd {
Cmd::BoneTool => spec(
"tool.bones",
"bones",
- icon::TURN,
+ icon::BONE,
G::Tools,
T::Press(const { &[plain(Key::J)] }),
R::No,
diff --git a/crates/app/src/editor/bones.rs b/crates/app/src/editor/bones.rs
index 9af05e8..38c0af8 100644
--- a/crates/app/src/editor/bones.rs
+++ b/crates/app/src/editor/bones.rs
@@ -1190,7 +1190,7 @@ impl Editor {
ui.label(RichText::new(format!("{here} has no bones; skeletons are on")).color(theme::WEAK));
return owners.into_iter().fold(None, |run, (id, name)| {
let clicked = ui
- .button(format!("{} {name}", theme::icon::TURN))
+ .button(format!("{} {name}", theme::icon::BONE))
.hint(format!("make {name} the active layer to see and edit its bones"))
.clicked();
run.or_else(|| {
@@ -1223,7 +1223,7 @@ impl Editor {
};
let mut chosen = None;
ui.menu_button(
- format!("{} {}", theme::icon::TURN, picked.as_deref().unwrap_or("pick a bone")),
+ format!("{} {}", theme::icon::BONE, picked.as_deref().unwrap_or("pick a bone")),
|ui| {
ui.label(
RichText::new(format!("the bones of {owner}"))
diff --git a/crates/app/src/editor/ui_tests.rs b/crates/app/src/editor/ui_tests.rs
index 114917d..1e9ca64 100644
--- a/crates/app/src/editor/ui_tests.rs
+++ b/crates/app/src/editor/ui_tests.rs
@@ -3796,7 +3796,7 @@ fn bones_are_picked_from_the_list_and_the_canvas_and_edited_in_place() {
h.query_by_label_contains("colour has no bones").is_some(),
"a layer without bones says where the skeletons are"
);
- h.get_by_label(&format!("{} lines", theme::icon::TURN)).click();
+ h.get_by_label(&format!("{} lines", theme::icon::BONE)).click();
h.run_steps(3);
assert_eq!(h.state().scene.active_layer().unwrap().name, "lines");
h.get_by_label_contains("pick a bone").click();
diff --git a/crates/app/src/theme.rs b/crates/app/src/theme.rs
index cbc557b..d4719b0 100644
--- a/crates/app/src/theme.rs
+++ b/crates/app/src/theme.rs
@@ -49,6 +49,7 @@ pub mod icon {
pub const DOWNLOAD: &str = "\u{E20C}";
pub const FIT: &str = "\u{E1D0}";
pub const TURN: &str = "\u{E036}";
+ pub const BONE: &str = "\u{E7F2}";
pub const UNDO: &str = "\u{E08A}";
pub const REDO: &str = "\u{E08C}";
pub const TRASH: &str = "\u{E4A6}";