Skip to content
Snippets Groups Projects
Commit 60b6601d authored by syuilo's avatar syuilo
Browse files

Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop

parents 190b47aa e9021781
No related branches found
No related tags found
No related merge requests found
...@@ -7,15 +7,27 @@ ...@@ -7,15 +7,27 @@
<script lang="ts" setup> <script lang="ts" setup>
import { } from 'vue'; import { } from 'vue';
import { instanceName } from '@/config';
const props = defineProps<{ const props = defineProps<{
instance: any; // TODO instance?: {
faviconUrl?: string
name: string
themeColor?: string
}
}>(); }>();
const themeColor = props.instance.themeColor || '#777777'; // if no instance data is given, this is for the local instance
const instance = props.instance ?? {
faviconUrl: '/favicon.ico',
name: instanceName,
themeColor: (document.querySelector('meta[name="theme-color-orig"]') as HTMLMetaElement)?.content
};
const themeColor = instance.themeColor ?? '#777777';
const bg = { const bg = {
background: `linear-gradient(90deg, ${themeColor}, ${themeColor + '00'})` background: `linear-gradient(90deg, ${themeColor}, ${themeColor}00)`
}; };
</script> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment