Merge pull request #613 from mpretty-cyro/fix/linkPreviewDarkModeText

Fix link preview dark mode text
pull/616/head
RyanZhao 3 years ago committed by GitHub
commit 2260e76dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ final class LinkPreviewView : UIView {
private lazy var sentLinkPreviewTextColor: UIColor = { private lazy var sentLinkPreviewTextColor: UIColor = {
let isOutgoing = (viewItem?.interaction.interactionType() == .outgoingMessage) let isOutgoing = (viewItem?.interaction.interactionType() == .outgoingMessage)
switch (isOutgoing, AppModeManager.shared.currentAppMode) { switch (isOutgoing, AppModeManager.shared.currentAppMode) {
case (true, .dark), (false, .light): return .black case (false, .light): return .black
case (true, .light): return Colors.grey case (true, .light): return Colors.grey
default: return .white default: return .white
} }

Loading…
Cancel
Save