From 5d75cef0380c9a2d027a042eacd890acd7b160eb Mon Sep 17 00:00:00 2001 From: JanNiklas Grabowski Date: Tue, 2 Apr 2024 12:48:30 +0200 Subject: [PATCH] MESSENGER-5793 fix text color and theme change --- bwi/ContentScanner/UI/Status/ContentScannerStatus.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bwi/ContentScanner/UI/Status/ContentScannerStatus.swift b/bwi/ContentScanner/UI/Status/ContentScannerStatus.swift index 605286fde..6b0bc5ca2 100644 --- a/bwi/ContentScanner/UI/Status/ContentScannerStatus.swift +++ b/bwi/ContentScanner/UI/Status/ContentScannerStatus.swift @@ -35,6 +35,8 @@ class ContentScannerStatus: ObservableObject, ContentScannerContentDelegate { func render(with viewData: ContentScannerStatusViewData) { + theme = ThemeService.shared().theme + let scanStatus = viewData.scanStatus switch scanStatus { @@ -59,7 +61,7 @@ class ContentScannerStatus: ObservableObject, ContentScannerContentDelegate { self.scanStatusVisibility = (scanStatus == .infected) ? false : true self.backgroundColor = (scanStatus == .infected) ? self.theme.warningColor : self.theme.baseColor - self.tintColor = (scanStatus != .infected) ? self.theme.backgroundColor : self.theme.warningColor + self.tintColor = (scanStatus != .infected) ? self.theme.textSecondaryColor : self.theme.warningColor self.statusColor = (scanStatus != .infected) ? self.theme.textPrimaryColor : self.theme.textSecondaryColor } }