index.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/en/icons/" />
  7. <link rel="stylesheet" href="../style.css#" type="text/css" />
  8. <title>Toolbar customization</title>
  9. <script>
  10. function findLang(){
  11. let href = location.href;
  12. for(let i=href.length-1;i>0;i--){
  13. if('/'==href.charAt(i) && '/'==href.charAt(i-3))
  14. return i;
  15. }
  16. return 0;
  17. }
  18. function nav2(page){
  19. let i = findLang();
  20. location.href = location.href.substring(0,i+1)+page;
  21. }
  22. function nav2Lang(lang){
  23. let i = findLang();
  24. let href = location.href;
  25. location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <header class='header'>
  31. <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
  32. <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
  33. <nav>
  34. </nav>
  35. </header>
  36. <br />
  37. <div class="container">
  38. <h1 class="title">Toolbar customization
  39. <br>
  40. <span class="subtitle"></span>
  41. </h1>
  42. <ul class="tags">
  43. </ul>
  44. <p>If subfolder &quot;icon&quot; exists, then files named as &quot;0&quot;,&quot;1&quot;,&quot;2&quot;...<br>
  45. are used for icons in the bottom toolbar. file &quot;0&quot; to replace the left arrow button, &quot;1&quot; for right arrow button, &quot;2&quot; for the setting button,&quot;3&quot; for the home screen button,...</p>
  46. <p>If a new button is defined (file name &quot;20&quot; exists), uweb also supports VectorDrawable with &quot;android compiled XML&quot; format. All icon files must be either all compiled VectorDrawables or common image formats.</p>
  47. <p>Note: The refresh and tab manager button can not be redefined.</p>
  48. </div>
  49. <p>Last Modified: 2 April 2024<br>
  50. add flg for not following sys night mode<br>
  51. <pre></pre>
  52. </p>
  53. <script id='jsgiscus'
  54. src='https://giscus.app/client.js'
  55. data-repo="torappinfo/uweb"
  56. data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  57. data-category="Announcements"
  58. data-category-id="DIC_kwDOEgNLGc4CQjsh"
  59. data-mapping="title"
  60. data-strict="0"
  61. data-reactions-enabled="1"
  62. data-emit-metadata="0"
  63. data-input-position="top"
  64. data-theme="light"
  65. data-lang="en"
  66. data-loading="lazy"
  67. crossorigin="anonymous" async>
  68. </script>
  69. <footer class="site-footer">
  70. <div class="container">
  71. &copy; 2018-2024 Richard H. Cao
  72. </div>
  73. </footer>
  74. <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
  75. </body>
  76. </html>