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:
@ -1192,7 +1192,7 @@ dl.daten dd{margin:0;overflow-wrap:anywhere}dl.daten .breit-zeile{grid-column:1/
|
||||
pre.befehl{margin:0;padding:.6rem .8rem;background:var(--bg);border:1px solid var(--border);border-radius:10px;font-family:ui-monospace,"JetBrains Mono",Menlo,monospace;font-size:.82rem;white-space:pre-wrap;overflow-wrap:anywhere}
|
||||
.engine h2{margin:0}.chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.7rem 0 .2rem}
|
||||
.engine .zeile{gap:.5rem .7rem}
|
||||
.fsym{--k:var(--muted);width:1.7rem;height:1.7rem;box-sizing:border-box;padding:.27rem;margin-right:.3rem;vertical-align:middle;border-radius:.45rem;fill:none;stroke:var(--k);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
|
||||
.fsym{--k:var(--muted);width:1.7rem;height:1.7rem;box-sizing:border-box;padding:.27rem;margin-right:.3rem;vertical-align:middle;border-radius:.45rem;fill:none;stroke:var(--k);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
|
||||
td.faehig{white-space:nowrap}.fsym.k-chat{--k:var(--info)}.fsym.k-vision{--k:var(--accent-strong)}.fsym.k-tools{--k:var(--cat-2)}.fsym.k-embed{--k:var(--ok)}.fsym.k-stream{--k:var(--cat-1)}.fsym.k-completion{--k:var(--cat-3)}
|
||||
.fsym.datei{background:color-mix(in srgb,var(--k) 22%,transparent);border:1px solid color-mix(in srgb,var(--k) 55%,transparent)}
|
||||
.fsym.engine{background:transparent;border:1px dashed color-mix(in srgb,var(--k) 55%,transparent);opacity:.75}
|
||||
|
||||
@ -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\"/>",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user