Skip to content

feat(web): draw every icon for the size it is shown at, 16, 24 or 32 px - #386

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:feat/icons-by-size
Nov 24, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:feat/icons-by-size

Conversation

@harenome

@harenome harenome commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #385

What

Redraws the interface icons for the sizes they are shown at. Each symbol of _icons.svg now 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. .ic is 16 px, .ic-lg 24 px and .ic-xl 32 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 an aria-label where 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.py checks the three drawings, their weights, the whole-pixel lines and the aliases.

Touches

templates and static

Before and after

Before After
navs-before navs-after
sort-before sort-after

Verified

  • Backend suite: 2860 tests OK. Route suite: 660 tests OK.
  • In Chromium at 1280 px: the sidebar, Settings and Recipes pages; the nav toggle folds and unfolds; Sort by switches between the up-down, ascending and descending icons as the sort changes, on a table, with no page error. The search clear button, the builder's tiles, the Judges legends, the job filters' remove buttons, Compare's column moves and the import rows' add and remove buttons, light and dark.

Risk

Visual only. A wrong drawing shows a wrong or blurred icon; a missing symbol shows nothing, which test_icons.py catches for every name in the templates. Undone by a revert.

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.
@harenome
harenome merged commit 35686e0 into ThinkFlowLab:main Nov 24, 2026
2 checks passed
@harenome
harenome deleted the feat/icons-by-size branch November 24, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web: interface icons are one 24-grid drawing scaled to every size, so their lines blur

1 participant