MenuSource.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. static const char* menu_rcss = R"RCSS(
  2. body
  3. {
  4. width: 100%;
  5. height: 32dp;
  6. position: absolute;
  7. z-index: 1000000;
  8. background: #888;
  9. font-family: rmlui-debugger-font;
  10. font-size: 14dp;
  11. color: black;
  12. }
  13. div
  14. {
  15. display: block;
  16. }
  17. div#button-group
  18. {
  19. margin-top: 3dp;
  20. }
  21. button
  22. {
  23. border-width: 1px;
  24. border-color: #666;
  25. background: #ddd;
  26. margin-left: 6dp;
  27. display: inline-block;
  28. width: 130dp;
  29. line-height: 24dp;
  30. text-align: center;
  31. }
  32. button.open {
  33. border-color: #6cf;
  34. color: #22a;
  35. background: #cee;
  36. }
  37. button:hover { background: #eee; }
  38. button:active { background: #fff; }
  39. button.open:hover { background: #dff; }
  40. button.open:active { background: #eff; }
  41. div#version-info
  42. {
  43. padding: 0px;
  44. margin-top: 0px;
  45. font-size: 20dp;
  46. float: right;
  47. margin-right: 20dp;
  48. width: 200dp;
  49. text-align: right;
  50. color: white;
  51. }
  52. span#version-number
  53. {
  54. font-size: 15dp;
  55. }
  56. )RCSS";
  57. static const char* menu_rml = R"RML(
  58. <div id="version-info">RmlUi <span id="version-number"></span></div>
  59. <div id="button-group">
  60. <button id="event-log-button">Event Log</button>
  61. <button id="debug-info-button">Element Info</button>
  62. <button id="outlines-button">Outlines</button>
  63. <button id="data-models-button">Data Models</button>
  64. </div>
  65. )RML";