Phin Tech docs Rabbit Ears Manager in the store →

Themes

The station has two looks, and each profile has its own (Profile.theme, a StationTheme). It's picked beside the profile in the Manager (On Demand → Profiles), or on the TV with Theme in the station menu, which changes it for whoever's watching. It's part of the profile, so it follows them to every screen. A profile that hasn't picked gets the old station-wide setting (stationTheme, from when there was one look for everybody), else Modern; so does the "Who's watching?" screen, where it's nobody yet.

What follows it #

The theme was first for the apps and chrome only, with the broadcast channels 90s Cable in both. That changed: the channels the station draws follow it too, one at a time.

So far:

Still 90s Cable (or their own) whichever is picked: the Video Store, the resume question's rows it shares with On Demand's card, the credits over a Plex music video, the tuner, the test pattern, the screensavers and the iPhone's remote.

How a screen follows it #

RootView (Packages/Sources/StationUI/App/RootView.swift) takes the look of whoever's watching (StationTheme.of, defined with StationTheme and .key in Packages/Sources/StationCore/Core/StationThemeKind.swift) and puts it in the environment (\.stationTheme); a view reads it there, never the setting itself, so the snapshot renderer can draw both (cable-*.png beside ondemand-*.png). The looks differ in a few roles, not in every line, and those roles, modifiers, and views (plus ModuleHeader in Packages/Sources/StationUI/Station/ChannelModules.swift) are in Packages/Sources/StationUI/Core/StationTheme.swift:

Role Use
theme.heading, theme.accent A title's colour, and the line under it.
themedShadow() 90s Cable's hard shadow under text.
themedFocus(lit:corner:scale:glow:) A poster or tile, and how it's marked in focus.
themedRow(lit:corner:rest:ring:) The fill of a row, pill or field; theme.rowText(lit:) for its text.
themedPanel(corner:modern:) A box over the screen.
ThemeBackdrop, ThemeHeaderBand, ThemeFooterBand What's behind the screen, its header and its footer.
themedText(_:_:_:shadow:) A line of type: face, colour (ThemeInk) and 90s Cable's shadow in one.
ThemedPlate A panel of figures: the slate-blue plate, or a pane of glass.
themedChip() A label over a map.
ThemeNightBackdrop Behind a programme: the night sky, or Modern's glows.
ModuleHeader A module channel's header, in either look.

A view drawn once and kept (.equatable(): the guide's rows, the maps' line layers) is given the theme, or rebuilt with .id(theme), so a change of look reaches it.

A new look is a case of StationTheme and a branch in each of those.