Skip to content
Snippets Groups Projects
Commit 75637b0f authored by dakkar's avatar dakkar
Browse files

remove "👁️ preview" button from theme editor

it stopped working back in May, see
3d4a90b0

Thanks Amelia for noticing!
parent 0d23e7a2
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
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