Release 0.1.1 with official ratings and aperture startup

This commit is contained in:
Elijah 2026-10-24 09:31:18 -07:00
parent 2b585badac
commit 77457c85d3
18 changed files with 186 additions and 35 deletions

View file

@ -1,5 +1,11 @@
# Kaleido releases
## 0.1.1
- Use official Rotten Tomatoes Hot and Stale audience badges with proportional scaling beside ratings.
- Replace the spinning startup logo with a six-facet aperture assembly, light trails, and a staggered wordmark reveal.
- Honor Android's animation duration setting and fade into browsing after the opening sequence completes.
## 0.1.0
Initial independent Android TV Plex client with native Compose browsing, encrypted sessions, Plex account linking and server discovery, library filters and sorting, search, details and episode navigation, Media3 playback with conversion fallback, track selection, progress syncing, skip markers, and signed APK updates from the Kaleido repository.

View file

@ -7,19 +7,22 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.semantics.clearAndSetSemantics
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
/** Local vector badges; ratings and their provider identities always come from Plex. */
/** Official provider artwork, bundled as vectors. Scores always come from Plex. */
@Composable internal fun AudienceRatings(item:Title,modifier:Modifier=Modifier) {
val scores=item.audienceScores
val badgeSize=20.dp*LocalDensity.current.fontScale
if(scores.isNotEmpty())Row(modifier.clearAndSetSemantics{contentDescription=item.rating},
verticalAlignment=Alignment.CenterVertically,horizontalArrangement=Arrangement.spacedBy(12.dp)) {
scores.forEach{score->Row(verticalAlignment=Alignment.CenterVertically,horizontalArrangement=Arrangement.spacedBy(4.dp)) {
when(score.source) {
"Rotten Tomatoes"->Image(painterResource(if(score.value>=6)R.drawable.audience_popcorn else R.drawable.audience_popcorn_spilled),null,Modifier.size(18.dp))
"Rotten Tomatoes"->Image(painterResource(if(score.value>=6)R.drawable.rating_rt_hot else R.drawable.rating_rt_stale),null,Modifier.size(badgeSize),contentScale=ContentScale.Fit)
"IMDb"->Image(painterResource(R.drawable.rating_imdb),null,Modifier.width(44.dp).height(24.dp))
else->Text("TVDB",color=Cinema.secondary,fontSize=9.sp)
}

View file

@ -1,8 +1,5 @@
package tv.kaleido.app
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
@ -15,7 +12,6 @@ import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.semantics
@ -39,18 +35,3 @@ import androidx.compose.ui.unit.sp
else Text(item.remainingEpisodes.toString(),color=Color.White,fontSize=10.sp,lineHeight=14.sp,fontWeight=FontWeight.SemiBold)
}
}
@Composable fun StartupSplash(alpha:Float) {
val reveal=remember{Animatable(0f)}
LaunchedEffect(Unit){reveal.animateTo(1f,tween(1100,easing=FastOutSlowInEasing))}
Box(Modifier.fillMaxSize().graphicsLayer{this.alpha=alpha}.background(Ink),contentAlignment=Alignment.Center) {
Column(horizontalAlignment=Alignment.CenterHorizontally,modifier=Modifier.graphicsLayer{
val progress=reveal.value
this.alpha=progress.coerceAtMost(1f)
scaleX=.78f+.22f*progress;scaleY=scaleX
}) {
KaleidoMark(Modifier.size(102.dp).graphicsLayer{rotationZ=-30f*(1f-reveal.value)})
Text("KALEIDO",color=Accent,fontSize=24.sp,fontWeight=FontWeight.Medium,letterSpacing=6.sp,modifier=Modifier.padding(top=22.dp))
}
}
}

View file

@ -63,12 +63,12 @@ import java.io.File
}
// A restored Activity after process eviction still needs the cold-start cover.
var startup by remember{mutableStateOf(true)}
var brandReady by remember{mutableStateOf(false)}
val splash=remember{Animatable(1f)}
LaunchedEffect(Unit){
if(startup){
delay(1600)
LaunchedEffect(brandReady){
if(startup&&brandReady){
withTimeoutOrNull(600){snapshotFlow{!vm.busy}.first{it}}
splash.animateTo(0f,tween(240));startup=false
splash.animateTo(0f,tween(360));startup=false
}
}
BackHandler(enabled=vm.linkingAccount||vm.playing!=null||vm.pages.size>1||vm.page.kind!="home"){
@ -96,7 +96,7 @@ import java.io.File
if(vm.busy) LinearProgressIndicator(Modifier.fillMaxWidth().height(2.dp).align(Alignment.TopCenter),color=Accent,trackColor=Color.Transparent)
if(vm.error!=null) ErrorDialog(vm.error!!,{vm.dismissError()},{vm.retry()})
vm.playing?.let {item-> androidx.compose.runtime.key(item.id) {PlaybackScreen(vm,item)} }
if(startup)StartupSplash(splash.value)
if(startup)StartupSplash(splash.value){brandReady=true}
}
}
}

View file

@ -0,0 +1,97 @@
package tv.kaleido.app
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Path
import androidx.compose.ui.graphics.drawscope.withTransform
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.graphics.vector.PathParser
import androidx.compose.ui.semantics.clearAndSetSemantics
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import kotlin.math.sin
private data class ApertureFacet(val path:Path,val color:Color,val center:Offset)
// Exact geometry and colors from brand_mark.xml. The six pieces move independently
// into the existing aperture; the completed mark is never rotated or redesigned.
private val apertureFacets=listOf(
Triple("M33,4 L55.5,17 L42.5,24.5 L33,19 Z",0xFFC3E8D3,Offset(43f,14f)),
Triple("M56.5,19 L56.5,45 L43.5,37.5 L43.5,26.5 Z",0xFF71B9B0,Offset(50f,32f)),
Triple("M55.5,47 L33,60 L33,45 L42.5,39.5 Z",0xFF3D7C7B,Offset(43f,50f)),
Triple("M31,60 L8.5,47 L21.5,39.5 L31,45 Z",0xFFD0A977,Offset(21f,50f)),
Triple("M7.5,45 L7.5,19 L20.5,26.5 L20.5,37.5 Z",0xFFE9D8AE,Offset(14f,32f)),
Triple("M8.5,17 L31,4 L31,19 L21.5,24.5 Z",0xFFEEF2DD,Offset(21f,14f))
).map{(path,color,center)->ApertureFacet(PathParser().parsePathString(path).toPath(),Color(color),center)}
private fun phase(time:Float,start:Float,end:Float)=((time-start)/(end-start)).coerceIn(0f,1f)
/** One finite brand sequence, followed by a settled mark while startup data loads. */
@Composable fun StartupSplash(alpha:Float,onComplete:()->Unit) {
val timeline=remember{Animatable(0f)}
val complete by rememberUpdatedState(onComplete)
LaunchedEffect(Unit){
// Animatable honors Android's animation duration scale, including animations off.
timeline.animateTo(1f,tween(2600,easing=LinearEasing))
complete()
}
Box(Modifier.fillMaxSize().graphicsLayer{this.alpha=alpha}.background(Ink)
.clearAndSetSemantics{contentDescription="Kaleido starting"},contentAlignment=Alignment.Center) {
Canvas(Modifier.fillMaxSize()) {
val time=timeline.value
val origin=Offset(size.width/2,size.height/2-32.dp.toPx())
val unit=112.dp.toPx()/64f
val glow=sin(phase(time,0f,.88f)*Math.PI).toFloat().coerceAtLeast(0f)
drawCircle(Brush.radialGradient(listOf(Color(0xFF71B9B0).copy(alpha=.16f*glow),Color.Transparent),
center=origin,radius=230.dp.toPx()),radius=230.dp.toPx(),center=origin)
apertureFacets.forEachIndexed { index,facet ->
val start=.06f+index*.045f
val raw=phase(time,start,start+.34f)
val arrival=FastOutSlowInEasing.transform(raw)
val direction=(facet.center-Offset(32f,32f))/18f
val distance=190f*(1f-arrival)
// A tapered light trail leads each sea-glass/ivory facet inward.
if(raw>0f&&raw<1f) {
val head=origin+direction*((distance+23f)*unit)
val tail=head+direction*((20f+80f*(1f-arrival))*unit)
drawLine(Brush.linearGradient(listOf(facet.color.copy(alpha=.5f*sin(raw*Math.PI).toFloat()),Color.Transparent),head,tail),
head,tail,strokeWidth=1.3.dp.toPx())
}
withTransform({
translate(origin.x-32f*unit,origin.y-32f*unit)
scale(unit,unit,pivot=Offset.Zero)
translate(direction.x*distance,direction.y*distance)
scale(.72f+.28f*arrival,.72f+.28f*arrival,pivot=facet.center)
}) {
drawPath(facet.path,facet.color,alpha=phase(raw,0f,.42f))
val glint=sin(phase(time,.64f+index*.018f,.78f+index*.018f)*Math.PI).toFloat().coerceAtLeast(0f)
if(raw==1f)drawPath(facet.path,Color.White,alpha=.22f*glint)
}
}
}
Row(Modifier.offset(y=65.dp),horizontalArrangement=Arrangement.spacedBy(7.dp),verticalAlignment=Alignment.CenterVertically) {
"KALEIDO".forEachIndexed { index,letter ->
Text(letter.toString(),color=Color(0xFFEEF2DD),fontSize=28.sp,fontWeight=FontWeight.Medium,
modifier=Modifier.graphicsLayer {
val reveal=FastOutSlowInEasing.transform(phase(timeline.value,.48f+index*.025f,.66f+index*.025f))
this.alpha=reveal
translationY=14.dp.toPx()*(1f-reveal)
})
}
}
}
}

View file

@ -1 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"><path android:fillColor="#FFF0C8" android:pathData="M4.2,10C1,9.2 1.2,5 4.4,4.5C3.8,1.7 7.5,0.3 9.2,2.8C10.6,-0.3 14.7,0.7 14.8,3.6C18.3,1.5 21.5,4.4 19.8,7C23,8 22.7,11.4 19.5,12H4.2Z"/><path android:fillColor="#E9C76E" android:pathData="M6,5C4,4 3,7 5,8C4,6 6,6 6,5M11,4C9,3 8,5 9,7C9,5 11,6 11,4M16,6C14,5 13,8 15,9C14,7 17,8 16,6"/><path android:fillColor="#F1E8DD" android:pathData="M4,10H20L18,23H6Z"/><path android:fillColor="#DE4141" android:pathData="M4,10H7L8,23H6ZM10.5,10H13.5L13,23H11ZM17,10H20L18,23H16Z"/><path android:fillColor="#FFF6E8" android:pathData="M3.7,9.5H20.3V11H3.7Z"/></vector>

View file

@ -1 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"><group android:rotation="-55" android:pivotX="12" android:pivotY="12" android:scaleX="0.84" android:scaleY="0.84" android:translateX="1.5" android:translateY="1.5"><path android:fillColor="#FFF0C8" android:pathData="M4.2,10C1,9.2 1.2,5 4.4,4.5C3.8,1.7 7.5,0.3 9.2,2.8C10.6,-0.3 14.7,0.7 14.8,3.6C18.3,1.5 21.5,4.4 19.8,7C23,8 22.7,11.4 19.5,12H4.2Z"/><path android:fillColor="#E9C76E" android:pathData="M6,5C4,4 3,7 5,8C4,6 6,6 6,5M11,4C9,3 8,5 9,7C9,5 11,6 11,4M16,6C14,5 13,8 15,9C14,7 17,8 16,6"/><path android:fillColor="#F1E8DD" android:pathData="M4,10H20L18,23H6Z"/><path android:fillColor="#DE4141" android:pathData="M4,10H7L8,23H6ZM10.5,10H13.5L13,23H11ZM17,10H20L18,23H16Z"/><path android:fillColor="#FFF6E8" android:pathData="M3.7,9.5H20.3V11H3.7Z"/></group><path android:fillColor="#FFF0C8" android:pathData="M3,16a1.5,1.5 0,1 0,0.01,0M2,21a1.4,1.4 0,1 0,0.01,0"/></vector>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Official Rotten Tomatoes Popcornmeter artwork; see docs/brand-assets.md. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="80dp" android:height="80dp" android:viewportWidth="80" android:viewportHeight="80">
<group android:translateX="10.1" android:translateY="0">
<group>
<clip-path android:pathData="M0.0178438662,0.124907063 L59.6019307,0.124907063 L59.6019307,79.9821561 L0.0178438662,79.9821561 Z" />
<path android:fillColor="#F9D320" android:pathData="M2.53115242,19.0988848 C2.76163569,23.9952416 14.8892193,27.8762825 29.8007435,27.7912268 C42.8237918,27.7168773 53.6874349,24.6411896 56.3485502,20.6004461 C55.7421561,19.9265428 54.904684,19.4643866 53.9613383,19.3391822 C53.9714498,19.220223 53.9779926,19.1003717 53.9773978,18.9787361 C53.9663941,17.0423792 52.5460223,15.4477323 50.695316,15.1503346 C50.7440892,14.8999257 50.7696654,14.6408922 50.7681784,14.3759108 C50.7559851,12.2194796 48.9977695,10.481487 46.8413383,10.4936803 C46.7925651,10.4939777 46.7449814,10.4999257 46.6965056,10.5020074 C46.8344981,10.0987361 46.9118216,9.66780669 46.9094424,9.21784387 C46.8969517,7.06141264 45.1390335,5.32342007 42.9826022,5.33561338 C42.4877323,5.33858736 42.0169517,5.43702602 41.5821561,5.60743494 C40.9653532,4.44639405 39.7811152,3.63717472 38.4002974,3.54379182 C38.1597026,1.60743494 36.5055762,0.113605948 34.506171,0.124843367 C33.247881,0.13204461 32.1350186,0.736356877 31.4263197,1.66453532 C30.7075093,0.882379182 29.6773234,0.391672862 28.5314498,0.398215613 C26.3750186,0.410408922 24.637026,2.16862454 24.6492193,4.32475836 C24.6515985,4.73665428 24.718513,5.13249071 24.8386617,5.50453532 C23.9586617,5.66780669 23.1848327,6.12520446 22.6191822,6.77144981 C22.1701115,5.09888476 20.642974,3.86973978 18.8297398,3.8798513 C17.1357621,3.88966543 15.7040892,4.97873606 15.172342,6.48981413 C13.7332342,7.07182156 12.7202974,8.48356877 12.7298141,10.1302602 C12.7318959,10.4960595 12.7878067,10.8481784 12.8838662,11.1836431 C12.398513,10.9713011 11.8634944,10.852342 11.2996283,10.8556134 C9.5994052,10.8654275 8.16327138,11.9622305 7.63598513,13.4822305 C7.13040892,13.2472862 6.56832714,13.1137546 5.973829,13.1173234 C3.81739777,13.1295167 2.07910781,14.8874349 2.09153162,17.0438662 C2.09546468,17.7549442 2.29263941,18.4187361 2.62810409,18.9909294 C2.59390335,19.0254275 2.56386617,19.063197 2.53115242,19.0988848" />
<path android:fillColor="#DB382A" android:pathData="M50.9736803,68.1576208 C49.8275093,69.89829 47.6002974,71.7008178 45.2692937,72.9026022 L49.2541264,32.4853532 C51.7894424,31.6707807 54.2634944,30.5915242 56.085948,29.0438662 L50.9736803,68.1576208 Z M41.3037918,74.5885502 C37.4450558,75.8655762 35.201487,76.2614126 31.9895911,76.5766543 L32.4901115,35.0432714 C36.0383643,34.9415613 40.6301859,34.4606691 44.5427509,33.6255762 L41.3037918,74.5885502 Z M18.29829,74.5885502 L15.0596283,33.6255762 C18.9718959,34.4606691 23.5637175,34.9415613 27.1119703,35.0432714 L27.6124907,76.5766543 C24.4005948,76.2614126 22.1573234,75.8655762 18.29829,74.5885502 Z M8.62869888,68.1576208 L3.51613383,29.0438662 C5.33858736,30.5915242 7.81263941,31.6707807 10.3479554,32.4853532 L14.3327881,72.9026022 C12.0017844,71.7008178 9.77457249,69.89829 8.62869888,68.1576208 Z M50.687881,13.6110037 C50.7384387,13.8578439 50.7666914,14.1130112 50.7681784,14.3750186 C50.7696654,14.64 50.7440892,14.8990335 50.6950186,15.1494424 C52.5460223,15.4465428 53.9663941,17.0411896 53.9773978,18.9778439 C53.9779926,19.0991822 53.9714498,19.2193309 53.9613383,19.3379926 C54.904684,19.463197 55.7421561,19.9253532 56.3485502,20.5992565 C53.6877323,24.6402974 42.8237918,27.7159851 29.8010409,27.790632 C14.8895167,27.8759851 2.76193309,23.9952416 2.53115242,19.0985874 C2.56386617,19.063197 2.59390335,19.0251301 2.62810409,18.9909294 C2.39791822,18.5983643 2.23910781,18.1608922 2.15702602,17.6966543 C0.729219331,19.0518959 -0.13472119,20.1445353 0.0172490706,21.7356134 C0.0318215613,21.9482528 6.3339777,67.0709294 6.3339777,67.0709294 C7.06111524,74.2173978 17.4388104,79.9292193 29.8010409,80 C42.1632714,79.9292193 52.5412639,74.2173978 53.2681041,67.0709294 C53.2681041,67.0709294 59.5702602,21.9482528 59.5848327,21.7356134 C59.8866914,18.5531599 56.162974,15.6642379 50.687881,13.6110037 L50.687881,13.6110037 Z" />
</group>
<path android:fillColor="#FFFFFE" android:pathData="M15.0596283,33.6255762 L18.29829,74.5885502 C22.1573234,75.8655762 24.4005948,76.2614126 27.6124907,76.5766543 L27.1119703,35.0432714 C23.5637175,34.9415613 18.9718959,34.4606691 15.0596283,33.6255762" />
<path android:fillColor="#FFFFFE" android:pathData="M31.9895911,76.5766543 C35.201487,76.2614126 37.4447584,75.8655762 41.3037918,74.5885502 L44.5424535,33.6255762 C40.6301859,34.4606691 36.0383643,34.9415613 32.4901115,35.0432714 L31.9895911,76.5766543" />
<path android:fillColor="#FFFFFE" android:pathData="M45.2692937,72.9026022 C47.6002974,71.7008178 49.8275093,69.89829 50.9733829,68.1576208 L56.085948,29.0438662 C54.2634944,30.5915242 51.7894424,31.6707807 49.2541264,32.4853532 L45.2692937,72.9026022" />
<path android:fillColor="#FFFFFE" android:pathData="M3.51613383,29.0438662 L8.62840149,68.1576208 C9.77457249,69.89829 12.0017844,71.7008178 14.3327881,72.9026022 L10.3479554,32.4853532 C7.81263941,31.6707807 5.33858736,30.5915242 3.51613383,29.0438662" />
</group>
</vector>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Official Rotten Tomatoes Popcornmeter artwork; see docs/brand-assets.md. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="80dp" android:height="80dp" android:viewportWidth="80" android:viewportHeight="80">
<group android:translateX="0" android:translateY="12.46">
<group>
<path android:fillColor="#185A30" android:pathData="M45.4780328,39.6152131 C45.9506885,38.4445902 47.6259672,37.7314098 48.8288525,37.8148197 C50.114623,37.904 51.4803934,39.2556066 51.719082,40.584918 C51.7634098,40.5366557 51.8098361,40.4910164 51.8570492,40.4461639 C52.2699016,40.0516721 52.7871475,39.7899016 53.3531803,39.7177705 C53.266623,39.3342951 53.2459016,38.9238033 53.3051803,38.5025574 C53.5142295,37.0205902 54.7034754,35.9092459 56.0650492,35.9202623 C56.9437377,35.9273443 57.714623,36.376918 58.216918,37.067541 C58.2617705,37.0114098 58.3113443,36.96 58.3596066,36.907541 C58.9340328,33.9152787 59.2980984,30.5345574 59.3809836,26.9468852 C59.6655738,14.6103607 56.5356066,4.53193443 52.3902951,4.43645902 C48.2447213,4.34072131 44.653377,14.2638689 44.3687869,26.6003934 C44.3687869,26.6003934 44.1492459,31.1000656 45.4780328,39.6152131" />
<path android:fillColor="#F9D320" android:pathData="M73.5446557,53.1058361 C73.7896393,52.696918 73.9265574,52.2066885 73.9171148,51.6857705 C73.9965902,50.002623 72.8411803,48.4768525 71.2335738,48.6457705 C71.28,48.4532459 71.3104262,48.2531148 71.3222295,48.0466885 C71.4184918,46.3606557 70.2557377,44.907541 68.7249836,44.8013115 C68.6914098,44.7992131 68.6583607,44.7981639 68.6250492,44.7971148 C68.7842623,44.3787541 68.8632131,43.9116066 68.8351475,43.4166557 C68.7559344,42.0139016 67.7885902,40.832 66.5300984,40.5993443 C66.075541,40.5154098 65.634623,40.5571148 65.2309508,40.696918 C64.8495738,39.757377 64.0487869,39.060459 63.074623,38.9133115 C62.9975082,37.3878033 61.8956066,36.1321967 60.4768525,36.0338361 C59.5847869,35.9719344 58.7651148,36.3816393 58.216918,37.067541 C57.714623,36.376918 56.9437377,35.9276066 56.0650492,35.9204395 C54.7034754,35.9092459 53.5142295,37.0205902 53.3051803,38.5028197 C53.2459016,38.9238033 53.266623,39.3342951 53.3531803,39.7180328 C52.7871475,39.7899016 52.2699016,40.0519344 51.8570492,40.4461639 C51.8098361,40.4910164 51.7634098,40.5366557 51.719082,40.584918 C51.4803934,39.2556066 50.114623,37.9042623 48.8288525,37.8148197 C47.6259672,37.7314098 45.928918,38.4621639 45.4780328,39.6152131 C45.6758033,41.6259672 46.9327213,47.1071475 51.4788197,52.0241311 L51.5192131,52.0270164 C51.9575082,52.4236066 52.5298361,52.6420984 53.1399344,52.5878033 C53.5181639,52.5539672 53.8664918,52.418623 54.1665574,52.2098361 L54.2397377,52.2148197 C54.6397377,52.4925902 55.1205246,52.6379016 55.6285902,52.5927869 C55.8226885,52.5754754 56.0078689,52.5287869 56.1838689,52.4621639 C56.6192787,53.3623607 57.5902951,53.9441311 58.6740984,53.8486557 C59.5134426,53.7746885 60.2268852,53.3104262 60.6462951,52.6570492 L60.7821639,52.6664918 C61.2010492,53.0817049 61.7579016,53.323541 62.3585574,53.3054426 C62.855082,54.0566557 63.767082,54.5188197 64.7735082,54.4304262 C65.1525246,54.3971148 65.5063607,54.2874754 65.8219016,54.1214426 C66.3483279,54.7690492 67.2123279,55.1540984 68.1602623,55.0706885 C69.0974426,54.9885902 69.8890492,54.4689836 70.3197377,53.7505574 C70.7428197,54.0902295 71.272918,54.2725246 71.8358033,54.2224262 C72.3819016,54.1736393 72.8671475,53.9158033 73.2317377,53.5257705 L73.2925902,53.5299672 C73.3754754,53.4098361 73.4462951,53.2868197 73.5121311,53.1627541 C73.5137049,53.1603934 73.5150164,53.1577705 73.5163279,53.1554098 C73.5252459,53.1388852 73.5362623,53.122623 73.5446557,53.1058361" />
<path android:fillColor="#129B47" android:pathData="M42.2090492,9.21232787 L6.56209836,12.7268197 C7.62203279,10.6709508 9.21206557,8.70662295 10.7472787,7.6957377 L45.2440656,3.18662295 C43.8793443,4.79422951 42.9272131,6.9762623 42.2090492,9.21232787 Z M45.2440656,49.5517377 L10.7472787,45.042623 C9.21206557,44.032 7.62203279,42.0674098 6.56209836,40.0118033 L42.2090492,43.5262951 C42.9272131,45.7620984 43.8793443,47.9443934 45.2440656,49.5517377 Z M5.07514754,36.5143607 C3.94885246,33.1108197 3.6,31.1323279 3.32170492,28.2992787 L39.9527869,28.7409836 C40.0427541,31.8701639 40.4668852,35.9202623 41.2031475,39.3707541 L5.07514754,36.5143607 Z M5.07514754,16.224 L41.2031475,13.3676066 C40.4668852,16.8180984 40.0427541,20.8681967 39.9527869,23.9976393 L3.32170492,24.439082 C3.6,21.6062951 3.94885246,19.627541 5.07514754,16.224 Z M56.7186885,3.84865574 C54.4333115,1.18767213 52.7926557,-0.0616393443 51.3872787,0.100721311 C51.1252459,0.134032787 11.4032787,5.67213115 11.4032787,5.67213115 C5.10006557,6.31318033 0.0624262295,15.4659672 0,26.3693115 C0.0624262295,37.2723934 5.10006557,46.4251803 11.4032787,47.0664918 C11.4032787,47.0664918 51.1997377,52.6247869 51.3872787,52.6376393 C51.7196066,52.635541 52.0477377,52.5909508 52.3711475,52.5080656 C52.0563934,52.4144262 51.7660328,52.2504918 51.5192131,52.0270164 L51.4788197,52.0241311 C46.9327213,47.1074098 45.6758033,41.6259672 45.4780328,39.6152131 C45.4785574,39.6136393 45.4796066,39.6123279 45.4801311,39.6107541 C45.4796066,39.6123279 45.4785574,39.6136393 45.4780328,39.6152131 C44.1492459,31.1000656 44.3687869,26.6003934 44.3687869,26.6003934 C44.653377,14.2638689 48.2447213,4.34072131 52.3902951,4.43619672 C56.5356066,4.53193443 59.6655738,14.6103607 59.3809836,26.9468852 C59.2980984,30.5345574 58.9340328,33.9152787 58.3596066,36.907541 C58.9497705,36.2562623 59.741377,35.9819016 60.4768525,36.0338361 C60.6121967,36.043541 60.7438689,36.0663607 60.872918,36.096 C63.3904262,22.3210492 60.7512131,8.87029508 56.7186885,3.84865574 L56.7186885,3.84865574 Z" />
</group>
<path android:fillColor="#FFFFFE" android:pathData="M41.2031475,13.3676066 L5.07514754,16.224 C3.94885246,19.627541 3.6,21.6062951 3.32170492,24.439082 L39.9527869,23.997377 C40.0427541,20.8681967 40.4668852,16.8180984 41.2031475,13.3676066" />
<path android:fillColor="#FFFFFE" android:pathData="M45.2440656,3.18662295 L10.7472787,7.6957377 C9.21206557,8.70662295 7.62203279,10.6709508 6.56209836,12.7268197 L42.2090492,9.21232787 C42.9272131,6.9762623 43.8793443,4.79422951 45.2440656,3.18662295" />
<path android:fillColor="#FFFFFE" android:pathData="M6.56209836,40.011541 C7.62203279,42.0674098 9.21206557,44.032 10.7472787,45.042623 L45.2440656,49.5517377 C43.8793443,47.9443934 42.9272131,45.7620984 42.2090492,43.5262951 L6.56209836,40.011541" />
<group android:translateX="3.15" android:translateY="28">
<path android:fillColor="#FFFFFE" android:pathData="M36.8052459,0.675409836 L0.174163934,0.233704918 C0.452459016,3.0664918 0.801311475,5.0452459 1.92760656,8.44878689 L38.0556066,11.3051803 C37.3193443,7.85468852 36.8952131,3.80459016 36.8052459,0.675409836" />
</group>
</group>
</vector>

BIN
distribution/Kaleido.apk Normal file

Binary file not shown.

View file

@ -0,0 +1 @@
6f1d42ee5167dcb3743b7dafbecfed9942e496ee10b8b277ba2a3ba66c6407ba Kaleido.apk

7
distribution/latest.json Normal file
View file

@ -0,0 +1,7 @@
{
"version": "0.1.1",
"versionCode": 2,
"url": "https://git.elijahkuntz.com/Elijah/Kaleido/raw/tag/v0.1.1/distribution/Kaleido.apk",
"checksumUrl": "https://git.elijahkuntz.com/Elijah/Kaleido/raw/tag/v0.1.1/distribution/Kaleido.apk.sha256",
"notes": "0.1.1\n\n- Use official Rotten Tomatoes Hot and Stale audience badges with proportional scaling beside ratings.\n- Replace the spinning startup logo with a six-facet aperture assembly, light trails, and a staggered wordmark reveal.\n- Honor Android's animation duration setting and fade into browsing after the opening sequence completes.\n"
}

18
docs/brand-assets.md Normal file
View file

@ -0,0 +1,18 @@
# Bundled rating artwork
`rating_rt_hot.xml` and `rating_rt_stale.xml` contain the official Rotten Tomatoes
Popcornmeter positive/negative SVG artwork, losslessly translated to Android vector
paths, groups and clipping. Original proportions, colors and geometry are retained.
They scale with the rating text's font scale in a stable square layout slot.
Source: Rotten Tomatoes' [licensing page](https://www.rottentomatoes.com/help_desk/licensing),
the `score-icon-audience` component in
`https://www.rottentomatoes.com/assets/pizza-pie/javascripts/bundles/roma/default.37b35da8576.js`,
retrieved 2026-10-24. Artwork and trademarks belong to their respective owners;
bundling these assets does not grant trademark or data licensing rights.
Hot is used at 60% or higher; Stale below 60%. A high percentage alone does not
establish Verified Hot status, so Kaleido does not manufacture that designation
from Plex's audience number. Provider selection and scores continue to use Plex.
The IMDb mark is from the [IMDb brand toolkit](https://brand.imdb.com/imdb).

View file

@ -12,8 +12,8 @@ The interface gives artwork priority. App chrome uses neutral near-black, charco
- Search uses three columns of landscape results. Episodes use their actual stills, preserving their native proportions instead of cropping them into posters.
- Features use original Plex clear-logo artwork within 264 × 80 dp, falling back to title text. Detail title: 34/37 sp. Library title: 29/34 sp. Discovery rail heading: 17/22 sp. Supporting information: 10/14 sp.
- Poster and thumbnail corners: 6 dp. Compact action corners: 5 dp. Cards have no idle border; a compact bottom-right check marks watched titles, or a number shows remaining episodes for a show/season when Plex provides counts. Unwatched movies have no badge. Resumed movies/episodes only show a check after the configured playback threshold (80 percent by default), even if Plex retains a historical watched flag. Completed titles with no resume position retain Plex's watched state. Progress uses a two-dp inset line.
- The abstract six-facet aperture mark is shared by the header, sign-in, app icon, TV banner, and a short cold-start splash. It uses muted sea-glass and warm ivory facets around a dark center, with no letterform or sparkle.
- Audience ratings display Rotten Tomatoes as a percentage beside a local popcorn-bucket vector, and IMDb on its native ten-point scale beside the gold IMDb logo. Both appear when Plex exposes both; TVDB is retained as a fallback when neither is available. Critic scores and unsupported providers are omitted. Stable preview focus hydrates detail metadata, where Plex exposes the full provider list. The popcorn bucket tips for audience scores below 60 percent. The IMDb vector uses the official gold primary mark and supplied clear space from the [IMDb brand toolkit](https://brand.imdb.com/imdb).
- The abstract six-facet aperture mark is shared by the header, sign-in, app icon, TV banner, and a cold-start aperture assembly. It uses muted sea-glass and warm ivory facets around a dark center, with no letterform or sparkle.
- Audience ratings display Rotten Tomatoes as a percentage beside its official Popcornmeter artwork, and IMDb on its native ten-point scale beside the gold IMDb logo. Both appear when Plex exposes both; TVDB is retained as a fallback when neither is available. Critic scores and unsupported providers are omitted. Stable preview focus hydrates detail metadata, where Plex exposes the full provider list. The official red Hot mark appears at 60 percent or above and the green Stale mark below 60 percent; each fits a stable, font-scaled square without recoloring or distortion. Verified Hot is not inferred from a percentage. Asset provenance is in [brand-assets.md](brand-assets.md). The IMDb vector uses the official gold primary mark and supplied clear space from the [IMDb brand toolkit](https://brand.imdb.com/imdb).
## Focus and motion
@ -21,7 +21,7 @@ The interface gives artwork priority. App chrome uses neutral near-black, charco
- Text actions scale to 1.025 over 160 ms. Navigation uses text, an understated selected underline, and a translucent charcoal focus surface.
- Navigation contrast comes from a gradient extending past the controls and fading to transparent. Home/Movies/TV activate on focus. Explicit row and column links prevent beyond-bounds focus searches when holding a remote direction.
- A D-pad move predicts the actual row/column destination before starting its scroll or focus change. The target backdrop is fetched and contrast-processed through the same Coil request/cache as the visible scene. Speculative artwork uses one low-priority worker so it cannot flood normal decode workers during a burst of input. Metadata starts in parallel; the visible preview and details page share that in-flight request. Rapid navigation replaces the queued metadata target and cancels superseded artwork prefetches. Full metadata uses a 64-item LRU with a 30-second lifetime, cleared on account/server changes and refreshed after watched updates. Neutral library/search grids prefetch metadata without fetching an unused full-screen backdrop.
- Section previews settle for 120 ms (Home artwork for 90 ms), overlapping the navigation animation, and retain previous artwork until replacement data is ready. Contrast gradients are baked into a cached bitmap on a worker thread, reducing GPU overdraw. Hero recommendation changes crossfade the artwork over 220 ms, including cache hits, and fade the title/summary out for 100 ms and back in over 180 ms. Rotation pauses on the information/next controls and preserves their focus. Vertical row changes animate to explicit row/column targets; page entrances fade and slide 28 dp over 280 ms. The cold-start logo reveals over 1.1 seconds; the cover lasts 1.6 seconds with up to 600 ms extra for loading, then fades over 240 ms. It does not replay when returning from background.
- Section previews settle for 120 ms (Home artwork for 90 ms), overlapping the navigation animation, and retain previous artwork until replacement data is ready. Contrast gradients are baked into a cached bitmap on a worker thread, reducing GPU overdraw. Hero recommendation changes crossfade the artwork over 220 ms, including cache hits, and fade the title/summary out for 100 ms and back in over 180 ms. Rotation pauses on the information/next controls and preserves their focus. Vertical row changes animate to explicit row/column targets; page entrances fade and slide 28 dp over 280 ms. The cold-start sequence lasts 2.6 seconds: six light trails converge, the exact aperture facets assemble radially without spinning, a soft glow and facet glint settle, and the wordmark reveals letter by letter. Completion drives the cover dismissal, with up to 600 ms extra for loading followed by a 360 ms crossfade. Android animation duration scale is honored, including animations off. It does not replay when returning from background.
- Returning from details restores the library's mode, scroll position, and previously focused title.
## Player

View file

@ -27,3 +27,11 @@ For reproducible performance checks, install the release, send `androidx.profile
Release compilation, unit tests and lint passed with zero lint errors (existing warnings remain). Temporary debugging log tags were removed.
The final release recheck after adding the app baseline rules passed again: median 15 ms, p95 27 ms, GPU p95 5 ms, stable row Y coordinates. Results remain dependent on device compilation state; some frames still miss a 60 Hz deadline under the burst test.
## Rating artwork and startup review - 2026-10-24
- Replaced the custom popcorn drawings with official red Hot / green Stale Popcornmeter vector paths. On-device screenshots show the red mark beside Andor's 89% and the green mark beside Matchbox's 49%; the existing IMDb score remains alongside them. Artwork fits a fixed square scaled with text, retaining the official aspect ratio and colors. See [brand-assets.md](brand-assets.md) for provenance and designation rules.
- The 2.6-second opening assembles the six original aperture facets with light trails, a soft glow, a brief facet glint and a staggered wordmark reveal. Cover dismissal follows animation completion, then the bounded loading wait and crossfade. Android animation duration scale is honored by the animations; the device was reviewed at its existing 1.0 setting.
- Built with `Build.ps1 -Release -Test`: optimized release, existing unit test and lint passed (zero errors, existing warnings/hints remain). Installed in place on the authorized onn with the existing encrypted session intact, then installed the baseline profile and compiled only Kaleido with `speed-profile`.
- Recorded and inspected the actual cold-start sequence, Home and Movies/TV screenshots, and both rating states. `verify_ui.py browse` passed all six checks; `repro_runtime.py sections` passed startup tab switching, TV loading and cached Movies return. The harness now waits for the splash's accessibility description to disappear instead of counting wordmark text nodes.
- Private evidence: `ratings-home.png`, `final-movies-discover.png`, `kaleido-startup-review.mp4`, and the trimmed `kaleido-intro.mp4` in ignored `evidence/private/`. No playback checks or new frame-pacing benchmark were needed for these cosmetic changes. Left the optimized release on Home.

View file

@ -8,7 +8,7 @@ def sections():
# Initialization must remain independent of tab loading on slow servers.
adb('shell','am','force-stop','tv.kaleido.app')
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity')
wait(lambda r:'Home' in labels(r) and labels(r).count('KALEIDO')==1,'Cold-start splash must finish')
wait(lambda r:'Home' in labels(r) and all(n.get('content-desc')!='Kaleido starting' for n in r.iter('node')),'Cold-start splash must finish')
key(22)
wait(lambda r:'Recently released' in labels(r),'Movies must finish loading after a startup tab switch')
focused('Movies');screenshot('cold-tabs-fixed')

View file

@ -30,7 +30,7 @@ def launch():
adb('shell','am','force-stop','tv.kaleido.app')
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity')
text('Continue Watching')
wait(lambda r:labels(r).count('KALEIDO')==1,'Cold-start splash must finish')
wait(lambda r:all(n.get('content-desc')!='Kaleido starting' for n in r.iter('node')),'Cold-start splash must finish')
focused('Home')
def browse():

View file

@ -1,2 +1,2 @@
versionName=0.1.0
versionCode=1
versionName=0.1.1
versionCode=2