mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update stuff
This commit is contained in:
parent
bbde9fa73f
commit
3fffb22cf7
3 changed files with 22 additions and 8 deletions
|
|
@ -85,12 +85,14 @@ struct AirDropView: View {
|
|||
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
||||
Image(nsImage: nsImg)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.scaledToFit()
|
||||
.frame(width: 16, height: 16)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 3))
|
||||
} else {
|
||||
Image(systemName: "square.and.arrow.up")
|
||||
.frame(width: 16, height: 16)
|
||||
}
|
||||
}
|
||||
.frame(width: 16, height: 16)
|
||||
.foregroundColor(.accentColor)
|
||||
|
||||
Text(provider.id)
|
||||
|
|
@ -109,9 +111,12 @@ struct AirDropView: View {
|
|||
if let imgData = selected.imageData, let nsImg = NSImage(data: imgData) {
|
||||
Image(nsImage: nsImg)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 20, height: 20)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 4))
|
||||
} else {
|
||||
Image(systemName: "square.and.arrow.up")
|
||||
.frame(width: 20, height: 20)
|
||||
}
|
||||
}
|
||||
.foregroundColor(.accentColor)
|
||||
|
|
|
|||
|
|
@ -170,12 +170,14 @@ struct FileShareView: View {
|
|||
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
||||
Image(nsImage: nsImg)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.scaledToFit()
|
||||
.frame(width: 16, height: 16)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 3))
|
||||
} else {
|
||||
Image(systemName: "square.and.arrow.up")
|
||||
.frame(width: 16, height: 16)
|
||||
}
|
||||
}
|
||||
.frame(width: 16, height: 16)
|
||||
.foregroundColor(.accentColor)
|
||||
|
||||
Text(provider.id)
|
||||
|
|
@ -196,9 +198,12 @@ struct FileShareView: View {
|
|||
if let imgData = selected.imageData, let nsImg = NSImage(data: imgData) {
|
||||
Image(nsImage: nsImg)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 20, height: 20)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 4))
|
||||
} else {
|
||||
Image(systemName: "square.and.arrow.up")
|
||||
.frame(width: 20, height: 20)
|
||||
}
|
||||
}
|
||||
.foregroundColor(.accentColor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue