diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift index a2fdc890d..3e2b91ab9 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift @@ -240,8 +240,7 @@ struct WebReaderContainerView: View { } .frame(height: readerViewNavBarHeight * navBarVisibilityRatio) .opacity(navBarVisibilityRatio) - .background(Color.black) - .background(Theme.fromName(themeName: ThemeManager.currentThemeName)?.bgColor ?? .clear) + .background(Color.systemBackground) .alert("Are you sure?", isPresented: $showDeleteConfirmation) { Button("Remove Link", role: .destructive) { Snackbar.show(message: "Link removed") @@ -303,7 +302,6 @@ struct WebReaderContainerView: View { showBottomBar: $showBottomBar, showHighlightAnnotationModal: $showHighlightAnnotationModal ) - .background(Theme.fromName(themeName: ThemeManager.currentThemeName)?.bgColor ?? .clear) .onTapGesture { withAnimation { navBarVisibilityRatio = 1 diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift index 79c1e5d07..6aaa82bcf 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift @@ -16,7 +16,7 @@ struct WebReaderContent { init( item: LinkedItem, articleContent: ArticleContent, - isDark _: Bool, + isDark: Bool, fontSize: Int, lineHeight: Int, maxWidthPercentage: Int, @@ -27,7 +27,7 @@ struct WebReaderContent { self.lineHeight = lineHeight self.maxWidthPercentage = maxWidthPercentage self.item = item - self.themeKey = ThemeManager.currentThemeName // isDark ? "Gray" : "Charcoal" + self.themeKey = isDark ? "Gray" : "LightGray" self.fontFamily = fontFamily self.articleContent = articleContent self.prefersHighContrastText = prefersHighContrastText diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderCoordinator.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderCoordinator.swift index 35fb77f63..99e9952d3 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderCoordinator.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderCoordinator.swift @@ -74,7 +74,7 @@ extension WebReaderCoordinator: WKNavigationDelegate { func webView(_ webView: WKWebView, didFinish _: WKNavigation!) { #if os(iOS) webView.isOpaque = true - webView.backgroundColor = .clear + webView.backgroundColor = .systemBackground #endif }