Skip to content

NavX UI guidelines ​

The single reference for anyone building a screen for the NavX shell (shellx) or an app that runs in it. How to build it is in ui-sdk.md. Screenshots come from the emulated unit (navx-shell/tools/shots.mjs), with made-up data.

home

Principles ​

  1. Legible on the real screen. The unit's LCD is old and washed out (see Colour), and you read it at a glance while driving. High contrast matters more than anything else: big type, bold where it matters, no thin grey text.
  2. Three inputs, nothing hidden. Everything works with turn, press and MENU. There's nothing you can't see on the screen.
  3. One look. Use our fonts, the theme tokens and the library's widgets. Don't draw your own status bar, and don't invent new focus styles.
  4. Our own pixels. We draw everything on the pixel grid ourselves. There's no BMW artwork, fonts or text, and no anti-aliasing.

Input ​

There are four events: prev, next (one per knob step), select (knob press) and home (MENU).

  • Turn and press only. No long-press, no hold-to-repeat, no hold-to-cancel, and no double-press. This lets steering-wheel buttons or any other source drive the same four events later, and a driver never has to learn a hidden gesture.
  • MENU always goes home, from any screen, any depth, any app. At home, MENU leaves the shell (for now: back to the launcher).
  • Back is an item on the screen: the first focus stop of every screen. It's drawn as ‹ before the title in the status bar. When it's focused, the ‹ and the title sit in an accent box. Pressing it goes one level up. At an app's top level it closes the app.
  • No other buttons (BMBT keys, the radio's) for the UI. They belong to the stock units.

back focused

home ──press──▶ split ──Full item──▶ full
  ▲               │ back               │ back
  └───────────────┘◀───────────────────┘
MENU from anywhere: home
  • Home: the menu on the left (Audio, Telephone, Car, GPS, Apps, Settings), and a live preview of the selected entry on the right. The preview has no focus; turning moves through the menu.
  • Split: the entry opens beside the menu. The menu row turns accent-dark (it's where you are, not the focus) and the panel has the focus. Audio, Telephone and Apps open split.
  • Full: the whole body below the status bar. Car, GPS and Settings open full. An app asks for full or split; the shell decides.
  • Full / Split item: a screen that has both offers an icon button (expand ⤢ to go full, collapse back to split). It's an icon, not a word (see Icons and words). Back from full goes to split, and back from split goes home.
  • Inside a screen, a list of sections works like home: the sections on the left, the focused one's content previewed on the right, press to enter, back to leave (Car: Status, Trip, Data, Settings).

split full

Focus ​

  • Ring order: back first, then the items in reading order (left to right, top to bottom). Only actionable items get a stop; values you can only read get none.
  • No wrap: turning stops at the first and last stop. A screen can join its ends where that's natural (ibusx: right of "live" is back).
  • Where focus lands: on entering a screen, focus goes to its most likely action, never to back:
    • Audio: the station playing.
    • Status: the lock button that would change the state.
    • Car: the section you were last in.
    • Coming back up: the item you came from.
  • The look: the focused item is a solid accent box with ACC_TEXT in a bold font. The current or selected value (the preset playing, the open section) is accent-dark with ACC_LIGHT text and an accent outline. An unfocused button has a 1-px outline (LINE or DIM).
  • Scrolling lists keep the focused row on screen; the list moves a row at a time.

Editing values ​

edit

  • Press a setting: its choices open on the right (or in a box beside the row), the current value marked with a dot, and Cancel last, under a rule.
  • Turn picks a choice; press takes it. Cancel, or 15 s without input, leaves the value as it was.
  • While editing, the row is accent-dark with an accent outline, and the status bar says EDITING.
  • One-shot actions (Reset, Show) use the same choice list, with Cancel, so an accidental press can't reset a value.

Layout ​

The screen is 400 × 234 pixels, RGB555, no anti-aliasing.

AreaRowsSize
Status bar0–16, rule at 17400 × 17
Body18–233400 × 216 (full)
Split app18–233, x 152–399248 × 216
Home menux 0–150, rule at x 151151 wide
  • Status bar (the shell's; apps never draw it):
    • Left: back ‹ and the title, CAPITALS, Px13 bold.
    • Right: lock state (icon + word; Unlocked in WARN), outside temperature (°C), clock (HH:MM, bold).
  • Margins: 8–12 px from the screen edge, 10 px inside the split panel (it starts at x 163).
  • Rows: 30 px (menus, sections; text at +6), 28 px (lists, settings; text at +5), 24 px (label/value lines), 17–18 px (dense lists, choices).
  • Label / value (ui_kv):
    • Label on the left in DIM, Px13.
    • Value right-aligned in Px16 bold, the unit after it in Px13.
    • A LINE rule under it.
  • Tiles (ui_tile): 126 × 90, label, Big value, unit, an optional bar.
  • Alignment:
    • Numbers right-aligned in their column.
    • Words left-aligned.
    • Section headers in CAPITALS, Px13 bold, LABEL colour, on their own line.

Typography ​

The fonts are our own bitmap fonts, drawn by hand (ui/fonts/). Every font covers ASCII, Polish (ĄĆĘŁŃÓŚŹŻ), äöüéß, ° · ‹ › × – —.

FontCellUse
Px1315 px (cap 9)labels, help, lists, the status bar
Px13 bold15 pxsection headers, status bar title and clock, small buttons
Px1617 pxsetting values, choice lists
Px16 bold17 pxmenu entries, values, anything focused
Big22 px (cap 15)the one main value of a screen (station, distance, a tile)
  • At most one Big per area.
  • Text on the accent is always bold.
  • Strokes are at least 1 px in Px13 and 2 px in the bold fonts and Big. Avoid 1-px vertical hairlines for anything you need to read; the bench LCD smears them. Lines and boxes that carry meaning (a door open, a bar) are 2 px or more.
  • Spacing comes from the font's advance. Leave at least 4 px between a value and its unit, and 8 px between columns.

Colour ​

The theme tokens are ui_col[C_*] (theme.c), day and night, and the shell switches them. Don't use RGB values in a screen.

TokenUse
BG, BAR, PANELbackgrounds: body, status bar, overlays/boxes
TEXT, TEXT2main text, secondary text
DIM, LABELlabels, help; section headers
MUTEDthe least important text (hints, arrows); still ≥ 4.5:1
LINErules and outlines (decoration only, never text)
ACC, ACC_TEXTfocus: the box and its text
ACC_DARK, ACC_LIGHTcurrent/selected: the box and its text
RED, YELLOW, GREEN, BLUE, MINT, WARNstates: open/danger, window/caution, OK, coolant, a target, unlocked

The LCD is washed out. On the real E46 screen, black measures about (50, 55, 62) and white about (240, 250, 228), so the best ratio it can show is about 11:1. A colour v on the panel comes out as black + v·(white − black). node ui/tools/contrast.mjs applies that to every pair the screens use. The rules:

  • Text: 4.5:1 or more after the LCD, in day and night. Labels and values you need while driving: 5:1 or more.
  • Exception: text on the accent (3.6:1 day). We keep the accent strong so the focus box shows at a glance; its text is always bold, which makes up for it.
  • No thin grey for anything important. If a label matters, use DIM or brighter, never MUTED.
  • LINE is decoration (1.9:1). Never use it for text or for the only sign of a state.
  • Don't say a state by colour alone. Pair it with a word or a shape (Unlocked, open, the PDC arcs' sizes).
  • Night is amber on black: lower light, same rules.

contrast

Before/after the review: columns 1–2 as drawn, columns 3–4 as the LCD shows them. MUTED, DIM, LINE, WARN and ACC_LIGHT went up.

night

Overlays ​

Overlays are the shell's. Apps never draw them, and keep running under them.

OverlayPriorityShowsInputEnds
PDChighestin reverse (or a park-distance message), the whole screenany event hides it; that event does nothing elsereverse out, or any event
Check-control (planned)higha box at the bottom right, its colour by severitynone takenits timeout, or the condition clears
Door notenormala box at the bottom right with the car, the door or window marked, a bar for the time leftnone taken5 s, or the door closes

While an overlay takes the input, the app underneath loses the focus flag (hosted: NAVX_UI_HF_FOCUS clears) and draws no focus.

door note pdc

Icons and words ​

  • Icons for controls whose meaning is universal and whose word would be long or vary by language: full/split (expand/collapse), lock/unlock (with the word next to it), the knob hints (turn, press).
  • Words for everything else: menu entries carry an icon and a word.
  • Icons are 12 × 12 on the pixel grid (ui/fonts/icons.txt), our own, with 2-px strokes where possible.

Wording ​

  • Short labels: one or two words ("Consumption 1", "Speed limit"). Use Title case for items and CAPITALS for headers and the status bar title.
  • Say flash, never "card" (the unit has a NAND flash chip).
  • Units: SI with a space ("54 km/h", "91 °C", "14.1 V", "8.4 l/100 km"), °C and km. Time is 24 h, HH:MM.
  • States:
    • Empty: say what's missing and where it comes from ("No apps disc: apps come from APPS.TXT on a disc").
    • Waiting: "Waiting for the bus".
    • Error: what failed, in words, no codes ("Bad CRC", "Not on the disc").
    • Never leave a blank area.
  • Help text (beside settings) says what the setting does in a line or two, in plain words.

Do and don't ​

DoDon't
back as the first stop, ‹ + titlea "Back" row at the bottom of a list
choices with Cancel last, 15 s timeouthold the knob to cancel
focus on the likely actionfocus on back after entering
one Big value per areaseveral Big numbers fighting
DIM labels, bold valuesMUTED or LINE for text you need
an icon for full/splitthe word "Full" in a small box
draw in your area only (hosted)draw your own status bar or clock
say why when something can't runa silent empty screen

hosted app

ibusx inside the shell: its title and back item in the shell's status bar, its area below.

The NavX SDK is private for now; these docs are public.