feat: add image pasting, close #234

This commit is contained in:
Xylight committed 2024-03-04 18:30:57 -08:00
1 parent a5287b03e8
commit b80d6bd930
6 files changed
+90 -22

No files matched your search

+42 -2
View File
@@ -1,7 +1,21 @@
<script lang="ts">
import { Button, Material, Modal, TextArea, toast } from 'mono-svelte'
import {
Button,
Material,
Modal,
TextArea,
action,
modal,
toast,
} from 'mono-svelte'
import { defaultColors, type Colors, colors } from '$lib/ui/colors'
import { ArrowDownTray, ArrowUpTray, Bookmark, Icon } from 'svelte-hero-icons'
import {
ArrowDownTray,
ArrowPath,
ArrowUpTray,
Bookmark,
Icon,
} from 'svelte-hero-icons'
const c = defaultColors
@@ -57,6 +71,32 @@
<Icon src={ArrowDownTray} size="16" mini />
Export
</Button>
<Button
on:click={() => {
modal({
actions: [
action({
content: 'Close',
close: true,
}),
action({
action: () => {
$colors = { other: {}, primary: {}, zinc: {}, slate: {} }
},
content: 'Reset',
close: true,
type: 'danger',
}),
],
title: 'Reset Theme',
body: 'This will reset all your colors to the default. We recommend exporting your theme first.',
})
}}
size="lg"
>
<Icon src={ArrowPath} size="16" mini />
Reset
</Button>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-2">
{#each svelteIntellisenseSucks() as category}