feat(docx-editor): the blue DOC badge, kept as the generated source

Picks the mark from 95c93f9 over the one I drew: at the 16–18px the dock
actually renders, a solid fill reads and an outlined page does not, and
pairing with pdf-editor's red badge makes the two editors obviously a set.

It moves into icon.svg rather than living only as a data URL in the
manifest, so make-icons.mjs keeps deriving the PNGs and addon.json's copy
from one drawing. Same picture as before, one source instead of three
places to forget.
This commit is contained in:
Local Dev 2026-09-22 00:10:56 +02:00
parent 7724dde2ef
commit 0da15818ad
8 changed files with 20 additions and 26 deletions

View file

@ -35,11 +35,14 @@ vendored editor libraries.
`icon` field, which is what the dock button and the catalogue card read — so `icon` field, which is what the dock button and the catalogue card read — so
there is never a second version to keep in step. there is never a second version to keep in step.
It is deliberately not Microsoft's Word icon. That mark, and the blue sheet It is a blue document badge, paired with pdf-editor's red one so the two
with a white W it belongs to, are Microsoft's trademarks; dressing our editors read as a set in the dock — a solid fill stays legible at the 1618px
extension up as theirs would be both a legal problem and a dishonest one. The the dock actually renders, which an outlined page does not.
mark here says "text document" in its own words: a page with a turned corner,
a heading rule, body lines, and a pilcrow badge in Silent Mode green. Deliberately not Microsoft's Word icon: their mark is a blue sheet carrying a
white W, and dressing our extension up as theirs would be both a legal
problem and a dishonest one. A folded-corner page is the universal document
glyph, and "DOC" is the file format rather than anyone's trademark.
## Building ## Building

View file

@ -4,7 +4,7 @@
"version": "0.1.1", "version": "0.1.1",
"description": "Open, edit and save Word documents (.docx) in a full Theseus tab, or export them as PDF. Ribbon-style formatting, tables, lists, images and links; headers, footers, footnotes, page setup and the document's own styles are carried through a save untouched.", "description": "Open, edit and save Word documents (.docx) in a full Theseus tab, or export them as PDF. Ribbon-style formatting, tables, lists, images and links; headers, footers, footnotes, page setup and the document's own styles are carried through a save untouched.",
"author": "Silent Mode", "author": "Silent Mode",
"icon": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2z%22%20fill%3D%22%232563eb%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6z%22%20fill%3D%22%231e40af%22%2F%3E%3Cg%20fill%3D%22%23fff%22%3E%3Cpath%20d%3D%22M12.3%208.6a3.1%203.1%200%200%200%200%206.2z%22%2F%3E%3Crect%20x%3D%2212.05%22%20y%3D%228.6%22%20width%3D%221.7%22%20height%3D%2210.8%22%20rx%3D%22.2%22%2F%3E%3Crect%20x%3D%2214.85%22%20y%3D%228.6%22%20width%3D%221.7%22%20height%3D%2210.8%22%20rx%3D%22.2%22%2F%3E%3Crect%20x%3D%2212.05%22%20y%3D%228.6%22%20width%3D%224.5%22%20height%3D%221.7%22%20rx%3D%22.2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E", "icon": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2z%22%20fill%3D%22%232563eb%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6z%22%20fill%3D%22%231e40af%22%2F%3E%3Ctext%20x%3D%2212%22%20y%3D%2217%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%225.5%22%20font-weight%3D%22800%22%20fill%3D%22%23fff%22%3EDOC%3C%2Ftext%3E%3C%2Fsvg%3E",
"main": "index.js", "main": "index.js",
"capabilities": [ "capabilities": [
"sidebar-panel", "sidebar-panel",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 B

After

Width:  |  Height:  |  Size: 711 B

View file

@ -1,27 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<!-- <!--
Silent Mode's mark for the Word editor. Silent Mode's mark for the Word editor: a blue document badge, paired
with pdf-editor's red one so the two editors read as a set in the dock.
Originally drawn in commit 95c93f9 alongside the PDF badge; kept here as
the single source that addon-build/docx-editor/make-icons.mjs rasterises
to the PNGs and writes into addon.json.
Deliberately not Microsoft's Word icon. That mark, and the blue sheet Deliberately not Microsoft's Word icon. Their mark is a blue sheet
with a white "W" it belongs to, are Microsoft's trademarks; dressing our carrying a white "W", and dressing our extension up as theirs would be
extension up as theirs would be both a legal problem and a dishonest one. both a legal problem and a dishonest one. A folded-corner page is the
universal document glyph, and "DOC" is the file format, not anyone's
It shares pdf-editor's page silhouette, corner geometry and weight so the trademark.
two editors read as a set in the dock, and carries a pilcrow — the
paragraph mark every word processor has used since the trade was done on
paper — rather than a format label. The glyph is drawn as paths, not
<text>: an icon that needs a particular font installed to make sense is
an icon that eventually renders wrong somewhere.
--> -->
<path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" fill="#2563eb"/> <path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" fill="#2563eb"/>
<path d="M14 2v6h6z" fill="#1e40af"/> <path d="M14 2v6h6z" fill="#1e40af"/>
<g fill="#fff"> <text x="12" y="17" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-size="5.5" font-weight="800" fill="#fff">DOC</text>
<!-- bowl: a half disc hanging off the left stem -->
<path d="M12.3 8.6a3.1 3.1 0 0 0 0 6.2z"/>
<!-- the two stems -->
<rect x="12.05" y="8.6" width="1.7" height="10.8" rx=".2"/>
<rect x="14.85" y="8.6" width="1.7" height="10.8" rx=".2"/>
<!-- top bar tying the bowl and stems together -->
<rect x="12.05" y="8.6" width="4.5" height="1.7" rx=".2"/>
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1,017 B