mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Working Timer in Minimalistic View
This commit is contained in:
parent
9e8acaf9b9
commit
8a76d9e86f
4 changed files with 135 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ let batterySneakSize: CGSize = .init(width: 160, height: 1)
|
|||
let openNotchSize: CGSize = .init(width: 640, height: 190)
|
||||
private let minimalisticBaseOpenNotchSize: CGSize = .init(width: 420, height: 180)
|
||||
private let minimalisticLyricsExtraHeight: CGFloat = 40
|
||||
let minimalisticTimerCountdownTopPadding: CGFloat = 12
|
||||
let minimalisticTimerCountdownContentHeight: CGFloat = 82
|
||||
let minimalisticTimerCountdownBlockHeight: CGFloat = minimalisticTimerCountdownTopPadding + minimalisticTimerCountdownContentHeight
|
||||
let statsSecondRowContentHeight: CGFloat = 120
|
||||
let statsGridSpacingHeight: CGFloat = 12
|
||||
let notchShadowPaddingStandard: CGFloat = 18
|
||||
|
|
@ -36,6 +39,10 @@ var minimalisticOpenNotchSize: CGSize {
|
|||
size.height += reminderHeight
|
||||
}
|
||||
|
||||
if DynamicIslandViewCoordinator.shared.timerLiveActivityEnabled && TimerManager.shared.isExternalTimerActive {
|
||||
size.height += minimalisticTimerCountdownBlockHeight
|
||||
}
|
||||
|
||||
return size
|
||||
}
|
||||
let cornerRadiusInsets: (opened: (top: CGFloat, bottom: CGFloat), closed: (top: CGFloat, bottom: CGFloat)) = (opened: (top: 19, bottom: 24), closed: (top: 6, bottom: 14))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue