forked from shadowfacts/Tusker
Add pointer hover effects to compose poll buttons
This commit is contained in:
parent
2499d25432
commit
2a05b6d326
|
@ -46,6 +46,7 @@ struct ComposePollView: View {
|
||||||
}
|
}
|
||||||
.accentColor(buttonForegroundColor)
|
.accentColor(buttonForegroundColor)
|
||||||
.background(Circle().foregroundColor(buttonBackgroundColor))
|
.background(Circle().foregroundColor(buttonBackgroundColor))
|
||||||
|
.hoverEffect()
|
||||||
}
|
}
|
||||||
|
|
||||||
ForEach(Array(poll.options.enumerated()), id: \.element.id) { (e) in
|
ForEach(Array(poll.options.enumerated()), id: \.element.id) { (e) in
|
||||||
|
@ -161,6 +162,7 @@ struct ComposePollOption: View {
|
||||||
}
|
}
|
||||||
.foregroundColor(poll.options.count == 1 ? .gray : .red)
|
.foregroundColor(poll.options.count == 1 ? .gray : .red)
|
||||||
.disabled(poll.options.count == 1)
|
.disabled(poll.options.count == 1)
|
||||||
|
.hoverEffect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue