Skip to content

Commit cd9b5a7

Browse files
committed
Added "code-xml" icon
for Tiptap's "Source Editor" toolbar button Previously it was using "icon-code", which could be confused with the "Code Block" action.
1 parent d60fb36 commit cd9b5a7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

src/packages/core/icon-registry/icon-dictionary.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@
399399
"name": "icon-code",
400400
"file": "code.svg"
401401
},
402+
{
403+
"name": "icon-code-xml",
404+
"file": "code-xml.svg"
405+
},
402406
{
403407
"name": "icon-coffee",
404408
"file": "coffee.svg"

src/packages/core/icon-registry/icons.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ name: "icon-code",
387387

388388
path: () => import("./icons/icon-code.js"),
389389
},{
390+
name: "icon-code-xml",
391+
392+
path: () => import("./icons/icon-code-xml.js"),
393+
},{
390394
name: "icon-coffee",
391395

392396
path: () => import("./icons/icon-coffee.js"),
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default `<!-- @license lucide-static v0.446.0 - ISC -->
2+
<svg
3+
class="lucide lucide-code-xml"
4+
xmlns="http://www.w3.org/2000/svg"
5+
viewBox="0 0 24 24"
6+
fill="none"
7+
stroke="currentColor"
8+
stroke-width="1.75"
9+
stroke-linecap="round"
10+
stroke-linejoin="round"
11+
>
12+
<path d="m18 16 4-4-4-4" />
13+
<path d="m6 8-4 4 4 4" />
14+
<path d="m14.5 4-5 16" />
15+
</svg>
16+
`;

0 commit comments

Comments
 (0)