mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
OPT: Cleanup Add Folder view on Mac, change SceneNavigationView to support multiple sheet types.
This commit is contained in:
@@ -71,22 +71,28 @@ struct AddFolderView: View {
|
||||
Form {
|
||||
HStack {
|
||||
Spacer()
|
||||
Image("FaviconTemplateImage")
|
||||
Image(rsImage: AppAssets.faviconTemplateImage)
|
||||
.resizable()
|
||||
.renderingMode(.template)
|
||||
.frame(width: 30, height: 30)
|
||||
.foregroundColor(.accentColor).font(.title)
|
||||
Text("Add a Folder")
|
||||
.font(.title)
|
||||
Spacer()
|
||||
}
|
||||
TextField("Name", text: $viewModel.folderName)
|
||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
||||
.help("The name of the folder you want to create")
|
||||
accountPicker
|
||||
.help("Pick the account you want to create a folder in.")
|
||||
|
||||
LazyVGrid(columns: [GridItem(.fixed(75), spacing: 10, alignment: .trailing),GridItem(.fixed(400), spacing: 0, alignment: .leading) ], alignment: .leading, spacing: 10, pinnedViews: [], content:{
|
||||
Text("Name:").bold()
|
||||
TextField("Name", text: $viewModel.folderName)
|
||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
||||
.help("The name of the folder you want to create")
|
||||
Text("Account:").bold()
|
||||
accountPicker
|
||||
.help("Pick the account you want to create a folder in.")
|
||||
})
|
||||
buttonStack
|
||||
}
|
||||
.frame(maxWidth: 485)
|
||||
.padding(12)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user