chore: how to use theme switcher

This commit is contained in:
Zack Spear
2024-06-26 16:47:29 -07:00
parent ecd02099a1
commit b6c4c48025

View File

@@ -1,7 +1,18 @@
<script lang="ts" setup>
/**
* Add to webgui via DefaultPageLayout.php
* Add to footer `echo "<unraid-theme-switcher current='$theme'></unraid-theme-switcher>";`
* Find the footer and the PHP that builds it. Search for `annotate('Footer');` for the start of the footer.
*
* At the of the footer end replace this PHP
* ```
* echo "</span></div>";
* ```
* with the following PHP
* ```
* echo "</span>";
* echo "<unraid-theme-switcher current='$theme'></unraid-theme-switcher>";
* echo "</div>";
* ```
*/
import { OnClickOutside } from '@vueuse/components';
import { storeToRefs } from 'pinia';