tweaked colours to the point where i actually really like it!

This commit is contained in:
breadone 2024-07-03 21:18:22 +12:00
parent 5bbc90f877
commit c1f584b1e1
No known key found for this signature in database
2 changed files with 8 additions and 7 deletions

View File

@ -65,7 +65,7 @@ struct MainView: View {
}
ToolbarItem {
Button(action: showVNDocumentCameraView) {
Image(systemName: "scanner.fill")
Image(systemName: "plus")
}
}
}

View File

@ -11,7 +11,7 @@ struct ScanItemView: View {
@Environment(\.modelContext) var ctx
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) {
self.scan = scan
@ -40,7 +40,7 @@ struct ScanItemView: View {
Button { scan.copyImages() } label: {
Image(systemName: "doc.on.doc.fill").tint(.white)
.padding(8)
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.4))
.background(translucentColour)
.clipShape(Circle())
}
}
@ -48,7 +48,7 @@ struct ScanItemView: View {
ShareLink(items: scan.suiImages, preview: { _ in SharePreview("Scan", image: scan.suiImages.first!)} ) {
Image(systemName: "square.and.arrow.up").tint(.white)
.padding(8)
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.4))
.background(translucentColour)
.offset(y: -2)
.clipShape(Circle())
}
@ -56,7 +56,7 @@ struct ScanItemView: View {
Button { delete() } label: {
Image(systemName: "trash.fill").tint(.red)
.padding(8)
.background(Color(red: 1, green: 1, blue: 1, opacity: 0.4))
.background(translucentColour)
.clipShape(Circle())
}
.contextMenu(menuItems: {
@ -67,8 +67,8 @@ struct ScanItemView: View {
}
.padding()
.background(Color.accentColor)
.clipShape(RoundedRectangle(cornerRadius: 12))
.background(Color(red: 0.4, green: 0.6, blue: 0.9, opacity: 0.8))
.clipShape(RoundedRectangle(cornerRadius: 35))
.padding(.horizontal, 12)
}
@ -96,5 +96,6 @@ struct ScanItemView: View {
ScanItemView(s)
}
}
.navigationTitle("Just Scan It!")
}
}