From 073fb228d024cb2a4b774fcf6d1e8b2594371f53 Mon Sep 17 00:00:00 2001 From: Personal Date: Tue, 5 Oct 2021 21:02:21 +0300 Subject: [PATCH] Fixed attachments names' colors in dark mode --- FlowCrypt/Controllers/Compose/ComposeViewDecorator.swift | 6 +++--- FlowCrypt/Controllers/Msg/MessageViewDecorator.swift | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FlowCrypt/Controllers/Compose/ComposeViewDecorator.swift b/FlowCrypt/Controllers/Compose/ComposeViewDecorator.swift index df0cffc71..bab03ba07 100644 --- a/FlowCrypt/Controllers/Compose/ComposeViewDecorator.swift +++ b/FlowCrypt/Controllers/Compose/ComposeViewDecorator.swift @@ -64,7 +64,7 @@ struct ComposeViewDecorator { insets: UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8) ) } - + func styledMessage(with text: String) -> NSAttributedString { text.attributed(.regular(17)) } @@ -210,9 +210,9 @@ extension AttachmentNode.Input { init(composeAttachment: ComposeMessageAttachment) { self.init( name: composeAttachment.name - .attributed(.regular(18), color: .textColor, alignment: .left), + .attributed(.regular(18), color: .mainTextColor, alignment: .left), size: "\(composeAttachment.size)" - .attributed(.medium(12), color: .textColor, alignment: .left) + .attributed(.medium(12), color: .mainTextColor, alignment: .left) ) } } diff --git a/FlowCrypt/Controllers/Msg/MessageViewDecorator.swift b/FlowCrypt/Controllers/Msg/MessageViewDecorator.swift index d5a1cda3a..17ad5be48 100644 --- a/FlowCrypt/Controllers/Msg/MessageViewDecorator.swift +++ b/FlowCrypt/Controllers/Msg/MessageViewDecorator.swift @@ -49,9 +49,9 @@ extension AttachmentNode.Input { init(msgAttachment: MessageAttachment) { self.init( name: msgAttachment.name - .attributed(.regular(18), color: .textColor, alignment: .left), + .attributed(.regular(18), color: .mainTextColor, alignment: .left), size: "\(msgAttachment.size)" - .attributed(.medium(12), color: .textColor, alignment: .left) + .attributed(.medium(12), color: .mainTextColor, alignment: .left) ) } }