Skip to content

Commit 25bfce6

Browse files
Update Send button bg color
Change the gradient bg to accent/rest.
1 parent 0c79b54 commit 25bfce6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compound-ios/Sources/Compound/Buttons/SendButton.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ public struct SendButton: View {
2020
return colorScheme == .light ? .compound.iconOnSolidPrimary : .compound.iconPrimary
2121
}
2222

23-
private var gradient: Gradient {
24-
isEnabled ? .compound.action : .init(colors: [.clear])
25-
}
26-
2723
/// Creates a send button that performs the provided action.
2824
public init(action: @escaping () -> Void) {
2925
self.action = action
@@ -41,7 +37,9 @@ public struct SendButton: View {
4137

4238
var buttonShape: some View {
4339
Circle()
44-
.fill(LinearGradient(gradient: gradient, startPoint: .top, endPoint: .bottom))
40+
.fill(isEnabled
41+
? Color.compound.bgAccentRest
42+
: Color.clear)
4543
}
4644
}
4745

0 commit comments

Comments
 (0)