mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fixed an issue where the text on the LinkPreview in dark mode wasn't visible
This commit is contained in:
parent
7256cc6871
commit
dbb0cdf0cb
|
@ -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…
Reference in a new issue