tweaked colours to the point where i actually really like it!
This commit is contained in:
parent
5bbc90f877
commit
c1f584b1e1
@ -65,7 +65,7 @@ struct MainView: View {
|
|||||||
}
|
}
|
||||||
ToolbarItem {
|
ToolbarItem {
|
||||||
Button(action: showVNDocumentCameraView) {
|
Button(action: showVNDocumentCameraView) {
|
||||||
Image(systemName: "scanner.fill")
|
Image(systemName: "plus")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ struct ScanItemView: View {
|
|||||||
@Environment(\.modelContext) var ctx
|
@Environment(\.modelContext) var ctx
|
||||||
|
|
||||||
let scan: Scan
|
let scan: Scan
|
||||||
private let translucentColour = Color(red: 1, green: 1, blue: 1, opacity: 0.4)
|
private let translucentColour = Color(red: 0.6, green: 0.8, blue: 1, opacity: 0.4)
|
||||||
|
|
||||||
init(_ scan: Scan) {
|
init(_ scan: Scan) {
|
||||||
self.scan = scan
|
self.scan = scan
|
||||||
@ -40,7 +40,7 @@ struct ScanItemView: View {
|
|||||||
Button { scan.copyImages() } label: {
|
Button { scan.copyImages() } label: {
|
||||||
Image(systemName: "doc.on.doc.fill").tint(.white)
|
Image(systemName: "doc.on.doc.fill").tint(.white)
|
||||||
.padding(8)
|
.padding(8)
|
||||||
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.4))
|
.background(translucentColour)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ struct ScanItemView: View {
|
|||||||
ShareLink(items: scan.suiImages, preview: { _ in SharePreview("Scan", image: scan.suiImages.first!)} ) {
|
ShareLink(items: scan.suiImages, preview: { _ in SharePreview("Scan", image: scan.suiImages.first!)} ) {
|
||||||
Image(systemName: "square.and.arrow.up").tint(.white)
|
Image(systemName: "square.and.arrow.up").tint(.white)
|
||||||
.padding(8)
|
.padding(8)
|
||||||
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.4))
|
.background(translucentColour)
|
||||||
.offset(y: -2)
|
.offset(y: -2)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
}
|
}
|
||||||
@ -56,7 +56,7 @@ struct ScanItemView: View {
|
|||||||
Button { delete() } label: {
|
Button { delete() } label: {
|
||||||
Image(systemName: "trash.fill").tint(.red)
|
Image(systemName: "trash.fill").tint(.red)
|
||||||
.padding(8)
|
.padding(8)
|
||||||
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.4))
|
.background(translucentColour)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
}
|
}
|
||||||
.contextMenu(menuItems: {
|
.contextMenu(menuItems: {
|
||||||
@ -67,8 +67,8 @@ struct ScanItemView: View {
|
|||||||
|
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
.background(Color.accentColor)
|
.background(Color(red: 0.4, green: 0.6, blue: 0.9, opacity: 0.8))
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 12))
|
.clipShape(RoundedRectangle(cornerRadius: 35))
|
||||||
.padding(.horizontal, 12)
|
.padding(.horizontal, 12)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,5 +96,6 @@ struct ScanItemView: View {
|
|||||||
ScanItemView(s)
|
ScanItemView(s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.navigationTitle("Just Scan It!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user