mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: drop monacoTheme setting
This commit is contained in:
3 files changed
+7
-10
No files matched your search
@@ -200,6 +200,10 @@ export async function setTemporaryViewTransitionNames(entries, vtPromise: Promis
|
||||
}
|
||||
}
|
||||
|
||||
export function getTheme(): 'dark' | 'light' {
|
||||
return ['light', 'dark'].includes(UserContext.theme) ? UserContext.theme : 'light';
|
||||
}
|
||||
|
||||
Object.assign(window.Hydro.utils, {
|
||||
i18n,
|
||||
rawHtml,
|
||||
|
||||
Reference in new issue
Block a user