mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 15:13:09 +02:00
merge: remove preview button from theme editor (#245)
This commit is contained in:
commit
4600313105
1 changed files with 0 additions and 9 deletions
|
@ -134,10 +134,6 @@ let changed = $ref(false);
|
||||||
|
|
||||||
useLeaveGuard($$(changed));
|
useLeaveGuard($$(changed));
|
||||||
|
|
||||||
function showPreview() {
|
|
||||||
os.pageWindow('/preview');
|
|
||||||
}
|
|
||||||
|
|
||||||
function setBgColor(color: typeof bgColors[number]) {
|
function setBgColor(color: typeof bgColors[number]) {
|
||||||
if (theme.base !== color.kind) {
|
if (theme.base !== color.kind) {
|
||||||
const base = color.kind === 'dark' ? darkTheme : lightTheme;
|
const base = color.kind === 'dark' ? darkTheme : lightTheme;
|
||||||
|
@ -214,11 +210,6 @@ async function saveAs() {
|
||||||
watch($$(theme), apply, { deep: true });
|
watch($$(theme), apply, { deep: true });
|
||||||
|
|
||||||
const headerActions = $computed(() => [{
|
const headerActions = $computed(() => [{
|
||||||
asFullButton: true,
|
|
||||||
icon: 'ph-eye ph-bold ph-lg',
|
|
||||||
text: i18n.ts.preview,
|
|
||||||
handler: showPreview,
|
|
||||||
}, {
|
|
||||||
asFullButton: true,
|
asFullButton: true,
|
||||||
icon: 'ph-check ph-bold ph-lg',
|
icon: 'ph-check ph-bold ph-lg',
|
||||||
text: i18n.ts.saveAs,
|
text: i18n.ts.saveAs,
|
||||||
|
|
Loading…
Reference in a new issue