LogSource.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. static const char* log_rcss = R"RCSS(body
  2. {
  3. width: 400dp;
  4. height: 300dp;
  5. min-width: 250dp;
  6. min-height: 150dp;
  7. top: 42dp;
  8. left: 20dp;
  9. }
  10. div#tools
  11. {
  12. float: right;
  13. width: 200dp;
  14. }
  15. div.log-entry
  16. {
  17. margin: 3dp 2dp;
  18. }
  19. div.log-entry div.icon
  20. {
  21. float: left;
  22. display: block;
  23. width: 18dp;
  24. height: 18dp;
  25. text-align: center;
  26. border-width: 1px;
  27. margin-right: 5dp;
  28. }
  29. div.button
  30. {
  31. display: inline-block;
  32. width: 32dp;
  33. font-size: 13dp;
  34. line-height: 20dp;
  35. text-align: center;
  36. border-width: 1px;
  37. margin-right: 3dp;
  38. }
  39. div.button.clear
  40. {
  41. border-color: #666;
  42. background-color: #aaa;
  43. color: #111;
  44. }
  45. div.button:hover
  46. {
  47. border-color: #ddd;
  48. }
  49. div.button:active
  50. {
  51. border-color: #fff;
  52. }
  53. div.button.last
  54. {
  55. margin-right: 0px;
  56. }
  57. div.log-entry p.message
  58. {
  59. display: block;
  60. white-space: pre-wrap;
  61. margin-left: 20dp;
  62. }
  63. )RCSS";
  64. static const char* log_rml = R"RML(
  65. <h1>
  66. <handle id="position_handle" move_target="#document"/>
  67. <div id="close_button">X</div>
  68. <div id="tools">
  69. <div id="clear_button" class="button clear" style="width: 45dp;">Clear</div>
  70. <div id="error_button" class="button error">On</div>
  71. <div id="warning_button" class="button warning">On</div>
  72. <div id="info_button" class="button info">Off</div>
  73. <div id="debug_button" class="button debug last">On</div>
  74. </div>
  75. <div style="width: 100dp;">Event Log</div>
  76. </h1>
  77. <div id="content">
  78. No messages in log.
  79. </div>
  80. <handle id="size_handle" size_target="#document" />
  81. )RML";