mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-01 07:08:17 +00:00
Fix bg
This commit is contained in:
parent
d615f44d2e
commit
addbc7afeb
|
@ -158,6 +158,8 @@ public struct StatusRowCardView: View {
|
|||
}
|
||||
|
||||
struct DefaultPreviewImage: View {
|
||||
@Environment(Theme.self) private var theme
|
||||
|
||||
let url: URL
|
||||
let originalWidth: CGFloat
|
||||
let originalHeight: CGFloat
|
||||
|
@ -165,7 +167,8 @@ struct DefaultPreviewImage: View {
|
|||
var body: some View {
|
||||
_Layout(originalWidth: originalWidth, originalHeight: originalHeight) {
|
||||
LazyResizableImage(url: url) { state, _ in
|
||||
Rectangle().fill(Color.gray)
|
||||
Rectangle()
|
||||
.fill(theme.secondaryBackgroundColor)
|
||||
.overlay {
|
||||
if let image = state.image {
|
||||
image.resizable().scaledToFill()
|
||||
|
|
Loading…
Reference in a new issue