102 lines
7.5 KiB
Markdown
102 lines
7.5 KiB
Markdown
# UI brief for the redesign session
|
|
|
|
Written 2026-11-11 from the user's instructions and their screen recording
|
|
(`~/Videos/Recordings/recording_20261111_06-11-33.mp4`, 72 s, the original Python Nacre's new tab page). Frames from
|
|
it are in `docs/ui-reference/`. The current egui UI is a plain stand-in; it exists so every feature can be used and
|
|
tested. **The redesign starts only after the framework works** (the user's rule), in a new session.
|
|
|
|
Use the `app-taste` skill for all of it.
|
|
|
|
## What the user asked for
|
|
|
|
- Redo the whole UI/UX "just like Google Material You, give it all you want":
|
|
- Tonal-spot colour schemes generated from a seed colour, with the seed taken from the current website
|
|
(theme-color / favicon), from the system accent, from a palette, or from a custom colour. User themes.
|
|
- Nice animations everywhere (spring motion; the Motion setting scales or disables it).
|
|
- Material 3 Expressive details: wiggly (wavy) lines and progress bars, scalloped "cookie" shapes, pill buttons,
|
|
segmented buttons with a check mark on the selected segment, large rounded cards.
|
|
- The new tab page must look and behave like the one in the video: "animative, reactive and everything".
|
|
- Then the settings pages and everything else, in the same system.
|
|
- Build the new UI around the features that exist; don't drop features to fit a design.
|
|
|
|
## The new tab page in the video (the target)
|
|
|
|
Layout, top to bottom, centred in the page card:
|
|
1. Greeting: "Good morning, Jacob Ward" (medium weight, on-surface colour).
|
|
2. Clock: very large thin digits in the accent tint, seconds shown, small "AM" baseline-aligned to the right;
|
|
the date ("Wednesday, November 11") under it.
|
|
3. Shortcuts row: round icons with labels and a dashed "Add shortcut" circle.
|
|
4. A row of two cards:
|
|
- Now playing: artwork inside a scalloped cookie shape with a dotted ring around it (the ring is the visualizer;
|
|
the cookie spins while playing), title "Nothing playing / Play something in a tab", a seek line with times,
|
|
shuffle / previous / play / next / repeat, and a "No media" chip that names the source tab.
|
|
- Weather: moon/sun glyph, big temperature, "Clear · feels like 35°", high/low, rain chance, humidity, wind,
|
|
and the place name.
|
|
5. Search field: pill shaped, search glyph, "Search DuckDuckGo or type a URL", a round accent button at the right.
|
|
6. A row of three cards: Notes ("Jot something down…"), Reading list, Top sites.
|
|
|
|
Background, behind everything, animated and reacting to the cursor:
|
|
- None, Shapes (outlined and filled rounded shapes drifting), Blobs (large soft circles), Constellation (dots joined
|
|
by thin lines), Waves (several sine lines that bend near the cursor), Dot grid (a grid of dots that swells in a
|
|
circle around the cursor).
|
|
- Amount: Few / Some / Lots. Speed: Slow / Normal / Fast. "React to the cursor" switch.
|
|
- Image or GIF: Upload / Change / Remove, with Dim and Blur sliders; the animated layer draws over the image.
|
|
|
|
Customize panel: slides in from the right as a rounded panel over the page (the page stays visible and live while
|
|
settings change), with sections BACKGROUND, IMAGE OR GIF, ELEMENTS (each element has up/down arrows and a switch:
|
|
Greeting, Clock, Shortcuts, Now playing, Weather, Search, Notes, Reading list, Top sites) and DETAILS (24-hour clock,
|
|
Show seconds, Your name, Weather place with a city suggestion list, Units Auto / °C / °F).
|
|
|
|
Chrome seen in the video (for the toolbar redesign): one rounded window card, a pill tab with a close button, round
|
|
"+" button, toolbar icons (back, forward, reload, home, incognito mask), a pill address field with a star, then
|
|
password key, history, downloads, QR/apps grid, developer tools, shield, and a three-dot menu. The bookmarks bar shows
|
|
a hint when empty. The page sits in a floating rounded card with a margin.
|
|
|
|
## What already exists to build on
|
|
|
|
- `src/theme.rs`: `Palette` (accent, surfaces, text, outline...), seed selection (website / system / palette /
|
|
custom), dark/light, roundness, animation time. Replace its simple HSL maths with real Material tonal palettes
|
|
(HCT) when redesigning; keep the `Palette` roles so the rest of the UI keeps working.
|
|
- `src/ui/pages/newtab.rs`: every element and every background from the video already works in plain form
|
|
(clock, greeting, search, shortcuts, now playing, weather via Open-Meteo, notes, reading list, recent/top sites;
|
|
shapes, blobs, particles, waves, dots; image with dim and blur). Settings live in `Settings::ntp`.
|
|
Missing against the video: the Constellation background (the setting calls it "particles": add the lines), the
|
|
Customize panel over the page (today it's a settings sub-page), top sites as its own card, shuffle/repeat buttons.
|
|
- `src/ui/widgets.rs`: switch, segmented control, rows, cards. These are the pieces to restyle first.
|
|
- `src/media.rs`: visualizer levels (cava or simulated) ready for the dotted ring.
|
|
- Website colours: `META_JS` in `src/inject.rs` reports `theme-color` and the page background; `Tab::theme_color`
|
|
feeds `theme::seed`.
|
|
|
|
## Open questions for the user at the start of the UI session
|
|
|
|
- Keep egui for the redesigned UI, or draw the chrome with something else? (egui can do all of the above with custom
|
|
painting; text shaping and blur are its weak spots.)
|
|
- Fonts: the video uses a geometric sans (looks like Google Sans / Outfit) with thin clock digits.
|
|
|
|
## Welcome page (nacre://welcome), added 2026-11-11
|
|
|
|
Source: the user's recording `~/Videos/Recordings/recording_20261111_23-15-56.mp4` (13 s, their reference browser).
|
|
Frames: `docs/ui-reference/welcome-*.jpg`. The user: "I want this to be the welcome page, improve any way you want."
|
|
So it's a target to beat, not a pixel spec. Existing code: `Page::Welcome` → `misc::welcome`, `welcome_step`.
|
|
|
|
Flow: a centred translucent card over a live animated backdrop (the NTP Shapes background: soft tonal cookies,
|
|
blobs, pills drifting), a step indicator on top (dots, the current one a stretched pill, joined by a wavy line),
|
|
and a footer row: `← Back` on the left, `Skip setup` text button and a filled pill `Continue →` on the right
|
|
(`Get started →` on step 1, `Start browsing →` on the last). Steps change with a soft crossfade + blur and a slight
|
|
slide; the card resizes on a spring. Steps:
|
|
1. **Welcome**: app mark (gem) in a tonal cookie, "Welcome to Nacre", one-line pitch, feature chips
|
|
(Ad blocking, Privacy mode, Your colours, Built-in VPN).
|
|
2. **Bring your things**: chips for what to import (Bookmarks, History, Home page & search), detected browsers
|
|
on this computer (with an empty state naming the browsers it looks for), and "Passwords from a file" with
|
|
Choose CSV… and short export instructions.
|
|
3. **Make it yours**: Mode (Follow the system / Light / Dark), Colour (From each website / System accent /
|
|
A colour I pick + swatches), New tab background chips; everything previews live as you click.
|
|
4. **Privacy, your way**: rows with icon, title, subtitle and switch: Block ads and trackers, Privacy mode,
|
|
HTTPS-only, Ask sites not to track you; sensible defaults already on.
|
|
5. **Search with**: engine chips (DuckDuckGo, Google, Brave, Startpage, Bing, Kagi), When Nacre starts
|
|
(new tab / continue where I left off / home page), Writing (check spelling switch).
|
|
6. **You're all set**: check mark in a tonal circle that pops in, "Everything here lives in Settings too",
|
|
a "Make Nacre your default browser" tonal button.
|
|
|
|
Improve on it: real keyboard flow (Enter = continue, Esc = skip), Motion setting respected, every choice written
|
|
to settings immediately, works in light mode too, no scroll inside the card at normal window sizes.
|