jukebox
All repositories: gitoria
3.6 KB
// icons.hl — THE ICONS, one source for every component and app: `Icon { name = "link" }` is an inline SVG (24 x 24 box, drawn with// stroke = currentColor, so it takes the colour of the text around it; aria-hidden — the button or link that holds it carries the// label and title). A component that needs icons imports this file by path (`import Icon from '../icons/icons.hl'`); Hybriel// includes an imported module once per app however many components import it (mission F4: measured, reports/F4-icons.md).// Names: bold italic code link heading ul ol block table undo redo file close play pause skipBack skipForward prevTrack nextTrack shuffle repeat repeatOne volume volumeOff fullscreen. An unknown name draws an empty box. A new icon is one more// entry in `shapes` (a single path `d`; circles and rectangles written as arcs).// Size: 1.25em square by default; the host sizes it with `icon-svg svg` / its own rule, or `size = "1.5em"`.String name = ''String size = '1.25em'Hybrid shapes = {bold = 'M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z'italic = 'M19 4h-9M14 20H5M15 4L9 20'code = 'M8 7l-5 5 5 5M16 7l5 5-5 5'link = 'M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'heading = 'M6 4v16M18 4v16M6 12h12'ul = 'M9 6h11M9 12h11M9 18h11M3.3 6a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M3.3 12a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M3.3 18a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0'ol = 'M10 6h10M10 12h10M10 18h10M4 4.5h1.5V9M3.5 9h3M3.5 14.5c.5-.8 2.8-.9 2.8.6 0 1.1-2.8 2.2-2.8 3.4h3'block = 'M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM8 10l-2 2 2 2M16 10l2 2-2 2'table = 'M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM3 10h18M3 15h18M9 10v10'undo = 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3'redo = 'M15 14l5-5-5-5M20 9H10a6 6 0 0 0 0 12h3'close = 'M6 6l12 12M18 6L6 18'play = 'M8 5.2l11 6.8-11 6.8z'pause = 'M7 5h3.5v14H7zM13.5 5H17v14h-3.5z'skipBack = 'M6.34 6.34A8 8 0 1 0 12 4M14.5 1.5L12 4l2.5 2.5'skipForward = 'M17.66 6.34A8 8 0 1 1 12 4M9.5 1.5L12 4 9.5 6.5'prevTrack = 'M6 5v14M19 5.5v13L9 12z'nextTrack = 'M18 5v14M5 5.5v13L15 12z'shuffle = 'M3 6h3c5 0 7 12 12 12h3M17 14l4 4-4 4M3 18h3c2 0 3.5-2 5-5M13 9c1.5-2 3-3 5-3h3M17 2l4 4-4 4'repeat = 'M17 2l4 4-4 4M3 10V9a3 3 0 0 1 3-3h15M7 22l-4-4 4-4M21 14v1a3 3 0 0 1-3 3H3'repeatOne = 'M17 2l4 4-4 4M3 10V9a3 3 0 0 1 3-3h15M7 22l-4-4 4-4M21 14v1a3 3 0 0 1-3 3H3M10 10l2-1v6M10 15h4'volume = 'M3.5 9.5v5h3.5l5 4v-13l-5 4zM15 9.8a4.2 4.2 0 0 1 0 4.4M17.5 7.5a7.5 7.5 0 0 1 0 9'volumeOff = 'M3.5 9.5v5h3.5l5 4v-13l-5 4zM16 9.7l4.8 4.6M20.8 9.7l-4.8 4.6'fullscreen = 'M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'file = 'M21 12.5l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l9-9a3.7 3.7 0 0 1 5.2 5.2l-9 9a1.8 1.8 0 0 1-2.6-2.6l8.2-8.2'}// thin extra strokes drawn inside an icon (the "10" of replay / forward 10), 1.5 wide instead of 2Hybrid labels = {skipBack = 'M9.2 10.6l1.6-1v5.4M13 11.2a1.4 1.4 0 0 1 2.8 0v2.6a1.4 1.4 0 0 1-2.8 0z'skipForward = 'M9.2 10.6l1.6-1v5.4M13 11.2a1.4 1.4 0 0 1 2.8 0v2.6a1.4 1.4 0 0 1-2.8 0z'}String shape = shapes[name] == null ? '' : shapes[name]String label = labels[name] == null ? '' : labels[name]Style {iconSvg {display = 'inline-flex'flex = 'none'lineHeight = '0'pointerEvents = 'none'svg {fill = 'none'stroke = 'currentColor'strokeWidth = '2'strokeLinecap = 'round'strokeLinejoin = 'round'}}}View {iconSvg {svg { viewBox = "0 0 24 24" width = size height = size 'aria-hidden' = "true" focusable = "false"path { d = shape }path { d = label 'stroke-width' = "1.5" }}}}
Branches
Latest commits
- 8ed6da45|||PR README: media-player pin df9e7dfmre
- d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre
- 89cdabb1Vendor Hybriel day41 (57054d9e): plugin dirs, set .somre
- 1fecd6a7Merge branch 'records-day39' into mainJukebox
- d6b3e068|||PR Records: day39 live (PR #2), mission 011 PR step, statusmre
- 5fa19e89Merge branch 'day39' into mainJukebox
- cfe95440|||PR day39 re-vendor: Hybriel 51e921d7 (bin 6b481aa7), ids kebab-case since hybriel#256: quoted state rule and tests use jb-shuffle / jb-repeatmre
- f3614c9bRe-vendor to Hybriel day39 (51e921d7, bin 6b481aa7)mre
- 9f5c6532Merge branch 'status-22-pr' into mainJukebox
- 5838d6c7|||PR STATUS: #22 pending decision, PR-only rulemre
- 29d2029cRecords: PR-only rule (Kunibert)mre
- adacb0abRecords: neutral ticket rule, #22 decision recordedmre
- b2d6f121Records: #308 hold liftedmre
- 7ab67533Records: day39 on hold (hybriel#308)mre
- 22f21739Records: note rebase before mergemre
- f7368ea3Records: mission 011 day39, waits for lisbethmre
- 9515d2cdRecords: jb20 livemre
- 019f6601ui gate: comment names the open bug components#27 (workaround, not fixed)mre
- 277a2722README: provenance linemre
- 4169ca6aREADME: sync pinmre