You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
589B

  1. #pragma once
  2. #include <nanovg.h>
  3. #include <blendish.h>
  4. #include <common.hpp>
  5. #include <color.hpp>
  6. /** Useful for menu items with a "true" boolean state */
  7. #define CHECKMARK_STRING "✔"
  8. #define CHECKMARK(_cond) ((_cond) ? CHECKMARK_STRING : "")
  9. /** Useful for menu items that open a sub-menu */
  10. #define RIGHT_ARROW "▸"
  11. namespace rack {
  12. /** Common graphical user interface widgets
  13. */
  14. namespace ui {
  15. PRIVATE void init();
  16. PRIVATE void destroy();
  17. void setTheme(NVGcolor bg, NVGcolor fg);
  18. /** Sets theme from settings. */
  19. void refreshTheme();
  20. } // namespace ui
  21. } // namespace rack