From 0c9c06047ab182282680608f21fb8b35f009ff4d Mon Sep 17 00:00:00 2001 From: Doug Date: Fri, 29 May 2026 12:17:45 +0100 Subject: [PATCH] Restrict the dynamic range of avatars to prevent them from displaying HDR content. It makes no sense to scroll through the room list/timeline and the screen to be going in and out of HDR. --- ElementX/Sources/Other/SwiftUI/Views/LoadableAvatarImage.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ElementX/Sources/Other/SwiftUI/Views/LoadableAvatarImage.swift b/ElementX/Sources/Other/SwiftUI/Views/LoadableAvatarImage.swift index 78e0678fb..13c24dd7e 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/LoadableAvatarImage.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/LoadableAvatarImage.swift @@ -60,6 +60,7 @@ struct LoadableAvatarImage: View { .frame(width: frameSize, height: frameSize) .background(Color.compound.bgCanvasDefault) .avatarShape(shape, scaledSize: _frameSize) + .allowedDynamicRange(.standard) // Prevent avatars from triggering HDR display. .environment(\.shouldAutomaticallyLoadImages, true) // We always load avatars. }