mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Removed Pulsating
This commit is contained in:
parent
4132b13bdc
commit
1ac788c5de
3 changed files with 33 additions and 69 deletions
|
|
@ -36,31 +36,16 @@ struct LockScreenLiveActivityOverlay: View {
|
|||
state == .locked ? "lock.fill" : "lock.open.fill"
|
||||
}
|
||||
|
||||
private var iconColor: Color {
|
||||
state == .locked ? .blue : .green
|
||||
}
|
||||
|
||||
private var glowColor: Color {
|
||||
state == .locked ? Color.blue.opacity(0.15) : Color.green.opacity(0.2)
|
||||
}
|
||||
private var iconColor: Color { .white }
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .top, spacing: 0) {
|
||||
Color.clear
|
||||
.background {
|
||||
HStack {
|
||||
ZStack {
|
||||
RoundedRectangle(cornerRadius: 6)
|
||||
.fill(glowColor)
|
||||
|
||||
Image(systemName: iconName)
|
||||
.font(.system(size: 12, weight: .semibold))
|
||||
.foregroundColor(iconColor)
|
||||
.modifier(LockPulsingModifier(isUnlocking: state == .unlocking))
|
||||
}
|
||||
.overlay(alignment: .leading) {
|
||||
Image(systemName: iconName)
|
||||
.font(.system(size: 12, weight: .semibold))
|
||||
.foregroundStyle(iconColor)
|
||||
.frame(width: indicatorSize, height: indicatorSize)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
|
||||
}
|
||||
.frame(width: indicatorSize, height: notchSize.height, alignment: .top)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue