From 75637b0f481e6c71e8bbb654354cbfce21391d4f Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 20 Dec 2023 09:16:20 +0000 Subject: [PATCH] =?UTF-8?q?remove=20"=F0=9F=91=81=20preview"=20button=20fr?= =?UTF-8?q?om=20theme=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it stopped working back in May, see 3d4a90b08a284f416564fc950a9216936c1a8e99 Thanks Amelia for noticing! --- packages/frontend/src/pages/theme-editor.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/frontend/src/pages/theme-editor.vue b/packages/frontend/src/pages/theme-editor.vue index b78cf531a..1bc5eaddd 100644 --- a/packages/frontend/src/pages/theme-editor.vue +++ b/packages/frontend/src/pages/theme-editor.vue @@ -134,10 +134,6 @@ let changed = $ref(false); useLeaveGuard($$(changed)); -function showPreview() { - os.pageWindow('/preview'); -} - function setBgColor(color: typeof bgColors[number]) { if (theme.base !== color.kind) { const base = color.kind === 'dark' ? darkTheme : lightTheme; @@ -214,11 +210,6 @@ async function saveAs() { watch($$(theme), apply, { deep: true }); const headerActions = $computed(() => [{ - asFullButton: true, - icon: 'ph-eye ph-bold ph-lg', - text: i18n.ts.preview, - handler: showPreview, -}, { asFullButton: true, icon: 'ph-check ph-bold ph-lg', text: i18n.ts.saveAs,