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
|
|
@ -3439,12 +3439,14 @@ struct Shelf: View {
|
||||||
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
||||||
Image(nsImage: nsImg)
|
Image(nsImage: nsImg)
|
||||||
.resizable()
|
.resizable()
|
||||||
.aspectRatio(contentMode: .fit)
|
.scaledToFit()
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 3))
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "square.and.arrow.up")
|
Image(systemName: "square.and.arrow.up")
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(width: 16, height: 16)
|
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
Text(provider.id)
|
Text(provider.id)
|
||||||
}
|
}
|
||||||
|
|
@ -3460,12 +3462,14 @@ struct Shelf: View {
|
||||||
if let imgData = selectedProvider.imageData, let nsImg = NSImage(data: imgData) {
|
if let imgData = selectedProvider.imageData, let nsImg = NSImage(data: imgData) {
|
||||||
Image(nsImage: nsImg)
|
Image(nsImage: nsImg)
|
||||||
.resizable()
|
.resizable()
|
||||||
.aspectRatio(contentMode: .fit)
|
.scaledToFit()
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 3))
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "square.and.arrow.up")
|
Image(systemName: "square.and.arrow.up")
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(width: 16, height: 16)
|
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
Text("Currently selected: \(selectedProvider.id)")
|
Text("Currently selected: \(selectedProvider.id)")
|
||||||
|
|
|
||||||
|
|
@ -85,12 +85,14 @@ struct AirDropView: View {
|
||||||
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
||||||
Image(nsImage: nsImg)
|
Image(nsImage: nsImg)
|
||||||
.resizable()
|
.resizable()
|
||||||
.aspectRatio(contentMode: .fit)
|
.scaledToFit()
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 3))
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "square.and.arrow.up")
|
Image(systemName: "square.and.arrow.up")
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(width: 16, height: 16)
|
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
|
|
||||||
Text(provider.id)
|
Text(provider.id)
|
||||||
|
|
@ -109,9 +111,12 @@ struct AirDropView: View {
|
||||||
if let imgData = selected.imageData, let nsImg = NSImage(data: imgData) {
|
if let imgData = selected.imageData, let nsImg = NSImage(data: imgData) {
|
||||||
Image(nsImage: nsImg)
|
Image(nsImage: nsImg)
|
||||||
.resizable()
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 4))
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "square.and.arrow.up")
|
Image(systemName: "square.and.arrow.up")
|
||||||
|
.frame(width: 20, height: 20)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
|
|
|
||||||
|
|
@ -170,12 +170,14 @@ struct FileShareView: View {
|
||||||
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
if let imgData = provider.imageData, let nsImg = NSImage(data: imgData) {
|
||||||
Image(nsImage: nsImg)
|
Image(nsImage: nsImg)
|
||||||
.resizable()
|
.resizable()
|
||||||
.aspectRatio(contentMode: .fit)
|
.scaledToFit()
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 3))
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "square.and.arrow.up")
|
Image(systemName: "square.and.arrow.up")
|
||||||
|
.frame(width: 16, height: 16)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(width: 16, height: 16)
|
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
|
|
||||||
Text(provider.id)
|
Text(provider.id)
|
||||||
|
|
@ -196,9 +198,12 @@ struct FileShareView: View {
|
||||||
if let imgData = selected.imageData, let nsImg = NSImage(data: imgData) {
|
if let imgData = selected.imageData, let nsImg = NSImage(data: imgData) {
|
||||||
Image(nsImage: nsImg)
|
Image(nsImage: nsImg)
|
||||||
.resizable()
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 4))
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "square.and.arrow.up")
|
Image(systemName: "square.and.arrow.up")
|
||||||
|
.frame(width: 20, height: 20)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue