mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-31 04:33:58 +02:00
refactor
This commit is contained in:
@@ -205,8 +205,8 @@ import { computed, ref, watch } from 'vue';
|
||||
import JSON5 from 'json5';
|
||||
import defaultLightTheme from '@@/themes/l-light.json5';
|
||||
import defaultDarkTheme from '@@/themes/d-green-lime.json5';
|
||||
import type { Theme } from '@/theme.js';
|
||||
import { isSafeMode } from '@@/js/config.js';
|
||||
import type { Theme } from '@/theme.js';
|
||||
import * as os from '@/os.js';
|
||||
import MkSwitch from '@/components/MkSwitch.vue';
|
||||
import FormSection from '@/components/form/section.vue';
|
||||
@@ -275,6 +275,7 @@ async function toggleDarkMode() {
|
||||
const value = !store.r.darkMode.value;
|
||||
if (syncDeviceDarkMode.value) {
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'question',
|
||||
text: i18n.tsx.switchDarkModeManuallyWhenSyncEnabledConfirm({ x: i18n.ts.syncDeviceDarkMode }),
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
Reference in New Issue
Block a user