iOS: Add pointer effects to various buttons

This commit is contained in:
Shadowfacts 2020-09-30 18:14:38 -04:00
parent 4f3e1432e7
commit 364ffe9f94
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 6 additions and 0 deletions

View File

@ -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 {

View File

@ -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()