Clean up import of the notebook icon

This commit is contained in:
Jackson Harper
2023-04-07 17:00:04 +08:00
parent 1ef73388aa
commit 4fcc49148a
6 changed files with 4 additions and 58 deletions

View File

@ -1,6 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -1,21 +0,0 @@
{
"images" : [
{
"filename" : "Hotpot.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

View File

@ -1,24 +0,0 @@
{
"images" : [
{
"filename" : "notebook.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#000000" viewBox="0 0 256 256"><path d="M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"></path></svg>

Before

Width:  |  Height:  |  Size: 363 B

View File

@ -204,10 +204,6 @@ struct WebReaderContainerView: View {
func menuItems(for item: LinkedItem) -> some View {
let hasLabels = item.labels?.count != 0
return Group {
Button(
action: { showNotebookView = true },
label: { Label("Notebook", systemImage: "highlighter") }
)
Button(
action: { showTitleEdit = true },
label: { Label("Edit Info", systemImage: "info.circle") }
@ -268,6 +264,7 @@ struct WebReaderContainerView: View {
label: {
Image(systemName: "chevron.backward")
.font(.appNavbarIcon)
// .foregroundColor(.appGrayTextContrast)
.padding()
}
)
@ -285,9 +282,9 @@ struct WebReaderContainerView: View {
.padding(.horizontal)
.scaleEffect(navBarVisibilityRatio)
Button(
action: { showNotebookView.toggle() },
action: { showNotebookView = true },
label: {
Image("notebook", bundle: Bundle.module)
Image("notebook", bundle: Bundle(url: ViewsPackage.bundleURL))
}
)
.padding(.horizontal)
@ -304,6 +301,7 @@ struct WebReaderContainerView: View {
Image(systemName: "ellipsis")
.resizable(resizingMode: Image.ResizingMode.stretch)
.aspectRatio(contentMode: .fit)
// .foregroundColor(.appGrayTextContrast)
.frame(width: 20, height: 20)
.scaleEffect(navBarVisibilityRatio)
.padding()