Chore: changes to send button colour

This commit is contained in:
Xavi Gil
2025-08-06 10:40:46 +02:00
parent 017eb69c44
commit 84cd3bc550
3 changed files with 3 additions and 7 deletions
@@ -22,10 +22,6 @@ struct SendButton: View {
@Environment(\.isEnabled) var isEnabled
let onTap: () -> Void
private var textColor: Color {
isEnabled ? DS.Color.Text.accent : DS.Color.Brand.minus20
}
var body: some View {
Button(
action: onTap,
@@ -33,7 +29,7 @@ struct SendButton: View {
Text(L10n.Composer.send)
.font(.subheadline)
.fontWeight(.semibold)
.foregroundStyle(textColor)
.foregroundStyle(DS.Color.Text.inverted)
}
)
.buttonStyle(SendButtonStyle())
@@ -45,9 +41,9 @@ private struct SendButtonStyle: ButtonStyle {
func backgroundColor(configuration: Self.Configuration) -> Color {
if isEnabled {
configuration.isPressed ? DS.Color.InteractionBrandWeak.pressed : DS.Color.InteractionBrandWeak.norm
configuration.isPressed ? DS.Color.InteractionBrand.pressed : DS.Color.InteractionBrand.norm
} else {
DS.Color.InteractionBrandWeak.disabled
DS.Color.InteractionBrand.disabled
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB