mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add help tooltips to the toolbar buttons.
This commit is contained in:
parent
1397009a8a
commit
4ec81ccfbf
@ -16,6 +16,7 @@ struct ContentView: View {
|
||||
},
|
||||
label: { Image(systemName: "sidebar.left") }
|
||||
)
|
||||
.help("Toggle the sidebar's visibility.")
|
||||
Spacer()
|
||||
Button(action: {
|
||||
withAnimation {
|
||||
@ -45,6 +46,7 @@ struct ContentView: View {
|
||||
}
|
||||
}
|
||||
}, label: { Image(systemName: "square.and.pencil") })
|
||||
.help("Create a new local draft.")
|
||||
}
|
||||
#else
|
||||
SidebarView()
|
||||
|
@ -10,8 +10,10 @@ struct ActivePostToolbarView: View {
|
||||
HStack(spacing: 4) {
|
||||
Button(action: {}, label: { Image(systemName: "square.and.arrow.up") })
|
||||
.disabled(activePost.status == PostStatus.local.rawValue)
|
||||
.help("Copy the post's URL to your Mac's pasteboard.")
|
||||
Button(action: { publishPost(activePost) }, label: { Image(systemName: "paperplane") })
|
||||
.disabled(activePost.body.isEmpty || activePost.status == PostStatus.published.rawValue)
|
||||
.help("Publish the post to the web. You must be logged in to do this.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user