feat(ui): Fähigkeiten-Symbole aus Lucide (ISC), Lizenzhinweis (#1081)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg3Td16J38kAyDLzb39
This commit is contained in:
2026-11-17 17:40:18 +01:00
parent 72a328150f
commit dfb20abfa7
5 changed files with 69 additions and 8 deletions

View File

@ -109,18 +109,34 @@ pub(super) fn symbole(
out
}
/// Symbole aus Lucide (`lucide-static` 1.74.0, ISC-Lizenz, Copyright (c) 2026 Lucide Icons and
/// Contributors; Text in `docs/lizenzen/lucide-ISC.txt`). Je Fähigkeit nur die Pfade im 24×24-Raster.
fn svg(key: &str) -> &'static str {
match key {
"chat" => "<path d=\"M4 5h16v11H9l-5 4z\"/>",
// message-square
"chat" => {
"<path d=\"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z\"/>"
}
// eye
"vision" => {
"<path d=\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/>"
"<path d=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/>"
}
"tools" => "<path d=\"M14 6a4 4 0 0 0-5 5L3 17l4 4 6-6a4 4 0 0 0 5-5l-3 3-3-1-1-3z\"/>",
// wrench
"tools" => {
"<path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z\"/>"
}
// network
"embed" => {
"<circle cx=\"6\" cy=\"6\" r=\"2\"/><circle cx=\"18\" cy=\"8\" r=\"2\"/><circle cx=\"9\" cy=\"18\" r=\"2\"/><path d=\"M7.5 7.5l9 1M7 8l2 8M17 10l-7 7\"/>"
"<rect x=\"16\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\"/><rect x=\"2\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\"/><rect x=\"9\" y=\"2\" width=\"6\" height=\"6\" rx=\"1\"/><path d=\"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3\"/><path d=\"M12 12V8\"/>"
}
// audio-lines
"stream" => {
"<path d=\"M2 10v3\"/><path d=\"M6 6v11\"/><path d=\"M10 3v18\"/><path d=\"M14 8v7\"/><path d=\"M18 5v13\"/><path d=\"M22 10v3\"/>"
}
// braces
_ => {
"<path d=\"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1\"/><path d=\"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1\"/>"
}
"stream" => "<path d=\"M4 8h12M4 12h16M4 16h9\"/>",
_ => "<path d=\"M8 6l-5 6 5 6M16 6l5 6-5 6\"/>",
}
}