Files
StarPilot/openpilot/starpilot/ui/assets/README.md
T
firestarsdog 6a469e232b Rework speed-limit control, integration, and HUD
Consolidates source, test, documentation, and UI asset changes authored by firestarsdog:

- 5f3ea81785 SLC Squish
- e54b3f9e36 Normalize stopped speeds to preserve SLC overrides
- fc981552b3 Clarify SLC targets and confirmation prompts
- 891454e47c Align speed HUD for clearer SLC prompts
- 4e4d258ad3 Visual Polish + Suppress "LAST" in UI
- 5b896476d6 rm historic adopted speed on engage

Generated device build outputs are recorded separately after the source commits.
2026-11-10 17:14:15 -05:00

4.6 KiB
Raw Blame History

Retained presentation assets

The speed group uses the existing font atlas with a tight dark contour in speed_limit_widget.py; it owns no background texture. The large header gradient and compact camera fade are no longer drawn. The bundled compact fade remains pinned in onroad-assets.json for the retained upstream artwork.

fonts contains the unchanged four Inter bitmap pairs and one Unifont bitmap pair used by the presentation reference, plus the supplied Sora wordmark font and its weight-800 bitmap pair. font-sources.json records the retained files' hash, original source font, notices and retained bitmap source. Subsetting and bitmap generation do not make these fonts MIT or newly authored by StarPilot.

Inter's source metadata identifies version 3.012, build git-06b166889, and SIL Open Font License 1.1. Its versioned license and each source font's embedded 2020 copyright record are retained under fonts/notices. The source TTFs match the pinned official openpilot assets. The publisher's Windows-hinted v3.12 release TTFs differ; the exact earlier build/export step is not established.

Unifont's source OTF matches the publisher's 17.0.02 archive exactly. Its full copyright, OFL text and COPYING document retain the dual-license explanation: OFL 1.1 or GPL version 2 or later with the GNU Font Embedding Exception. COPYING also describes other files in the publisher's source distribution; this package contains only the existing bitmap font pair.

The original bitmap-generation environment has not been reconstructed. The current recipe's glyph lists differ from the stored atlases, so these exact files are preserved without regeneration. They are not full language-coverage fonts.

notices/Bootstrap-MIT.txt preserves the pinned 2019–2021 Bootstrap Authors notice for the existing backspace icon. That icon is reused from the official asset tree, with no binary copy here. notices/Material-Design-Apache-2.0.txt preserves the existing attribution to modified Google Material Design Icons; this umbrella attribution does not identify every image's artistic source. The adjacent UI code license and root project license remain applicable to their respective code; they do not replace the font and image notices.

Como is no longer required by the Home brand role. The eGPU and Bluetooth icons are bundled under selfdrive/assets and pinned in home-assets.json; their specific artistic source records remain a separate provenance question. The Home brand role now uses the source-owned Sora bitmap, generated from the supplied Sora[wght].ttf at the font's maximum wght=800; it does not have a width axis. The generated pair is pinned in sora-brand-font.json and retains Sora's embedded copyright and SIL Open Font License notice. Home can now use the pinned source-owned Sora, Inter, and Unifont fonts without an external directory. An explicit font-directory override remains available and must pass the same byte validation.

The SLC ring, rectangular outline, buttons, arrows and steering-wheel cues are generated by python -m openpilot.starpilot.ui.assets.generate_speed_limit_shapes. The 8× coverage sampling happens offline; runtime shares one small atlas and draws tinted quads without per-frame shape tessellation or new shaders. The sign interiors and confirmation choices stay transparent. Tight dark edges support the light glyphs and outlines; only the New Limit caption pulses. Expanded Accept / Reject buttons have separate large and compact sprites with double-density antialiased strokes and a tight dark contour baked in. Each button is one tinted quad, including its pressed variant; interiors remain transparent. Button text uses measured ink bounds: action headings share a row, the speed and unit are centered together, and each complete text group has equal vertical margins. Both onroad profiles use a 128 × 144 portrait footprint. Large UI scales it by 1.3416 (the 402.5-to-300 PPI ratio) and normalizes font sizes to preserve physical lettering size. The compact footprint stays above the torque arc. State headings and targets are centered; long source/offset details use two supporting rows. Held overrides use the rectangular readout in either sign style so a driver-selected target cannot look like a posted Vienna limit. Pedal input replaces the number with Pedal until the controller reports a held target.

Open confirmations use 180 × 128 logical touch areas on large UI and 150 × 112 on compact UI. The Now: header carries the current controller target once; the proposed target and unit are inside Accept. The same dimensions drive rendering, touch handling, layout validation, and native editor artwork.