0.129 P3: EffectCraft switch motion, VectorCraft Settings icons, FigCraft layout prototypes
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 4m18s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m52s
release-gate / verify (push) Successful in 11m14s

- Switches slide in 160 ms on Orbit's curve (designed in EffectCraft, design/motion/switch); Reduce motion: no slide, 120 ms fade.
  The setting changes on the press; the animation never holds it up.
- Family, Rooms (TV and phone) and Account get their own icons (design/interface/build-settings-icons.py)
- Orbit Simple and Retro Cable prototypes for approval (design/layouts), not in the app

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 21:03:08 +00:00
co-authored by Claude Opus 5.5
parent 7b78ad607c
commit e72a0f12a4
39 changed files with 11741 additions and 10 deletions
@@ -164,9 +164,9 @@ internal class OrbitSettings(context: Context) {
internal enum class SettingsSection(val label: String, val line: String, val icon: Int) {
Channels("Channels", "Turn on, make your own, suggestions", R.drawable.orbit_icon_all),
OnScreen("On screen", "Look, subtitles, the cast, motion", R.drawable.orbit_icon_entertainment),
Family("Family", "Profiles, PIN, Kids, Wind Down", R.drawable.orbit_icon_profile),
Rooms("Rooms and phones", "Other TVs and paired phones", R.drawable.orbit_icon_movies),
Account("Account", "Server, sign-in, version", R.drawable.orbit_icon_profile),
Family("Family", "Profiles, PIN, Kids, Wind Down", R.drawable.orbit_icon_family),
Rooms("Rooms and phones", "Other TVs and paired phones", R.drawable.orbit_icon_rooms),
Account("Account", "Server, sign-in, version", R.drawable.orbit_icon_account),
}
/** The heading a channel number sits under, matching the blocks in the guide. */
@@ -212,17 +212,30 @@ private fun SettingLine(title: String, detail: String, button: @Composable () ->
}
}
/** A switch: a pill, green and to the right when on. Focus rings it in the look's accent. */
/**
* A switch: a pill, green and to the right when on. Focus rings it in the look's accent.
* Motion (0.129 stage 3, from design/motion/switch, made in EffectCraft): the thumb slides and the track turns in 160 ms on
* Orbit's one curve. The press acts at once: [onClick] runs before any of it, and a second press mid-slide just turns it
* round. With Reduce motion the thumb jumps and only the colour fades, in 120 ms.
*/
@Composable
internal fun OnOff(on: Boolean, modifier: Modifier = Modifier, enabled: Boolean = true, onClick: () -> Unit) {
var focused by remember { mutableStateOf(false) }
val track = if (on) themed(Color(0xFF6EDCAA)) { Mint } else themed(Color(0xFF283C64)) { Blue }
val target = if (on) themed(Color(0xFF6EDCAA)) { Mint } else themed(Color(0xFF283C64)) { Blue }
val calm = Motion.reduce
val track by androidx.compose.animation.animateColorAsState(target,
androidx.compose.animation.core.tween(if (calm) Motion.CALM else SWITCH_MS, easing = Motion.Ease), label = "switch track")
val along by androidx.compose.animation.core.animateFloatAsState(if (on) 1f else 0f,
if (calm) androidx.compose.animation.core.snap() else androidx.compose.animation.core.tween(SWITCH_MS, easing = Motion.Ease), label = "switch thumb")
Box(modifier.onFocusChanged { focused = it.isFocused }.size(64.dp, 34.dp).border(if (focused) 3.dp else 0.dp, if (focused) Yellow else Color.Transparent, RoundedCornerShape(17.dp))
.padding(3.dp).clip(RoundedCornerShape(14.dp)).background(track.copy(alpha = if (enabled) 1f else .5f)).clickable(enabled = enabled, onClick = onClick)
.semantics { stateDescription = if (on) "On" else "Off" }, contentAlignment = if (on) Alignment.CenterEnd else Alignment.CenterStart) {
Box(Modifier.padding(horizontal = 4.dp).size(20.dp).clip(androidx.compose.foundation.shape.CircleShape).background(Color.White))
.semantics { stateDescription = if (on) "On" else "Off" }, contentAlignment = Alignment.CenterStart) {
// 58 dp inside, 4 dp either side, a 20 dp thumb: 30 dp of travel.
Box(Modifier.offset(x = 30.dp * along).padding(horizontal = 4.dp).size(20.dp).clip(androidx.compose.foundation.shape.CircleShape).background(Color.White))
}
}
/** How long the switch takes to slide, as in the EffectCraft design. */
internal const val SWITCH_MS = 160
/** A card above the channel list: one of the cast, what it opens, and a line on what it's for. */
@Composable
@@ -235,9 +235,16 @@ private fun ToggleRow(title: String, on: Boolean, modifier: Modifier = Modifier,
}
Text(if (on) "On" else "Off", color = if (on) ArcadeColours.Ink else ArcadeColours.Muted, fontSize = 13.sp, fontWeight = if (on) FontWeight.Bold else FontWeight.Normal)
Spacer(Modifier.width(8.dp))
Box(Modifier.size(36.dp, 18.dp).background(if (on) ArcadeColours.Cyan else ArcadeColours.Night, RoundedCornerShape(9.dp)).border(1.dp, ArcadeColours.Line, RoundedCornerShape(9.dp)).padding(2.dp),
contentAlignment = if (on) Alignment.CenterEnd else Alignment.CenterStart) {
Box(Modifier.size(14.dp).background(ArcadeColours.Ink, RoundedCornerShape(7.dp)))
// The same motion as Orbit's settings switch (EffectCraft design, design/motion/switch): 160 ms slide and colour; with
// Reduce motion, no slide and a 120 ms fade. The setting has already changed when it starts.
val calm = tv.orbit.classic.Motion.reduce
val track by androidx.compose.animation.animateColorAsState(if (on) ArcadeColours.Cyan else ArcadeColours.Night,
androidx.compose.animation.core.tween(if (calm) tv.orbit.classic.Motion.CALM else tv.orbit.classic.SWITCH_MS, easing = tv.orbit.classic.Motion.Ease), label = "toggle track")
val along by androidx.compose.animation.core.animateFloatAsState(if (on) 1f else 0f,
if (calm) androidx.compose.animation.core.snap() else androidx.compose.animation.core.tween(tv.orbit.classic.SWITCH_MS, easing = tv.orbit.classic.Motion.Ease), label = "toggle thumb")
Box(Modifier.size(36.dp, 18.dp).background(track, RoundedCornerShape(9.dp)).border(1.dp, ArcadeColours.Line, RoundedCornerShape(9.dp)).padding(2.dp),
contentAlignment = Alignment.CenterStart) {
Box(Modifier.offset(x = 18.dp * along).size(14.dp).background(ArcadeColours.Ink, RoundedCornerShape(7.dp)))
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

+40
View File
@@ -0,0 +1,40 @@
"""Settings rail icons for 0.129 stage 3 (Paul, 10 November 2026: Rooms gets a TV-and-phone icon, and Account and Family stop
sharing one person). Same family as the other Orbit icons: 96 px artboard, silver line or fill, round joins, 5 px strokes;
the app tints them. VectorCraft makes the editable .vectorcraft and the PNG; the app takes a lossless WebP.
Run: python3 design/interface/build-settings-icons.py
"""
import os
import subprocess
from pathlib import Path
from PIL import Image
HERE = Path(__file__).resolve().parent
ROOT = HERE.parents[1]
OUT = HERE / 'icons'
RES = ROOT / 'android/app/src/main/res/drawable-nodpi'
ENV = dict(os.environ, XDG_DATA_HOME=str(ROOT.parent / 'orbit-tv/.tooling/font-data'))
C = '#E8EDF5'
S = f'fill="none" stroke="{C}" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"'
ICONS = {
# A TV and, beside it, a phone: other rooms' TVs and the phones paired to this one.
'rooms': f'<rect x="6" y="18" width="54" height="38" rx="6" {S}/><path d="M22 68H44M33 56V68" {S}/>'
f'<rect x="66" y="30" width="24" height="52" rx="5" {S}/><path d="M74 74H82" {S}/>',
# Two people, a grown-up and a child: who watches.
'family': f'<circle cx="32" cy="28" r="14" fill="{C}"/><path d="M6 84C6 62 17 52 32 52S58 62 58 84Z" fill="{C}"/>'
f'<circle cx="75" cy="46" r="10" fill="{C}"/><path d="M63 84C63 71 68 64 75 64S89 71 89 84Z" fill="{C}"/>',
# The server: two stacked units with their lights, and a link down to this box.
'account': f'<rect x="14" y="12" width="68" height="26" rx="6" {S}/><rect x="14" y="44" width="68" height="26" rx="6" {S}/>'
f'<circle cx="28" cy="25" r="4" fill="{C}"/><circle cx="28" cy="57" r="4" fill="{C}"/><path d="M44 25H68M44 57H68" {S}/>'
f'<path d="M48 70V86M34 86H62" {S}/>',
}
for name, body in ICONS.items():
svg = OUT / f'orbit_icon_{name}.svg'
svg.write_text(f'<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96">{body}</svg>')
for out, options in ((svg.with_suffix('.vectorcraft'), []), (svg.with_suffix('.png'), [])):
subprocess.run(['vectorcraft-cli', 'convert', str(svg), str(out), *options], env=ENV, check=True, stdout=subprocess.DEVNULL)
Image.open(svg.with_suffix('.png')).convert('RGBA').resize((96, 96), Image.LANCZOS).save(RES / f'orbit_icon_{name}.webp', lossless=True)
print('made', name)
Binary file not shown.

After

Width:  |  Height:  |  Size: 1019 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96"><rect x="14" y="12" width="68" height="26" rx="6" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/><rect x="14" y="44" width="68" height="26" rx="6" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/><circle cx="28" cy="25" r="4" fill="#E8EDF5"/><circle cx="28" cy="57" r="4" fill="#E8EDF5"/><path d="M44 25H68M44 57H68" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/><path d="M48 70V86M34 86H62" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/></svg>

After

Width:  |  Height:  |  Size: 715 B

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96"><circle cx="32" cy="28" r="14" fill="#E8EDF5"/><path d="M6 84C6 62 17 52 32 52S58 62 58 84Z" fill="#E8EDF5"/><circle cx="75" cy="46" r="10" fill="#E8EDF5"/><path d="M63 84C63 71 68 64 75 64S89 71 89 84Z" fill="#E8EDF5"/></svg>

After

Width:  |  Height:  |  Size: 309 B

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96"><rect x="6" y="18" width="54" height="38" rx="6" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 68H44M33 56V68" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/><rect x="66" y="30" width="24" height="52" rx="5" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/><path d="M74 74H82" fill="none" stroke="#E8EDF5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/></svg>

After

Width:  |  Height:  |  Size: 613 B

File diff suppressed because it is too large Load Diff
+1
View File
@@ -0,0 +1 @@
frames/*.svg
+35
View File
@@ -0,0 +1,35 @@
# Orbit Simple and Retro Cable: layout prototypes (0.129 stage 3, 10 November 2026)
These are design proposals for Paul's approval. Nothing here is in the app yet, and Orbit Original stays as it is. Every
programme, time and line-up is mock data, and each frame is labelled MOCK DATA.
## Files
- `build-layouts.py` writes eight 1920×1080 frames, then converts each with `figcraft-cli` into an editable `.figcraft`
file (named groups such as "Masthead", "Focus ring", "Now and Next", "Surf strip") and a PNG.
- The SVGs embed images, so they aren't kept. Run the script to remake them.
- `layouts-sheet.png` shows all eight frames on one page.
## Orbit Simple: accessibility first
- `simple-1-home`: four large choices in one row, plus the programme on now. Only Left and Right move.
- `simple-2-guide`: a list, not a grid. The focused channel opens to show Next and what OK does.
- `simple-3-watching`: a large banner with the time left, subtitles state and Next.
- `simple-4-focus-states`: resting, focused, chosen and unavailable, for a card, a switch and a button.
The rules:
- Type is at least 30 px at 1080p, and titles are 44 px or more.
- Focus is a gold fill, a ring and bold words, never colour alone. Navy on gold is 13.5:1, and white on panel is 12:1.
## Retro Cable: channel surfing
- `cable-1-home`: the picture is the home screen, with a cable-box number, a surf strip of nearby channels, and the Now and
Next bar.
- `cable-2-guide`: the picture and the clock above a two-tone grid of half hours.
- `cable-3-surfing`: what a channel change shows for 4 seconds.
- `cable-4-focus-states`: the focus states for this layout.
## Motion
- The switch motion is designed in EffectCraft (`design/motion/switch`).
- Reduce motion turns the switch into a fade, and makes the Now and Next bar simply appear.
+379
View File
@@ -0,0 +1,379 @@
"""Layout prototypes for 0.129 stage 3 (Paul, 10 November 2026): Orbit Simple and Retro Cable, for FigCraft.
Design only: nothing here is in the app, and Orbit Original stays as it is. Every programme, time and channel line-up is
MOCK DATA, labelled on each frame. Frames are 1920 x 1080 SVG, converted with figcraft-cli into editable .figcraft files
(named groups: "Masthead", "Focus ring", "Now and Next" and so on) and exported to PNG.
- Orbit Simple: accessibility first. Large type (at least 30 px body at 1080p, 44 px titles), five things on a screen at most,
one way to move on each screen, a focus that is a filled gold card and a ring, never colour alone, and words on every
control.
- Retro Cable: channel surfing. The picture is the home screen, a cable-box number and a Now and Next bar sit over it, and the
guide is a two-tone grid of half hours. Original artwork in Orbit's own colours; no other product's look is copied.
Run: python3 design/layouts/build-layouts.py
"""
import base64
import io
import os
import subprocess
from html import escape
from pathlib import Path
from PIL import Image
HERE = Path(__file__).resolve().parent
ROOT = HERE.parents[1]
RES = ROOT / "android/app/src/main/res/drawable-nodpi"
ICONS = ROOT / "design/interface/icons"
ENV = dict(os.environ, XDG_DATA_HOME=str(ROOT.parent / "orbit-tv/.tooling/font-data"))
NAVY, DEEP, PANEL, BLUE, GOLD, MUTED, WHITE, INK = "#071632", "#0C2148", "#12356B", "#194C91", "#FFDE59", "#B7CBE8", "#FFFFFF", "#E8EDF5"
MINT, MOCK, CABLE1, CABLE2, CABLEHI = "#7EE0A8", "#FF9F43", "#10306A", "#183E80", "#2B5CB0"
BODY, COND, HEAD = "Barlow", "Barlow Condensed", "Anton"
def uri(path, max_w=None):
im = Image.open(path).convert("RGBA")
if max_w and im.width > max_w:
im = im.resize((max_w, round(im.height * max_w / im.width)))
buf = io.BytesIO(); im.save(buf, "PNG", optimize=True)
return "data:image/png;base64," + base64.b64encode(buf.getvalue()).decode()
LOGO = {k: uri(RES / f"{v}.webp", 480) for k, v in {
"orbit": "orbit_logo", "one": "orbit_one_epg", "two": "orbit_2_epg", "three": "orbit_three_epg", "gold": "orbit_gold_epg",
"terra": "orbit_terra_epg", "afterdark": "orbit_after_dark_epg", "vortex": "vortex_epg", "paradox": "paradox_epg",
"drivein": "orbit_drive_in_epg", "tots": "orbit_tots_epg", "riot": "orbit_riot_epg", "vhs": "orbit_vhs_epg"}.items()}
ICON = {k: uri(ICONS / f"orbit_icon_{k}.png") for k in ["all", "entertainment", "family", "rooms", "account", "gear", "office", "kids"]}
# MOCK DATA: a line-up for layout only.
LINEUP = [
(101, "Orbit 1", "one", "Coastal Kitchens", "18:30", "19:00", .55, "The Quiz Hour", "19:00"),
(102, "Orbit 2", "two", "Garden Rescue", "18:00", "19:00", .78, "Night Market", "19:00"),
(103, "Orbit Three", "three", "Panel Show Live", "18:45", "19:15", .30, "Stand-Up Tonight", "19:15"),
(104, "Orbit Gold", "gold", "Classic Sitcom Double", "18:00", "19:00", .80, "Detective at Six", "19:00"),
(201, "Orbit Terra", "terra", "Frozen Coasts", "18:30", "19:30", .28, "Rivers of Light", "19:30"),
(305, "After Dark", "afterdark", "The Long Night", "17:55", "19:40", .48, "Midnight Diner", "19:40"),
(601, "Vortex", "vortex", "Robot Squad", "18:40", "19:05", .70, "Star Racers", "19:05"),
]
NOW = 18 * 60 + 42
def mins(hhmm): h, m = hhmm.split(":"); return int(h) * 60 + int(m)
def progress(start, end): return (NOW - mins(start)) / (mins(end) - mins(start))
def left(end): return mins(end) - NOW
class Frame:
def __init__(self, name, title, bg=NAVY):
self.name = name
self.p = ['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1920" height="1080" viewBox="0 0 1920 1080">',
f"<title>{escape(title)}</title>"]
self.rect(0, 0, 1920, 1080, bg, id="Background")
def g(self, id): self.p.append(f'<g id="{escape(id)}">')
def end(self): self.p.append("</g>")
def rect(self, x, y, w, h, fill, rx=0, stroke=None, sw=2, id=None, opacity=None):
a = (f' id="{escape(id)}"' if id else "") + (f' stroke="{stroke}" stroke-width="{sw}"' if stroke else "") + (f' opacity="{opacity}"' if opacity is not None else "")
self.p.append(f'<rect{a} x="{x}" y="{y}" width="{w}" height="{h}" rx="{rx}" fill="{fill}"/>')
def grad(self, id, top, bottom):
self.p.append(f'<defs><linearGradient id="{id}" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="{top}"/><stop offset="1" stop-color="{bottom}"/></linearGradient></defs>')
def text(self, x, y, s, size=30, fill=WHITE, family=BODY, weight=400, anchor="start", id=None, spacing=0):
a = (f' id="{escape(id)}"' if id else "") + (f' letter-spacing="{spacing}"' if spacing else "")
self.p.append(f'<text{a} x="{x}" y="{y}" font-family="{family}" font-size="{size}" font-weight="{weight}" fill="{fill}" text-anchor="{anchor}">{escape(s)}</text>')
def img(self, x, y, w, h, u, id=None):
a = f' id="{escape(id)}"' if id else ""
self.p.append(f'<image{a} x="{x}" y="{y}" width="{w}" height="{h}" preserveAspectRatio="xMidYMid meet" href="{u}" xlink:href="{u}"/>')
def ring(self, x, y, w, h, rx=14, sw=6):
self.rect(x - 8, y - 8, w + 16, h + 16, "none", rx=rx + 8, stroke=GOLD, sw=sw, id="Focus ring")
def mock(self, x=1824, y=24):
"""The MOCK DATA label, drawn last so nothing covers it."""
self.mock_at = (x, y)
def _mock(self):
x, y = getattr(self, "mock_at", (1824, 24))
self.rect(x - 150, y, 150, 34, MOCK, rx=4, id="Mock data label")
self.text(x - 75, y + 25, "MOCK DATA", 19, NAVY, BODY, 600, "middle")
def picture(self, x, y, w, h, label="Live picture (the channel playing)"):
self.g("Live picture")
self.grad("pic", "#1D3F7A", "#0A1B3D")
self.rect(x, y, w, h, "url(#pic)", id="Picture")
for i in range(6): # an abstract stand-in for the programme, not a real image
self.rect(x + w * (.1 + i * .14), y + h * .55, w * .1, h * .3, "#2A5296", rx=6, opacity=.5)
self.text(x + w / 2, y + h * .42, label, 28, MUTED, BODY, 500, "middle")
self.end()
def hints(self, items, y=1036, size=26):
self.g("Remote hints")
x = 96
for key, label in items:
kw = int(len(key) * size * .62) + 26
self.rect(x, y - size - 4, kw, size + 16, "none", rx=6, stroke=MUTED, sw=2)
self.text(x + kw / 2, y + 2, key, size, WHITE, BODY, 600, "middle")
self.text(x + kw + 12, y + 2, label, size, MUTED)
x += kw + 24 + int(len(label) * size * .5) + 40
self.end()
def save(self):
self._mock()
self.p.append("</svg>")
out = HERE / "frames"; out.mkdir(exist_ok=True)
svg = out / f"{self.name}.svg"; svg.write_text("\n".join(self.p))
native = out / f"{self.name}.figcraft"
subprocess.run(["figcraft-cli", "convert", str(svg), str(native)], env=ENV, check=True, stdout=subprocess.DEVNULL)
subprocess.run(["figcraft-cli", "export", str(native), "--out", str(native.with_suffix(".png"))], env=ENV, check=True, stdout=subprocess.DEVNULL)
print("made", self.name)
# ---------- Orbit Simple ----------
def simple_masthead(f, where):
f.g("Masthead")
f.img(96, 44, 220, 56, LOGO["orbit"], "Orbit logo")
f.text(360, 88, where, 44, WHITE, BODY, 600, id="Where you are")
f.text(1824, 82, "18:42", 52, WHITE, COND, 500, "end")
f.text(1824, 116, "Tuesday 10 November", 26, MUTED, BODY, 400, "end")
f.end()
def simple_home():
f = Frame("simple-1-home", "Orbit Simple: Home"); f.mock(y=130)
simple_masthead(f, "Home")
f.g("Now playing card")
f.rect(96, 170, 1728, 300, PANEL, rx=18)
f.picture(120, 194, 452, 252, "Live picture")
f.text(612, 250, "On now: 101 Orbit 1", 34, MUTED, BODY, 500)
f.text(612, 318, "Coastal Kitchens", 56, WHITE, BODY, 700)
f.text(612, 372, "18:30 to 19:00 · 18 minutes left", 32, INK)
# 12 of 30 minutes gone
f.rect(612, 400, 760, 12, BLUE, rx=6); f.rect(612, 400, 304, 12, GOLD, rx=6, id="Progress")
f.text(612, 446, "Next: The Quiz Hour at 19:00", 30, MUTED)
f.end()
f.g("Big choices")
items = [("Watch TV", "Carry on with Orbit 1", "all"), ("TV Guide", "What's on every channel", "entertainment"),
("Catch Up", "The last two days", "office"), ("Settings", "Text size, sound, family", "gear")]
w, gap = 408, 32
for i, (t, line, ic) in enumerate(items):
x = 96 + i * (w + gap); y = 520
focused = i == 0
f.rect(x, y, w, 340, GOLD if focused else PANEL, rx=18, id=f"Choice {t}")
if focused: f.ring(x, y, w, 340, 18)
if focused: f.rect(x + 28, y + 32, 120, 120, NAVY, rx=16, id="Icon chip")
f.img(x + 40, y + 44, 96, 96, ICON[ic], f"Icon {t}")
f.text(x + 40, y + 222, t, 50, NAVY if focused else WHITE, BODY, 700)
f.text(x + 40, y + 276, line, 30, NAVY if focused else MUTED, BODY, 500)
f.end()
f.hints([("◀ ▶", "Choose"), ("OK", "Open"), ("Back", "Leave Orbit")])
f.text(1824, 940, "Four choices, one row: Left and Right only.", 26, MUTED, BODY, 400, "end", id="Design note")
f.save()
def simple_guide():
f = Frame("simple-2-guide", "Orbit Simple: TV Guide (a list, no grid)"); f.mock(y=130)
simple_masthead(f, "TV Guide")
f.g("Channel list")
y = 176
for i, (num, name, logo, now, start, end, _, nxt, nt) in enumerate(LINEUP[:4]):
prog = progress(start, end)
focused = i == 1
h = 248 if focused else 132
f.rect(96, y, 1728, h, GOLD if focused else PANEL, rx=16, id=f"Row {num}")
if focused: f.ring(96, y, 1728, h, 16)
ink, sub = (NAVY, NAVY) if focused else (WHITE, MUTED)
f.text(130, y + 82, str(num), 48, ink, COND, 600)
if focused: f.rect(222, y + 22, 216, 88, NAVY, rx=10, id="Logo chip")
f.img(230, y + 26, 200, 80, LOGO[logo], f"Logo {name}")
f.text(470, y + 62, now, 44, ink, BODY, 700)
f.text(470, y + 106, f"{start} to {end}", 30, sub, BODY, 500)
f.rect(1300, y + 52, 480, 12, NAVY if focused else BLUE, rx=6, opacity=.35 if focused else 1)
f.rect(1300, y + 52, int(480 * prog), 12, NAVY if focused else GOLD, rx=6)
f.text(1780, y + 106, f"{left(end)} min left", 30, sub, BODY, 500, "end")
if focused:
f.text(470, y + 166, f"Next: {nxt} at {nt}", 32, NAVY, BODY, 600)
f.text(470, y + 212, "OK: watch now. ▶: what's later.", 30, NAVY, BODY, 500)
y += h + 20
f.end()
f.hints([("▲ ▼", "Channels"), ("OK", "Watch"), ("▶", "Later today"), ("Back", "Home")])
f.save()
def simple_watching():
f = Frame("simple-3-watching", "Orbit Simple: watching, with the banner shown", bg="#000000"); f.mock(y=24)
f.picture(0, 0, 1920, 1080, "The programme, full screen")
f.g("Banner")
f.rect(64, 700, 1792, 300, NAVY, rx=20, opacity=.94)
f.text(112, 776, "101", 64, GOLD, COND, 600)
f.img(230, 728, 220, 80, LOGO["one"], "Channel logo")
f.text(112, 866, "Coastal Kitchens", 60, WHITE, BODY, 700)
f.text(112, 920, "18:30 to 19:00 · 18 minutes left · Subtitles off", 32, INK)
f.rect(112, 944, 1100, 14, BLUE, rx=7); f.rect(112, 944, 440, 14, GOLD, rx=7, id="Progress")
f.text(1808, 866, "Next at 19:00", 32, MUTED, BODY, 500, "end")
f.text(1808, 920, "The Quiz Hour", 40, WHITE, BODY, 600, "end")
f.end()
f.hints([("▲ ▼", "Channel"), ("OK", "Hide"), ("◀", "Subtitles and sound")], y=1062, size=24)
f.save()
def simple_focus():
f = Frame("simple-4-focus-states", "Orbit Simple: focus states"); f.mock(y=24)
f.text(96, 110, "Focus states: Orbit Simple", 56, WHITE, BODY, 700)
f.text(96, 160, "Focus is never colour alone: a gold fill, a 6 px gold ring and bold words. Contrast: navy on gold 13.5 : 1, white on panel 12 : 1.", 30, MUTED)
cols = [("Resting", False, False), ("Focused", True, False), ("Chosen (On)", False, True), ("Not available", None, False)]
for i, (label, focused, chosen) in enumerate(cols):
x = 96 + i * 440
f.text(x, 250, label, 34, GOLD, BODY, 600)
# Card
fill = GOLD if focused else (PANEL if focused is not None else DEEP)
f.rect(x, 280, 400, 160, fill, rx=18, id=f"Card {label}")
if focused: f.ring(x, 280, 400, 160, 18)
ink = NAVY if focused else (WHITE if focused is not None else "#6F82A8")
f.text(x + 32, 376, "TV Guide", 46, ink, BODY, 700)
# Switch row
f.rect(x, 490, 400, 110, fill, rx=18, id=f"Switch row {label}")
if focused: f.ring(x, 490, 400, 110, 18)
f.text(x + 32, 556, "Subtitles", 36, ink, BODY, 600)
on = chosen or focused
f.rect(x + 260, 520, 112, 50, MINT if on else BLUE, rx=25)
f.rect(x + (318 if on else 266), 526, 38, 38, WHITE, rx=19)
f.text(x + 316, 652, "On" if on else "Off", 30, WHITE if focused is not None else "#6F82A8", BODY, 600, "middle")
# Button
f.rect(x, 680, 400, 96, fill, rx=48, id=f"Button {label}")
if focused: f.ring(x, 680, 400, 96, 48)
f.text(x + 200, 742, "Watch now", 38, ink, BODY, 700, "middle")
f.text(96, 880, "Motion: the switch slides in 160 ms (EffectCraft design, design/motion/switch). With Reduce motion it doesn't slide; the colour fades in 120 ms.", 28, MUTED)
f.text(96, 924, "The press acts at once; the animation never holds up the setting or the remote.", 28, MUTED)
f.save()
# ---------- Retro Cable ----------
def cable_number(f, num, x=1650, y=60):
f.g("Cable box number")
f.rect(x, y, 200, 110, "#000000", rx=10, opacity=.75)
f.text(x + 100, y + 86, f"{num:03d}", 84, MINT, COND, 600, "middle", spacing=4)
f.end()
def cable_now_next(f, row, y=760):
num, name, logo, now, start, end, _, nxt, nt = row
prog = progress(start, end)
f.g("Now and Next")
f.grad("bar", CABLEHI, CABLE1)
f.rect(64, y, 1792, 230, "url(#bar)", rx=8, opacity=.96)
f.rect(64, y, 1792, 6, GOLD)
f.img(96, y + 30, 240, 96, LOGO[logo], "Channel logo")
f.text(380, y + 70, "NOW", 30, GOLD, HEAD, 400, spacing=2)
f.text(480, y + 70, f"{start} {now}", 46, WHITE, BODY, 700)
f.rect(480, y + 92, 900, 10, CABLE1, rx=5); f.rect(480, y + 92, int(900 * prog), 10, GOLD, rx=5, id="Progress")
f.text(380, y + 168, "NEXT", 30, MUTED, HEAD, 400, spacing=2)
f.text(480, y + 168, f"{nt} {nxt}", 40, INK, BODY, 600)
f.text(1824, y + 70, f"{name}", 34, WHITE, BODY, 600, "end")
f.text(1824, y + 168, "▲▼ surf · OK guide", 30, MUTED, BODY, 500, "end")
f.end()
def cable_home():
f = Frame("cable-1-home", "Retro Cable: Home is the picture", bg="#000000"); f.mock(y=24, x=1600)
f.picture(0, 0, 1920, 1080, "The channel you left on, full screen")
cable_number(f, 101)
f.g("Surf strip")
for i, row in enumerate(LINEUP[:5]):
y = 150 + i * 104
focused = i == 0
f.rect(64, y, 520, 88, GOLD if focused else "#000000", rx=8, opacity=None if focused else .7, id=f"Surf {row[0]}")
f.text(90, y + 58, f"{row[0]}", 40, NAVY if focused else MINT, COND, 600)
f.text(190, y + 58, row[3], 32, NAVY if focused else WHITE, BODY, 600 if focused else 500)
f.end()
cable_now_next(f, LINEUP[0])
f.save()
def cable_guide():
f = Frame("cable-2-guide", "Retro Cable: the guide"); f.mock(y=24)
f.g("Preview and clock")
f.picture(64, 64, 720, 405, "Picture keeps playing")
f.rect(820, 64, 1036, 405, CABLE1, rx=8)
f.text(860, 156, "18:42", 96, MINT, COND, 600)
f.text(860, 210, "Tuesday 10 November", 34, MUTED)
f.text(860, 290, "102 Garden Rescue", 46, WHITE, BODY, 700)
f.text(860, 344, "18:00 to 19:00 · Next: Night Market", 32, INK)
f.text(860, 420, "Orbit 2", 32, GOLD, BODY, 600)
f.end()
f.g("Grid")
# 18:30 to 20:00 across the grid: 30 minutes is 504 px.
top = 500; x0 = 344; per = 504; colx = [x0, x0 + per, x0 + 2 * per]
f.rect(64, top, 1792, 56, NAVY)
for i, t in enumerate(["18:30", "19:00", "19:30"]):
f.text(colx[i] + 16, top + 40, t, 32, GOLD, COND, 600)
for r, row in enumerate(LINEUP[:6]):
y = top + 62 + r * 74
base = CABLE1 if r % 2 == 0 else CABLE2
f.rect(64, y, 1792, 70, base, id=f"Row {row[0]}")
f.text(84, y + 48, f"{row[0]}", 34, MINT, COND, 600)
f.text(156, y + 48, row[1], 26, WHITE, BODY, 600)
focused = r == 1
w1 = min(1856 - x0, round((mins(row[5]) - mins("18:30")) * per / 30))
if focused:
f.rect(colx[0], y + 4, w1 - 8, 62, GOLD, rx=4, id="Focused programme")
f.ring(colx[0], y + 4, w1 - 8, 62, 4, 5)
f.text(colx[0] + 16, y + 46, row[3], 30, NAVY if focused else WHITE, BODY, 700 if focused else 500)
f.rect(colx[0] + w1 - 6, y, 4, 70, NAVY)
f.text(colx[0] + w1 + 12, y + 46, row[7], 30, INK, BODY, 500)
f.end()
f.hints([("▲ ▼", "Channels"), ("◀ ▶", "Time"), ("OK", "Watch")], y=1062, size=24)
f.save()
def cable_surf():
f = Frame("cable-3-surfing", "Retro Cable: changing channel", bg="#000000"); f.mock(y=24, x=1600)
f.picture(0, 0, 1920, 1080, "The new channel, appearing")
cable_number(f, 305)
f.g("Channel flash")
f.rect(64, 64, 640, 150, "#000000", rx=10, opacity=.7)
f.img(90, 84, 260, 110, LOGO["afterdark"], "Channel logo")
f.text(380, 160, "After Dark", 44, WHITE, BODY, 700)
f.end()
cable_now_next(f, LINEUP[5])
f.text(1824, 740, "Shown for 4 s on each change, then the picture is clear.", 26, MUTED, BODY, 400, "end", id="Design note")
f.save()
def cable_focus():
f = Frame("cable-4-focus-states", "Retro Cable: focus states"); f.mock(y=24)
f.text(96, 110, "Focus states: Retro Cable", 56, WHITE, BODY, 700)
f.text(96, 160, "Gold block with navy words and a ring; rows alternate two blues so the eye can follow a line.", 30, MUTED)
states = [("Resting row", False), ("Focused programme", True)]
for i, (label, focused) in enumerate(states):
y = 240 + i * 160
f.text(96, y, label, 32, GOLD, BODY, 600)
f.rect(96, y + 20, 1200, 80, CABLE1 if i == 0 else CABLE2)
f.text(120, y + 74, "102", 38, MINT, COND, 600)
if focused:
f.rect(300, y + 26, 700, 68, GOLD, rx=4); f.ring(300, y + 26, 700, 68, 4, 5)
f.text(320, y + 74, "Garden Rescue", 34, NAVY if focused else WHITE, BODY, 700 if focused else 500)
f.text(96, 640, "Surf strip item", 32, GOLD, BODY, 600)
for i, focused in enumerate([False, True]):
x = 96 + i * 600
f.rect(x, 660, 520, 88, GOLD if focused else "#000000", rx=8, opacity=None if focused else .7)
f.text(x + 26, 718, "101", 40, NAVY if focused else MINT, COND, 600)
f.text(x + 126, 718, "Coastal Kitchens", 32, NAVY if focused else WHITE, BODY, 600)
f.text(96, 860, "Motion: the Now and Next bar rises in 200 ms; with Reduce motion it simply appears.", 28, MUTED)
f.save()
if __name__ == "__main__":
for make in (simple_home, simple_guide, simple_watching, simple_focus, cable_home, cable_guide, cable_surf, cable_focus):
make()
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 KiB

+41
View File
@@ -0,0 +1,41 @@
// Orbit's settings switch (0.129 stage 3, Paul, 10 November 2026): the thumb slides and the track turns from blue to mint
// in 160 ms on Orbit's one curve, cubic-bezier(.2, 0, 0, 1). The setting itself changes on the press; this is only the look.
// Drawn at 6x the TV size (64 x 34 dp). Off -> On at 0.20 s, On -> Off at 0.80 s. Reduce motion: a 120 ms colour fade, no slide.
function bez(t) { // cubic-bezier(.2,0,0,1): solve x(u)=t, return y(u)
var x1=.2,y1=0,x2=0,y2=1, lo=0, hi=1, u=t;
for (var i=0;i<40;i++){ u=(lo+hi)/2; var x=3*(1-u)*(1-u)*u*x1+3*(1-u)*u*u*x2+u*u*u; if (x<t) lo=u; else hi=u; }
return 3*(1-u)*(1-u)*u*y1+3*(1-u)*u*u*y2+u*u*u;
}
function mix(a,b,k){ return [a[0]+(b[0]-a[0])*k, a[1]+(b[1]-a[1])*k, a[2]+(b[2]-a[2])*k, 1]; }
var FPS=50, DUR=1.2, MS=0.16;
var BLUE=[0x28/255,0x3c/255,0x64/255], MINT=[0x6e/255,0xdc/255,0xaa/255];
function build(name, calm) {
var c=app.project.items.addComp(name, 640, 340, 1, DUR, FPS);
var bg=c.layers.addSolid([0x0a/255,0x1a/255,0x3a/255], "Navy", 640, 340, 1);
var track=c.layers.addShape(); track.name="Track";
var g=track.property("Contents").addProperty("ADBE Vector Group");
var r=g.property("Contents").addProperty("ADBE Vector Shape - Rect");
r.property("Size").setValue([348,168]); r.property("Roundness").setValue(84);
var f=g.property("Contents").addProperty("ADBE Vector Graphic - Fill");
track.property("Transform").property("Position").setValue([320,170]);
var thumb=c.layers.addShape(); thumb.name="Thumb";
var g2=thumb.property("Contents").addProperty("ADBE Vector Group");
var e=g2.property("Contents").addProperty("ADBE Vector Shape - Ellipse"); e.property("Size").setValue([120,120]);
g2.property("Contents").addProperty("ADBE Vector Graphic - Fill").property("Color").setValue([1,1,1,1]);
var pos=thumb.property("Transform").property("Position");
var left=320-174+24+60, right=320+174-24-60;
var steps=Math.round(MS*FPS);
function move(t0, from, to, cFrom, cTo) {
var ms = calm ? 0.12 : MS, n = Math.max(1, Math.round(ms*FPS));
for (var i=0;i<=n;i++){ var t=t0+i/FPS, k=calm? i/n : bez(i/n);
pos.setValueAtTime(t, [calm ? (k<1? from : to) : from+(to-from)*k, 170]);
f.property("Color").setValueAtTime(t, mix(cFrom, cTo, k)); }
}
pos.setValueAtTime(0,[left,170]); f.property("Color").setValueAtTime(0, mix(BLUE,BLUE,0));
move(0.20, left, right, BLUE, MINT);
move(0.80, right, left, MINT, BLUE);
return c;
}
build("Switch", false); build("Switch reduce motion", true);
app.project.save(new File("/home/pauljd/Documents/OrbitTV/orbit-tv-release/design/motion/switch/orbit-switch.ecproj"));
writeLn("saved");
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB