Skip to content

feat(tui): use the official brand in the launchpad hero - #1374

Merged
huichen merged 1 commit into
mainfrom
feat/brand-hero
Oct 26, 2026
Merged

huichen merged 1 commit into
mainfrom
feat/brand-hero

Conversation

@huichen

@huichen huichen commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

What this carries

One commit: the launchpad hero draws the official FutureOS mark instead of a stand-in.

widgets.rs gains a 13×4-cell rendering sampled from the official logo (https://future-os.cn/logo.png, described in the source as byte-identical to the desktop app icon). Each entry in LOGO_PIXELS is one source pixel and two pixels make a ▀ cell, so the silhouette and colours come from the real mark rather than an approximation of it — the alternative was inventing a second brand symbol that would not match the product's own.

launchpad.rs / screen.rs / layout.rs place the hero block and size the rows around it; preferences.rs carries the toggle; the four prose documents (docs/guide/tui{,.zh-CN}.md, docs/tui/workbench-spec{,.zh-CN}.md) are updated with it, so make check-docs stays meaningful.

Terminals without truecolour get the cell shapes without the sampled colours — the wordmark still reads.

Why a fresh branch instead of the integration branch

The same work sat on dev-huichen, but merging origin/main into it conflicted in launchpad.rs: main carries this area as the squash of the previous TUI branch while dev-huichen carries the individual commits, so git saw two independent edits where the content is in fact identical. Cherry-picking the one commit onto origin/main reproduces exactly the same tree (git diff 265e4078 HEAD is empty, 9 files / +229−57) without rewriting dev-huichen. The integration branch can catch up with a plain reset once this lands.

Verification

cargo test -p future-tui --lib on this branch: 1229 passed, 0 failed (run here, not inherited from a report). The three screen-space audits (workbench_perceptual, workbench_semantics, workbench_interaction) and make check-docs are cleared by CI along with the library tests — in particular the tui-cli jobs compile this widget code on both Linux and Windows, which is where a ▀-cell/render change would break if it broke anywhere.

@huichen
huichen enabled auto-merge (squash) October 26, 2026 11:15
@huichen
huichen merged commit 690aa83 into main Oct 26, 2026
10 checks passed
@huichen
huichen deleted the feat/brand-hero branch October 28, 2026 10:36
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.

1 participant