ios: send button color for incognito conversations (#2918)
This commit is contained in:
parent
67acc89dbf
commit
5a9ed86d1b
@ -240,6 +240,7 @@ struct ComposeView: View {
|
|||||||
@State var pendingLinkUrl: URL? = nil
|
@State var pendingLinkUrl: URL? = nil
|
||||||
@State var cancelledLinks: Set<String> = []
|
@State var cancelledLinks: Set<String> = []
|
||||||
|
|
||||||
|
@Environment(\.colorScheme) private var colorScheme
|
||||||
@State private var showChooseSource = false
|
@State private var showChooseSource = false
|
||||||
@State private var showMediaPicker = false
|
@State private var showMediaPicker = false
|
||||||
@State private var showTakePhoto = false
|
@State private var showTakePhoto = false
|
||||||
@ -308,7 +309,10 @@ struct ComposeView: View {
|
|||||||
allowVoiceMessagesToContact: allowVoiceMessagesToContact,
|
allowVoiceMessagesToContact: allowVoiceMessagesToContact,
|
||||||
timedMessageAllowed: chat.chatInfo.featureEnabled(.timedMessages),
|
timedMessageAllowed: chat.chatInfo.featureEnabled(.timedMessages),
|
||||||
onMediaAdded: { media in if !media.isEmpty { chosenMedia = media }},
|
onMediaAdded: { media in if !media.isEmpty { chosenMedia = media }},
|
||||||
keyboardVisible: $keyboardVisible
|
keyboardVisible: $keyboardVisible,
|
||||||
|
sendButtonColor: chat.chatInfo.incognito
|
||||||
|
? .indigo.opacity(colorScheme == .dark ? 1 : 0.7)
|
||||||
|
: .accentColor
|
||||||
)
|
)
|
||||||
.padding(.trailing, 12)
|
.padding(.trailing, 12)
|
||||||
.background(.background)
|
.background(.background)
|
||||||
|
@ -28,6 +28,7 @@ struct SendMessageView: View {
|
|||||||
@State private var holdingVMR = false
|
@State private var holdingVMR = false
|
||||||
@Namespace var namespace
|
@Namespace var namespace
|
||||||
@Binding var keyboardVisible: Bool
|
@Binding var keyboardVisible: Bool
|
||||||
|
var sendButtonColor = Color.accentColor
|
||||||
@State private var teHeight: CGFloat = 42
|
@State private var teHeight: CGFloat = 42
|
||||||
@State private var teFont: Font = .body
|
@State private var teFont: Font = .body
|
||||||
@State private var teUiFont: UIFont = UIFont.preferredFont(forTextStyle: .body)
|
@State private var teUiFont: UIFont = UIFont.preferredFont(forTextStyle: .body)
|
||||||
@ -169,7 +170,7 @@ struct SendMessageView: View {
|
|||||||
? "checkmark.circle.fill"
|
? "checkmark.circle.fill"
|
||||||
: "arrow.up.circle.fill")
|
: "arrow.up.circle.fill")
|
||||||
.resizable()
|
.resizable()
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(sendButtonColor)
|
||||||
.frame(width: sendButtonSize, height: sendButtonSize)
|
.frame(width: sendButtonSize, height: sendButtonSize)
|
||||||
.opacity(sendButtonOpacity)
|
.opacity(sendButtonOpacity)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user