2
0

LogSource.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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* log_rcss = R"RCSS(body
  29. {
  30. width: 400dp;
  31. height: 300dp;
  32. min-width: 250dp;
  33. min-height: 150dp;
  34. top: 42dp;
  35. left: 20dp;
  36. }
  37. div#tools
  38. {
  39. float: right;
  40. width: 200dp;
  41. }
  42. div.log-entry
  43. {
  44. margin: 3dp 2dp;
  45. }
  46. div.log-entry div.icon
  47. {
  48. float: left;
  49. display: block;
  50. width: 18dp;
  51. height: 18dp;
  52. text-align: center;
  53. border-width: 1px;
  54. margin-right: 5dp;
  55. }
  56. div.button
  57. {
  58. display: inline-block;
  59. width: 32dp;
  60. font-size: 13dp;
  61. line-height: 20dp;
  62. text-align: center;
  63. border-width: 1px;
  64. margin-right: 3dp;
  65. }
  66. div.button.clear
  67. {
  68. border-color: #666;
  69. background-color: #aaa;
  70. color: #111;
  71. }
  72. div.button:hover
  73. {
  74. border-color: #ddd;
  75. }
  76. div.button:active
  77. {
  78. border-color: #fff;
  79. }
  80. div.button.last
  81. {
  82. margin-right: 0px;
  83. }
  84. div.log-entry p.message
  85. {
  86. display: block;
  87. white-space: pre-wrap;
  88. margin-left: 20dp;
  89. }
  90. )RCSS";
  91. static const char* log_rml = R"RML(
  92. <h1>
  93. <handle id="position_handle" move_target="#document"/>
  94. <div id="close_button">X</div>
  95. <div id="tools">
  96. <div id="clear_button" class="button clear" style="width: 45dp;">Clear</div>
  97. <div id="error_button" class="button error">On</div>
  98. <div id="warning_button" class="button warning">On</div>
  99. <div id="info_button" class="button info">Off</div>
  100. <div id="debug_button" class="button debug last">On</div>
  101. </div>
  102. <div style="width: 100dp;">Event Log</div>
  103. </h1>
  104. <div id="content">
  105. No messages in log.
  106. </div>
  107. <handle id="size_handle" size_target="#document" />
  108. )RML";