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