damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 25b233f5862c0d6fbc5804041039f059f1051078
parent fd6173c38c0e8a76a043c82392cbe4bb0dda4056
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 28 Dec 2022 11:26:40 -0800

Images: Don't show white background in dark mode and vice versa

Changelog-Fixed: Don't show white background on images in dark mode

Diffstat:
Mdamus/Components/ImageCarousel.swift | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/damus/Components/ImageCarousel.swift b/damus/Components/ImageCarousel.swift @@ -115,6 +115,8 @@ struct ImageViewer: View { struct ImageCarousel: View { var urls: [URL] + @Environment(\.colorScheme) var colorScheme + @State var open_sheet: Bool = false @State var current_url: URL? = nil @@ -122,6 +124,7 @@ struct ImageCarousel: View { TabView { ForEach(urls, id: \.absoluteString) { url in Rectangle() + .foregroundColor(colorScheme == .light ? Color.white : Color.black) .overlay { KFAnimatedImage(url) .configure { view in