Color Theme Customization
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
-
+
+
-
+
diff --git a/web/pages/index.vue b/web/pages/index.vue
index 2c48f6432..cc8ce23ef 100644
--- a/web/pages/index.vue
+++ b/web/pages/index.vue
@@ -7,10 +7,12 @@ import AES from 'crypto-js/aes';
import type { SendPayloads } from '~/store/callback';
import SsoButtonCe from '~/components/SsoButton.ce.vue';
+import { useThemeStore } from '~/store/theme';
const serverStore = useDummyServerStore();
const { serverState } = storeToRefs(serverStore);
const { registerEntry } = useCustomElements();
+const { theme } = storeToRefs(useThemeStore());
onBeforeMount(() => {
registerEntry('UnraidComponents');
});
@@ -75,6 +77,13 @@ onMounted(() => {
'forUpc'
);
});
+
+const bannerImage = watch(theme, () => {
+ if (theme.value.banner) {
+ return `url(https://picsum.photos/1920/200?${Math.round(Math.random() * 100)})`;
+ }
+ return 'none';
+});