Skip to content

Commit 6caf734

Browse files
committed
Updated Climate controls
1 parent 64c4443 commit 6caf734

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

TeslaApp/Components/ActionComponents.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct ActionNotification: View {
3333
}
3434
.padding(20)
3535
.foregroundColor(Color.white)
36-
.background(Color.background)
36+
.background(Color.lockGradient)
3737
.backgroundBlur(radius: 10, opaque: true)
3838
.clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous))
3939
.padding()
@@ -176,8 +176,8 @@ struct MediaPlayerWidget: View {
176176
}
177177
.padding(20)
178178
.foregroundColor(Color.white)
179-
.background(Color.background)
180-
.backgroundBlur(radius: 10, opaque: true)
179+
.background(Color.lockGradient)
180+
.backgroundBlur(radius: 12, opaque: true)
181181
.cornerRadius(20, corners: [.topLeft, .topRight])
182182
}
183183
.edgesIgnoringSafeArea(.bottom)
@@ -244,8 +244,8 @@ struct ChargingWidget: View {
244244
}
245245
.padding(20)
246246
.foregroundColor(Color.white)
247-
.background(Color.background)
248-
.backgroundBlur(radius: 10, opaque: true)
247+
.background(Color.lockGradient)
248+
.backgroundBlur(radius: 2, opaque: true)
249249
.cornerRadius(20, corners: [.topLeft, .topRight])
250250
}
251251
.edgesIgnoringSafeArea(.bottom)

TeslaApp/Components/ClimateComponents.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77

88
import SwiftUI
9+
import Sliders
10+
911

1012
struct KnobWidget: View {
1113
var body: some View {
@@ -72,8 +74,11 @@ struct ControlWidget: View {
7274
.frame(width: 50)
7375

7476
Button(action: {
75-
self.activeId = title
76-
self.isActive = true
77+
withAnimation {
78+
self.activeId = title
79+
self.isActive = true
80+
}
81+
7782
}){
7883
Circle()
7984
.foregroundColor(Color("Background"))

TeslaApp/Views/ClimateView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct ClimateView: View {
6565
if (isActive) {
6666
ClimateWidget(open: $isActive, prgoress: $progress, activeId: $activeId, isActive: $isActive)
6767
.zIndex(1)
68-
.transition(.opacity)
68+
.transition(.move(edge: .bottom))
6969
}
7070

7171

0 commit comments

Comments
 (0)