feat: lighten skip countdown and fill toward expiry

This commit is contained in:
2026-10-22 14:25:34 +02:00
parent 53369424e6
commit 0588d162d6
4 changed files with 6 additions and 10 deletions
+4 -3
View File
@@ -3354,10 +3354,10 @@ private struct PlayerContent: View {
PlayerGlass(cornerRadius: 8)
TimelineView(.animation(minimumInterval: reduceMotion ? 1 : 1.0 / 30)) { _ in
GeometryReader { geometry in
let remaining = model.skipOfferRemainingFraction
Color(SunsetPalette.accent).opacity(0.25)
let elapsed = 1 - model.skipOfferRemainingFraction
Color(SunsetPalette.text).opacity(0.25)
.frame(width: geometry.size.width *
(reduceMotion ? ceil(remaining * 10) / 10 : remaining))
(reduceMotion ? floor(elapsed * 10) / 10 : elapsed))
}
}
}
@@ -3574,6 +3574,7 @@ struct TerebiApp: App {
PlayerContent(model: model)
.focusedSceneObject(model)
}
.defaultLaunchBehavior(.presented)
.defaultSize(width: 640, height: 400)
.windowResizability(.contentSize)
.windowStyle(.hiddenTitleBar)