Add feedback components 106-130; inert scope, focus return, two-step deploy
This commit is contained in:
87 files changed
+2492
-147
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ type ratingKey struct{}
|
||||
// Rating sets *value by click or arrows; reclicking clears.
|
||||
func Rating(c *ui.Context, text string, value *int, o RatingOptions) RatingResult {
|
||||
k := pixel.K(c)
|
||||
n := orDef("Rating Max", o.Max, 5)
|
||||
n := pixel.Or("Rating Max", o.Max, 5)
|
||||
full, empty := icon.Star, icon.StarEmpty
|
||||
if o.Hearts {
|
||||
full, empty = icon.Heart, icon.HeartEmpty
|
||||
|
||||
Reference in new issue
Block a user