From 22a353112b1744eb7d0408b7aa19b847c8985426 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Thu, 29 Aug 2024 15:53:09 +1000 Subject: [PATCH] minor fix on how we render the tag --- SessionUIKit/Utilities/Localization+Style.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SessionUIKit/Utilities/Localization+Style.swift b/SessionUIKit/Utilities/Localization+Style.swift index 8919026b6..1da248a26 100644 --- a/SessionUIKit/Utilities/Localization+Style.swift +++ b/SessionUIKit/Utilities/Localization+Style.swift @@ -50,7 +50,7 @@ public extension NSAttributedString { ] case .underline: return [.underlineStyle: NSUnderlineStyle.single.rawValue] case .strikethrough: return [.strikethroughStyle: NSUnderlineStyle.single.rawValue] - case .primaryTheme: return [.foregroundColor: ThemeManager.primaryColor.color] + case .primaryTheme: return [.foregroundColor: ThemeManager.currentTheme.color(for: .sessionButton_text).defaulting(to: ThemeManager.primaryColor.color)] } } } @@ -174,7 +174,7 @@ private extension Collection where Element == NSAttributedString.HTMLTag { case .italic: result[.font] = fontWith(font, traits: [.traitItalic]) case .underline: result[.underlineStyle] = NSUnderlineStyle.single.rawValue case .strikethrough: result[.strikethroughStyle] = NSUnderlineStyle.single.rawValue - case .primaryTheme: result[.foregroundColor] = ThemeManager.primaryColor.color + case .primaryTheme: result[.foregroundColor] = ThemeManager.currentTheme.color(for: .sessionButton_text).defaulting(to: ThemeManager.primaryColor.color) } } }