MenuSource.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 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 =
  29. "body\n"
  30. "{\n"
  31. " width: 100%;\n"
  32. " height: 32px;\n"
  33. " position: absolute;\n"
  34. " z-index: top;\n"
  35. " background: #888;\n"
  36. " font-family: Lacuna;\n"
  37. " font-size: 14px;\n"
  38. " color: black;\n"
  39. "}\n"
  40. "div\n"
  41. "{\n"
  42. " display: block;\n"
  43. "}\n"
  44. "div#button-group\n"
  45. "{\n"
  46. " margin-top: 4px;\n"
  47. "}\n"
  48. "button\n"
  49. "{\n"
  50. " border-width: 1px;\n"
  51. " border-color: #666;\n"
  52. " background: #ddd;\n"
  53. " margin-left: 6px;\n"
  54. " display: inline-block;\n"
  55. " width: 100px;\n"
  56. " line-height: 22px;\n"
  57. " text-align: center;\n"
  58. "}\n"
  59. "button:hover\n"
  60. "{\n"
  61. " background: #eee;\n"
  62. "}\n"
  63. "div#version-info\n"
  64. "{\n"
  65. " padding: 0px;\n"
  66. " margin-top: 0px;\n"
  67. " font-size: 20px;\n"
  68. " float: right;\n"
  69. " margin-right: 20px;\n"
  70. " width: 200px;"
  71. " text-align: right;"
  72. " color: white;\n"
  73. "}\n"
  74. "span#version-number\n"
  75. "{\n"
  76. " font-size: 15px;\n"
  77. "}\n"
  78. ;
  79. static const char* menu_rml =
  80. "<div id=\"version-info\">RmlUi <span id=\"version-number\"></span></div>\n"
  81. "<div id =\"button-group\">\n"
  82. " <button id =\"event-log-button\">Event Log</button>\n"
  83. " <button id =\"debug-info-button\">Element Info</button>\n"
  84. " <button id =\"outlines-button\">Outlines</button>\n"
  85. "</div>\n";