The new identity: Planet O and Sunset Stripes across the app (1.0 RC4 brand, build 57)
Paul approved the brand kit on 17 November 2026. Every channel's guide logo, corner logo and ident now comes from it, with the six channels the kit lacked (After Dark, VHS, Wild, Detour, BritX, Orbit X) rendered in its style. Idents hold the kit's end frame for the old ident's length and keep each channel's own sound. The corner logo is the kit's white version at 60%, bottom left, nudged a few pixels every ten minutes. New wordmark, launcher and adaptive icons, TV banner, network sign-on (welcome) and loading screen (tuning). tools/import-brand-kit.py does it again from the kit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package tv.orbit.classic
|
||||
|
||||
import androidx.compose.foundation.layout.offset
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
internal data class ChannelBranding(val presetId: String, val displayName: String, val logo: Int, val background: Int, val bug: Int, val category: ChannelCategory)
|
||||
|
||||
internal object ChannelBrands {
|
||||
@@ -69,3 +74,20 @@ internal val BrandPackIdents: Map<String, Int> = mapOf("orbit-mistletoe" to R.ra
|
||||
/** The pack whose name a channel's name matches ("Mistletoe" or "Orbit Mistletoe"), or null. */
|
||||
internal fun brandPackFor(name: String): String? = BrandPacks.entries.firstOrNull { (_, b) ->
|
||||
name.trim().equals(b.displayName, ignoreCase = true) || name.trim().equals(b.displayName.removePrefix("Orbit "), ignoreCase = true) }?.key
|
||||
|
||||
/** Where the corner logo sits now: one of four spots a few pixels apart, moving on every ten minutes (see [cornerLogoOffset]). */
|
||||
@androidx.compose.runtime.Composable
|
||||
internal fun androidx.compose.ui.Modifier.cornerLogoNudge(): androidx.compose.ui.Modifier {
|
||||
var now by androidx.compose.runtime.remember { androidx.compose.runtime.mutableLongStateOf(System.currentTimeMillis()) }
|
||||
androidx.compose.runtime.LaunchedEffect(Unit) { while (true) { kotlinx.coroutines.delay(60_000); now = System.currentTimeMillis() } }
|
||||
val (x, y) = cornerLogoOffset(now)
|
||||
return this.offset(x.dp, y.dp)
|
||||
}
|
||||
|
||||
/** The corner logo's nudge in dp for [nowMs]: (0,0), (3,0), (3,-3), (0,-3), a step every ten minutes. */
|
||||
internal fun cornerLogoOffset(nowMs: Long): Pair<Int, Int> = when (Math.floorMod(nowMs / 600_000L, 4L).toInt()) {
|
||||
0 -> 0 to 0
|
||||
1 -> 3 to 0
|
||||
2 -> 3 to -3
|
||||
else -> 0 to -3
|
||||
}
|
||||
|
||||
@@ -611,7 +611,9 @@ internal fun EmbyPlaybackDialog(session: EmbySampleSession, plan: EmbyPlaybackPl
|
||||
if (takeoverNow != null && logoSetting && ready && !infoVisible && failure == null && squeeze == 0f)
|
||||
TakeoverMark(takeoverNow, Modifier.align(Alignment.BottomStart).padding(start = 40.dp, bottom = 28.dp).alpha(.85f), height = 26.dp, textSize = 20.sp)
|
||||
else if (bug != null && ready && !infoVisible && failure == null && squeeze == 0f)
|
||||
Image(cachedPainter(bug), null, Modifier.align(Alignment.BottomStart).padding(start = 40.dp, bottom = 28.dp).width(108.dp).height(36.dp), alpha = .8f)
|
||||
// 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)
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user