Logos arrive with the brief's animation: over the Blender idents, and in the corner once an hour (build 60)

Paul, 17 November 2026. Each Blender channel ident now brings its new logo in with that channel's motion from the brand
brief (wipe, whip, flicker, VHS tracking, sunrise, bounce, glitch, spotlight, twinkle, pixel), rendered on transparent by
the kit's logo-anim.js and laid over the kept scene from 3.6 s (channel-designs/revisions/planet-o/recompose-anim.sh).
The corner logo plays the same animation in the channel's colours once in the first two minutes of each hour, then
hands back to the white still; Reduce motion keeps the still. Animated WebPs, about 130 KB a channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 22:00:46 +00:00
co-authored by Claude Opus 5.5
parent 15daa37761
commit 79f2c03022
69 changed files with 77 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ plugins {
id("org.jetbrains.kotlin.plugin.compose")
}
/** The release's build number: versionCode is this x 10 plus the edition's channel. */
val ORBIT_BUILD = 59
val ORBIT_BUILD = 60
android {
namespace = "tv.orbit.classic"
compileSdk = 36
@@ -4,6 +4,7 @@ import androidx.compose.foundation.layout.offset
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
import androidx.compose.ui.unit.dp
import androidx.compose.ui.draw.alpha
internal data class ChannelBranding(val presetId: String, val displayName: String, val logo: Int, val background: Int, val bug: Int, val category: ChannelCategory)
@@ -91,3 +92,62 @@ internal fun cornerLogoOffset(nowMs: Long): Pair<Int, Int> = when (Math.floorMod
2 -> 3 to -3
else -> 0 to -3
}
/** Each channel's corner animation: its planet arriving in the brand brief's motion, then the logo, on transparent. */
private val CornerAnimations: Map<Int, Int> = mapOf(
101 to R.raw.corner_anim_101, 102 to R.raw.corner_anim_102, 103 to R.raw.corner_anim_103, 104 to R.raw.corner_anim_104, 105 to R.raw.corner_anim_105, 106 to R.raw.corner_anim_106,
107 to R.raw.corner_anim_107, 108 to R.raw.corner_anim_108, 109 to R.raw.corner_anim_109, 110 to R.raw.corner_anim_110, 201 to R.raw.corner_anim_201, 202 to R.raw.corner_anim_202,
203 to R.raw.corner_anim_203, 204 to R.raw.corner_anim_204, 205 to R.raw.corner_anim_205, 206 to R.raw.corner_anim_206, 300 to R.raw.corner_anim_300, 301 to R.raw.corner_anim_301,
302 to R.raw.corner_anim_302, 303 to R.raw.corner_anim_303, 304 to R.raw.corner_anim_304, 305 to R.raw.corner_anim_305, 306 to R.raw.corner_anim_306, 307 to R.raw.corner_anim_307,
308 to R.raw.corner_anim_308, 309 to R.raw.corner_anim_309, 310 to R.raw.corner_anim_310, 401 to R.raw.corner_anim_401, 601 to R.raw.corner_anim_601, 602 to R.raw.corner_anim_602,
603 to R.raw.corner_anim_603, 604 to R.raw.corner_anim_604, 605 to R.raw.corner_anim_605, 611 to R.raw.corner_anim_611, 612 to R.raw.corner_anim_612, 613 to R.raw.corner_anim_613,
614 to R.raw.corner_anim_614)
private val PackCornerAnimations: Map<String, Int> = mapOf("orbit-mistletoe" to R.raw.corner_anim_mistletoe, "orbit-sakura" to R.raw.corner_anim_sakura)
internal fun cornerAnimation(number: Int): Int? = CornerAnimations[number] ?: CustomChannels.of(number)?.brand?.let { PackCornerAnimations[it] }
/**
* Whether the corner logo plays its animation now (Paul, 17 November 2026: "shown on bottom left every like hour"): once
* in the first two minutes of each hour, the first time the logo is up then.
*/
internal fun cornerAnimationDue(nowMs: Long, lastPlayedHour: Long): Boolean {
val hour = nowMs / 3_600_000L
return hour != lastPlayedHour && nowMs % 3_600_000L < 120_000L
}
private object CornerAnimationClock { var lastPlayedHour = -1L }
/** How long the corner animation runs before the still logo takes over again. */
internal const val CORNER_ANIMATION_MS = 3_400L
/**
* The corner logo: the white still at 60% (see [cornerLogoNudge]), and about once an hour the channel's animation in its
* colours, which then hands back to the still. Reduce motion keeps the still. Needs Android 9 for animated images.
*/
@androidx.compose.runtime.Composable
internal fun CornerLogo(number: Int, still: Int, modifier: androidx.compose.ui.Modifier) {
val context = androidx.compose.ui.platform.LocalContext.current
val calm = androidx.compose.runtime.remember { OrbitSettings(context).reduceMotion }
val animation = androidx.compose.runtime.remember(number) { cornerAnimation(number) }
var playing by androidx.compose.runtime.remember { androidx.compose.runtime.mutableStateOf(false) }
androidx.compose.runtime.LaunchedEffect(number, animation) {
if (animation == null || calm || android.os.Build.VERSION.SDK_INT < 28) return@LaunchedEffect
while (true) {
val now = System.currentTimeMillis()
if (cornerAnimationDue(now, CornerAnimationClock.lastPlayedHour)) {
CornerAnimationClock.lastPlayedHour = now / 3_600_000L
playing = true; kotlinx.coroutines.delay(CORNER_ANIMATION_MS); playing = false
}
kotlinx.coroutines.delay(5_000)
}
}
if (playing && animation != null && android.os.Build.VERSION.SDK_INT >= 28)
androidx.compose.ui.viewinterop.AndroidView(modifier = modifier.alpha(.85f), factory = { c ->
android.widget.ImageView(c).apply {
scaleType = android.widget.ImageView.ScaleType.FIT_START
val drawable = android.graphics.ImageDecoder.decodeDrawable(android.graphics.ImageDecoder.createSource(c.resources, animation))
setImageDrawable(drawable)
(drawable as? android.graphics.drawable.AnimatedImageDrawable)?.apply { repeatCount = 0; start() }
}
})
else androidx.compose.foundation.Image(cachedPainter(still), null, modifier, alpha = .6f)
}
@@ -615,7 +615,7 @@ internal fun EmbyPlaybackDialog(session: EmbySampleSession, plan: EmbyPlaybackPl
else if (bug != null && ready && !infoVisible && failure == null && squeeze == 0f)
// The brand kit's corner logo (17 November 2026): white at 60%, bottom left with a 72 px margin, nudged a few
// pixels every ten minutes so it never sits still long enough to mark an OLED or plasma screen.
Image(cachedPainter(bug), null, Modifier.align(Alignment.BottomStart).cornerLogoNudge().padding(start = 36.dp, bottom = 36.dp).height(47.dp).width(122.dp), alpha = .6f)
CornerLogo(scheduled!!.channel.number, bug, Modifier.align(Alignment.BottomStart).cornerLogoNudge().padding(start = 36.dp, bottom = 36.dp).height(47.dp).width(122.dp))
// The bar and the subtitles and sound panel together (design/watching): the panel docks above the bar's right
// end, so it never hangs over it, and the bar stays while the panel is open.
val barUp = (infoVisible || trackMenu != null) && failure == null && ready && squeeze == 0f
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,3 +11,18 @@ class CornerLogoTest {
assertEquals(cornerLogoOffset(0), cornerLogoOffset(599_999))
}
}
/** Paul, 17 November 2026: the corner logo plays its animation about once an hour. */
class CornerAnimationTest {
private val hour = 3_600_000L
@Test fun itPlaysOnceInTheFirstTwoMinutesOfEachHour() {
val t = 500 * hour
org.junit.Assert.assertTrue(cornerAnimationDue(t + 30_000, -1))
org.junit.Assert.assertFalse(cornerAnimationDue(t + 30_000, 500))
org.junit.Assert.assertFalse(cornerAnimationDue(t + 5 * 60_000, -1))
org.junit.Assert.assertTrue(cornerAnimationDue(t + hour + 10_000, 500))
}
@Test fun everyChannelHasOne() {
listOf(101, 105, 110, 206, 300, 305, 310, 401, 605, 614).forEach { org.junit.Assert.assertNotNull(cornerAnimation(it)) }
}
}