mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 12:28:29 +00:00
Update Send button bg color (#5170)
* Update Send button bg color Change the gradient bg to accent/rest. * Tidy-up ComposerToolbar to match iOS 18 Figma. Also simplifies the tests a bit. * Add a .glassEffect to Compound's SendButton. * Add a border to TimelineReplyView. Also use the same sizes in both the message bubbles and the composer. * Change icon size and container in message bubbles - Container size = 36x36px - Icon size = 24x24px * Update icon of reply contents to be 24x24 * Update the VoiceMessageButton to match the designs. * Adopt Liquid Glass in the ComposerToolbar. * Generate and fix snapshots. --------- Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
@@ -109,6 +109,14 @@ struct ComposerToolbarViewState: BindableState {
|
||||
}
|
||||
}
|
||||
|
||||
var sendButtonMode: SendButton.Mode {
|
||||
composerMode.isEdit ? .edit : .send
|
||||
}
|
||||
|
||||
var sendButtonAccessibilityLabel: String {
|
||||
composerMode.isEdit ? L10n.actionConfirm : L10n.actionSend
|
||||
}
|
||||
|
||||
var sendButtonDisabled: Bool {
|
||||
if !canSend {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user