MenuSource.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * This source file is part of RmlUi, the HTML/CSS Interface Middleware
  3. *
  4. * For the latest information, see http://github.com/mikke89/RmlUi
  5. *
  6. * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
  7. * Copyright (c) 2019-2023 The RmlUi Team, and contributors
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a copy
  10. * of this software and associated documentation files (the "Software"), to deal
  11. * in the Software without restriction, including without limitation the rights
  12. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. * copies of the Software, and to permit persons to whom the Software is
  14. * furnished to do so, subject to the following conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be included in
  17. * all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  25. * THE SOFTWARE.
  26. *
  27. */
  28. static const char* menu_rcss = R"RCSS(
  29. body
  30. {
  31. width: 100%;
  32. height: 32dp;
  33. position: absolute;
  34. z-index: 1000000;
  35. background: #888;
  36. font-family: rmlui-debugger-font;
  37. font-size: 14dp;
  38. color: black;
  39. }
  40. div
  41. {
  42. display: block;
  43. }
  44. div#button-group
  45. {
  46. margin-top: 3dp;
  47. }
  48. button
  49. {
  50. border-width: 1px;
  51. border-color: #666;
  52. background: #ddd;
  53. margin-left: 6dp;
  54. display: inline-block;
  55. width: 130dp;
  56. line-height: 24dp;
  57. text-align: center;
  58. }
  59. button.open {
  60. border-color: #6cf;
  61. color: #22a;
  62. background: #cee;
  63. }
  64. button:hover { background: #eee; }
  65. button:active { background: #fff; }
  66. button.open:hover { background: #dff; }
  67. button.open:active { background: #eff; }
  68. div#version-info
  69. {
  70. padding: 0px;
  71. margin-top: 0px;
  72. font-size: 20dp;
  73. float: right;
  74. margin-right: 20dp;
  75. width: 200dp;
  76. text-align: right;
  77. color: white;
  78. }
  79. span#version-number
  80. {
  81. font-size: 15dp;
  82. }
  83. )RCSS";
  84. static const char* menu_rml = R"RML(
  85. <div id="version-info">RmlUi <span id="version-number"></span></div>
  86. <div id="button-group">
  87. <button id="event-log-button">Event Log</button>
  88. <button id="debug-info-button">Element Info</button>
  89. <button id="outlines-button">Outlines</button>
  90. <button id="data-models-button">Data Models</button>
  91. </div>
  92. )RML";