Tweak fade speed and opacity on blurhash placeholders
This commit is contained in:
@@ -100,6 +100,7 @@ struct ImageCarousel: View {
|
|||||||
case .processed(let blurhash) = meta.state {
|
case .processed(let blurhash) = meta.state {
|
||||||
Image(uiImage: blurhash)
|
Image(uiImage: blurhash)
|
||||||
.resizable()
|
.resizable()
|
||||||
|
.opacity(0.8)
|
||||||
.frame(width: geo_size.width * UIScreen.main.scale, height: self.height * UIScreen.main.scale)
|
.frame(width: geo_size.width * UIScreen.main.scale, height: self.height * UIScreen.main.scale)
|
||||||
} else {
|
} else {
|
||||||
EmptyView()
|
EmptyView()
|
||||||
@@ -127,7 +128,7 @@ struct ImageCarousel: View {
|
|||||||
.callbackQueue(.dispatch(.global(qos:.background)))
|
.callbackQueue(.dispatch(.global(qos:.background)))
|
||||||
.backgroundDecode(true)
|
.backgroundDecode(true)
|
||||||
.imageContext(.note, disable_animation: state.settings.disable_animation)
|
.imageContext(.note, disable_animation: state.settings.disable_animation)
|
||||||
.image_fade(duration: 1.0)
|
.image_fade(duration: 0.25)
|
||||||
.cancelOnDisappear(true)
|
.cancelOnDisappear(true)
|
||||||
.configure { view in
|
.configure { view in
|
||||||
view.framePreloadCount = 3
|
view.framePreloadCount = 3
|
||||||
|
|||||||
Reference in New Issue
Block a user