Skip to content

Commit

Permalink
fix(frontend): default theme error
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Sep 28, 2024
1 parent 1d88252 commit 17155f3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/frontend-embed/src/boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import '@tabler/icons-webfont/dist/tabler-icons.scss';

import '@/style.scss';
import { createApp, defineAsyncComponent } from 'vue';
import defaultLightTheme from '@@/themes/l-light.json5';
import defaultDarkTheme from '@@/themes/d-dark.json5';
import defaultLightTheme from '@@/themes/l-stella-r2.json5';
import defaultDarkTheme from '@@/themes/d-stella-r2.json5';
import { MediaProxy } from '@@/js/media-proxy.js';
import { applyTheme, assertIsTheme } from '@/theme.js';
import { fetchCustomEmojis } from '@/custom-emojis.js';
Expand Down
6 changes: 6 additions & 0 deletions packages/frontend/.storybook/preload-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const keys = [
'_dark',
'_light',
'l-light',
'l-stella-r2',
'l-byeolvit-polaris',
'l-scone-color',
'l-coffee',
'l-apricot',
'l-rainy',
Expand All @@ -19,6 +22,9 @@ const keys = [
'l-sushi',
'l-u0',
'd-dark',
'd-stella-r2',
'd-byeolvit-noctiluca',
'd-scone-color',
'd-persimmon',
'd-astro',
'd-future',
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function loadTheme(applyTheme: typeof import('../src/scripts/theme')['applyTheme
if (theme) {
applyTheme(themes[document.documentElement.dataset.misskeyTheme]);
} else {
applyTheme(themes['l-light']);
applyTheme(themes['l-stella-r2']);
}
const observer = new MutationObserver((entries) => {
for (const entry of entries) {
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import { markRaw, ref } from 'vue';
import * as Misskey from 'misskey-js';
import { hemisphere } from '@@/js/intl-const.js';
import lightTheme from '@@/themes/l-light.json5';
import darkTheme from '@@/themes/d-green-lime.json5';
import lightTheme from '@@/themes/l-stella-r2.json5';
import darkTheme from '@@/themes/d-stella-r2.json5';
import { miLocalStorage } from './local-storage.js';
import type { SoundType } from '@/scripts/sound.js';
import { Storage } from '@/pizzax.js';
Expand Down

1 comment on commit 17155f3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

Please sign in to comment.