mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
changes:
- fix: store lyricsid - feat: added auto theme (closes #156) - reverse metadata art (might fix #157) ...minor fixes and update deps
This commit is contained in:
parent
9ba6b26061
commit
411e0848e8
9 changed files with 285 additions and 245 deletions
|
@ -30,7 +30,7 @@ const Genres = defineAsyncComponent(() => import('@/components/Genres.vue')),
|
|||
);
|
||||
|
||||
/* Composables */
|
||||
import { useStore, useUnwrap } from '@/scripts/util.js';
|
||||
import { useStore, useUnwrap, useAutoTheme } from '@/scripts/util.js';
|
||||
import { useSetupDB, useUpdatePlaylist } from '@/scripts/db.js';
|
||||
|
||||
/* Stores */
|
||||
|
@ -134,11 +134,14 @@ function playList(a) {
|
|||
/* Lifestyle hooks */
|
||||
onBeforeMount(() => {
|
||||
/* Set the default theme if set */
|
||||
if (store.theme) document.body.setAttribute('data-theme', store.theme);
|
||||
if (store.theme)
|
||||
document.body.setAttribute('data-theme', useAutoTheme(store.theme));
|
||||
|
||||
if (store.compact == 'true') document.body.setAttribute('data-compact', '');
|
||||
|
||||
/* Prefers Reduced Motion */
|
||||
if (store.prm == 'true') document.body.classList.add('prm');
|
||||
if (store.prm == 'true' || matchMedia('(prefers-reduced-motion)').matches)
|
||||
document.body.classList.add('prm');
|
||||
|
||||
/* Set the default locale if set */
|
||||
const loc =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue