mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
chore: how to use theme switcher
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user