feat: lighten skip countdown and fill toward expiry
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user