Starweb dev log #12
I started redesigning the panel. Signed in, you land on a sidebar with tabs (home, domains, analytics), a search bar, and a home page. (Cloudflare copy ik lol)
The sidebar icons are Lucide SVGs. Those are drawn on a 24x24 grid and use way more of the SVG path language than my login art did: relative commands, H/V, arcs, closepath, plus <circle> elements. The browser has no SVG parser yet (but ig it’s unavoidable at this point), so I wrote a script (shapes.py) that reads each icon once and flattens it into plain points, arcs, and all. Those points get baked straight into the page’s Lua as a table, so the page itself is just normal HTML and Lua, no different from any other page, and the script just loops over the points and draws them.
Rendering also looks sharper now. Layout and drawing account for the framebuffer scale, so the vector art doesn’t go blurry on a hi-DPI window anymore.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.