diff --git a/branding/ui-icons/icons.py b/branding/ui-icons/icons.py index c10a1875..d135e731 100644 --- a/branding/ui-icons/icons.py +++ b/branding/ui-icons/icons.py @@ -176,17 +176,22 @@ svg.append('') with write(os.path.join(here, "icons.svg")) as f: f.write("\n".join(svg)) -# The web admin's icons (its own names -> this set's), as inline SVG strings for app.js and the pages. -WEB = {"dashboard": "Library", "users": "Users", "archive": "Archive", "jobs": "Jobs", "settings": "Settings", "logs": "Logs", - "menu": "Menu", "power": "Power", "moon": "Moon", "refresh": "Refresh", "close": "Close", "plus": "Plus", "copy": "Copy", - "search": "Search"} +# The web admin's icons (its own names -> this set's), as inline SVG strings for app.js and the pages. The dashboard keeps +# the four tiles of mockup Admin.html, so the panel's Library (owner review 2, R6) is drawn as a photo. +WEB = {"dashboard": "Library", "library": "Image", "users": "Users", "archive": "Archive", "jobs": "Jobs", "settings": "Settings", + "logs": "Logs", "menu": "Menu", "power": "Power", "moon": "Moon", "refresh": "Refresh", "close": "Close", "plus": "Plus", + "copy": "Copy", "search": "Search", "grid": "ViewGrid", "list": "ViewList", "trash": "Delete", "upload": "Upload", + "download": "Download", "back": "Back", "previous": "ChevronLeft", "next": "ChevronRight", "star": "Star", + "starFilled": "StarFilled", "hero": "Hero", "image": "Image", "warning": "Warning"} STROKE = 'fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"' with write(os.path.join(here, "..", "..", "src", "Chronos.Server", "Admin", "web", "icons.js")) as f: f.write("// Generated by branding/ui-icons/icons.py (same 16-px set as the desktop apps). Do not edit by hand.\n") + f.write("// Glyphs that point along the reading direction carry class=\"directional\" (mirrored in right-to-left pages, admin.css).\n") f.write("export const icons = {\n") for key, name in WEB.items(): stroke, fill = I[name] paths = (f'' if fill else "") + (f'' if stroke else "") - f.write(f' {key}: ``,\n') + mirror = ' class="directional"' if name in DIRECTIONAL else "" + f.write(f' {key}: `