ui_style.h 809 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef ui_style_h
  2. #define ui_style_h
  3. #include "cengine.h"
  4. #include "ui/ui_text.h"
  5. typedef struct {
  6. /* Box */
  7. fpath box_back_image;
  8. int box_back_width;
  9. int box_back_height;
  10. bool box_back_tile;
  11. int box_back_border_size;
  12. vec4 box_back_border_color;
  13. float box_glitch;
  14. int box_blend_src;
  15. int box_blend_dst;
  16. vec4 box_text_color;
  17. vec4 box_label_color;
  18. int box_text_halign;
  19. int box_text_valign;
  20. vec4 box_up_color;
  21. vec4 box_down_color;
  22. vec4 box_inset_color;
  23. /* Text */
  24. fpath text_font;
  25. vec4 text_color;
  26. vec2 text_scale;
  27. /* Spinner */
  28. fpath spinner_image;
  29. float spinner_speed;
  30. } ui_style;
  31. /* Current */
  32. extern ui_style* ui_style_current;
  33. /* Defaults */
  34. extern ui_style ui_style_corange;
  35. extern ui_style ui_style_hunt;
  36. #endif