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

Changelog-Fixed: Don't show white background on images in dark mode
This commit is contained in:
William Casarin
2022-12-28 11:26:40 -08:00
parent fd6173c38c
commit 25b233f586

View File

@@ -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