UI: squircle corners, rounded font and flat neutral palette (proposal)

Open
#354 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
css, rust
Domain
design, frontend

Research direction

Start by locating the UI stylesheet and index.html, where the proposal says the CSS changes and embedded Nunito font would go; inspect the update card and Settings > Diagnostics > Logs layouts there. Compare the proposed palette, corner treatment, and responsive changes against the attached screenshots, then run scripts/ui-test.py and check the UI at narrow window sizes. Done means the visual refresh and both layout fixes work across supported systems without a Rust change or new dependency.

Written by the indexing model from the issue text.

Description

enhancement
What you're trying to do

Give the window a softer, more distinct look. Today it is clean but cool-toned and a little gradient-heavy (blue-tinted greys, a few gradients), and its corners are plain border-radius.

What you'd like Kiri to do

A visual refresh, CSS only, no new dependency and no Rust change:

  • corner-shape: squircle on every element, with the existing border-radius as the fallback. WebView2 (Chromium 139+) shows squircles; WebKit keeps today's round corners.
  • Nunito (variable woff2) as the fallback of --ui-font; macOS keeps ui-rounded.
  • A neutral grey palette without the blue tint, and the few gradients (language dialog hero, "What's new" hero, External rows, the fade behind row actions) replaced by solid colours.
  • Two responsive fixes I found while testing: the update card (fixed 352px wide, its buttons are clipped in a narrow window) and Settings > Diagnostics > Logs (fixed columns squeeze the message to a few words).

I have it working on Windows (WebView2); before/after screenshots attached.

Before (left) / After (right), light mode above and dark mode below

final-compare

Settings > Diagnostics > Logs, before
b-dg-640x520

after
f-dg-640x520

Update card, before
t-upd-800x420

after
f-upd-800x420

Things I'd like your view on:

  • Size. The font is embedded as base64 in index.html (about +52 KB), so the binary grows by about 80 KB. If the Speed check's size limit is a problem I can ship a system font stack only (ui-rounded, Segoe UI Variable) and drop Nunito.
  • Circles and dots. border-radius: 50% elements also become squircles in this version. I can keep them round with corner-shape: round if you prefer.
  • Parity. The same CSS applies on all three systems, with no if (WIN) gate. So far I have only built and run it on Windows; scripts/ui-test.py is still to run.

I'd send it as one pull request once we agree on the direction, or split it (squircle / font / palette / responsive fixes) if you'd rather review them separately.

Would you like to build it?

Yes, once we've agreed on the approach

Dominant language
Rust
Stars
7.5k
Forks
329
Avg merge
7h 48m
Merged PRs (30d)
105

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libracoder/kiri

All issues in libracoder/kiri

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.