widgets.yuck 546 B

123456789101112131415161718192021222324
  1. ; radial progress bar
  2. (defwidget progressBar [value text class ?boxClass]
  3. (box :class boxClass
  4. (circular-progress :class class
  5. :value value
  6. :thickness 5
  7. text
  8. )
  9. )
  10. )
  11. ; slider
  12. (defwidget metric [class value ?onchange orientation flipped ]
  13. (box :class class :orientation orientation :space-evenly true
  14. (scale
  15. :min 0
  16. :max 101
  17. :active {onchange != ""}
  18. :value value
  19. :onchange onchange
  20. :orientation orientation
  21. :flipped flipped
  22. )
  23. ))