ui: unified theme selector with seasonal scene packs + animated scenes (C3X + C4) - #162
Open
ghbarker wants to merge 1 commit into
Open
ui: unified theme selector with seasonal scene packs + animated scenes (C3X + C4)#162ghbarker wants to merge 1 commit into
ghbarker wants to merge 1 commit into
Conversation
ghbarker
force-pushed
the
unified-theme-selector
branch
4 times, most recently
from
July 27, 2026 02:35
496e730 to
8a4b8a4
Compare
…s (C3X + C4) One theme system for both devices: a single selector param (BPThemePack) drives per-pack colors, steering-wheel art, and layered onroad scenes (static + animated), with an optional auto-seasonal mode where each pack declares its own date window. - selfdrive/ui/bp/lib/theme_pack.py — pack resolution + param plumbing. - selfdrive/ui/bp/lib/theme_scene.py + theme_scene_assets.py — the scene architecture: modular static/animated layers, one active_scene() the renderers draw through. - Renderers (mici + c3x augmented road view / cameraview / model / hud / torque / chevron / exp button) draw the active scene via that shared accessor — no per-file theme logic. - selfdrive/assets/bp_themes/** — eleven packs (holidays + seasonal), stored directly in git (see .gitattributes); soundd.py — per-pack sounds. - Params BPThemePack + BPThemeAutoSeasonal; on-device selector + sunnylink. - Tests: test_theme_scene.py, test_theme_seasonal.py. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Selector lists packs in calendar order of their season windows (8-Bit Racer stays the default entry); fixes the C3X theme dialog saving "Off" regardless of selection (callback read the DialogResult enum as the label).
ghbarker
force-pushed
the
unified-theme-selector
branch
from
July 30, 2026 03:52
8a4b8a4 to
b430c82
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The evidence that motivated this
Why the fix is shaped this way
BPThemePackpicks the active pack;theme_pack.selector_entries()is the single source of truth the C3X page, the MICI page, and sunnylink all read — so the menus can never disagree. Packs are listed in calendar order of their season windows (Jan→Dec), with Off and 8-Bit Racer pinned first.BPThemeAutoSeasonallets packs activate themselves inside their own declared date windows (fixed dates or movable feasts — Easter, Thanksgiving).theme_scene.py): every renderer draws through a singleactive_scene()accessor, so there is no per-renderer theme logic to keep in sync; the animated layers (snow, string lights, bats, the NYE ball drop) are procedural — zero image assets for scenery.The evidence afterwards
What each change is
selfdrive/ui/bp/lib/theme_pack.py: pack discovery, season windows, calendar-orderedselector_entries().selfdrive/ui/bp/lib/theme_scene.py+ renderer hookups (both devices): the scene architecture.selfdrive/assets/bp_themes/: eleven packs, each with colors, wheel art, scene, season window.selfdrive/ui/soundd.py: per-pack sound overrides.Test it yourself
Risks / limits
.gitattributesoptsbp_themes/**out of LFS).Screenshots
Captured on the PC preview (replay of a real drive, Minimal Driving View). Theme switching is live — no restart between these. Everything you see beyond the road — the falling snow, string lights, garlands, leaves, bats, the pumpkin — is procedural: zero image assets in the diff.
Halloween
Christmas
8-Bit Racer (same selector)
comma four (MICI) layout