Repository navigation
feat(web): draw every icon for the size it is shown at, 16, 24 or 32 px - #386
Merged
Merged
Conversation
Each symbol of the sprite holds a 16, a 24 and a 32 drawing, with 1 px lines at 16 and 24 and 2 px at 32, straight lines on whole pixels and a duotone fill. .ic is 16 px, .ic-lg 24 px and .ic-xl 32 px, each showing its own drawing, and no icon keeps a size of its own. Close, remove, add, pager, move, disclosure and dropdown buttons draw sprite icons instead of text glyphs. Icons are named after what they draw, the old names kept as aliases. The nav toggle draws the sidebar folding, Model prices a coin, and Sort by the direction of the sort on.
2 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #385
What
Redraws the interface icons for the sizes they are shown at. Each symbol of
_icons.svgnow holds three drawings, on a 16, a 24 and a 32 grid, with 1 px lines at 16 and 24 and 2 px lines at 32, straight lines on whole pixels, and a duotone fill that follows the theme..icis 16 px,.ic-lg24 px and.ic-xl32 px; each size class shows its own drawing through CSS variables, and no icon keeps a width, height or stroke of its own. Close, remove, add, pager, move, disclosure and dropdown buttons draw sprite icons instead of text glyphs (×, +, ‹ ›, ← →, ▼, ⌄, ✓), with anaria-labelwhere the glyph was their only text. Icons are named after what they draw; the old names stay as aliases, so templates keep their references. The nav toggle now draws the sidebar collapsing and expanding, Model prices draws a coin, and Sort by shows the ascending or descending icon while a sort is on.test_icons.pychecks the three drawings, their weights, the whole-pixel lines and the aliases.Touches
templates and static
Before and after
Verified
Risk
Visual only. A wrong drawing shows a wrong or blurred icon; a missing symbol shows nothing, which
test_icons.pycatches for every name in the templates. Undone by a revert.