iOS: Add pointer effects to various buttons
This commit is contained in:
parent
4f3e1432e7
commit
364ffe9f94
|
@ -34,6 +34,7 @@ struct PreferencesView: View {
|
|||
}, label: {
|
||||
Text("Done")
|
||||
})
|
||||
.hoverEffect(.highlight)
|
||||
}
|
||||
|
||||
private var appearanceSection: some View {
|
||||
|
|
|
@ -31,6 +31,7 @@ struct ToolBar: View {
|
|||
.font(.system(size: 24))
|
||||
}
|
||||
.accessibility(label: Text("Back"))
|
||||
.hoverEffect(.highlight)
|
||||
.contextMenu {
|
||||
ForEach(Array(navigator.backStack.suffix(5).enumerated()), id: \.1) { (index, url) in
|
||||
Button {
|
||||
|
@ -49,6 +50,7 @@ struct ToolBar: View {
|
|||
.font(.system(size: 24))
|
||||
}
|
||||
.accessibility(label: Text("Forward"))
|
||||
.hoverEffect(.highlight)
|
||||
.contextMenu {
|
||||
ForEach(navigator.forwardStack.prefix(5).enumerated().reversed(), id: \.1) { (index, url) in
|
||||
Button {
|
||||
|
@ -67,6 +69,7 @@ struct ToolBar: View {
|
|||
.font(.system(size: 24))
|
||||
}
|
||||
.accessibility(label: Text("Reload"))
|
||||
.hoverEffect(.highlight)
|
||||
|
||||
Spacer()
|
||||
|
||||
|
@ -75,6 +78,7 @@ struct ToolBar: View {
|
|||
.font(.system(size: 24))
|
||||
}
|
||||
.accessibility(label: Text("Share"))
|
||||
.hoverEffect(.highlight)
|
||||
|
||||
Spacer()
|
||||
|
||||
|
@ -85,6 +89,7 @@ struct ToolBar: View {
|
|||
.font(.system(size: 24))
|
||||
})
|
||||
.accessibility(label: Text("Preferences"))
|
||||
.hoverEffect(.highlight)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
|
Loading…
Reference in New Issue