Improve typography

This commit is contained in:
daylily
2025-03-31 03:43:56 -04:00
parent 0e524a1309
commit b5d92e99c5
4 changed files with 24 additions and 23 deletions
-4
View File
@@ -75,8 +75,4 @@
.multimodal {
@apply flex gap-1 items-end;
}
.section-title {
@apply font-semibold text-xl;
}
}
+10 -8
View File
@@ -33,7 +33,7 @@
hid.addEventListener('disconnect', e => {
if (device === e.device) {
toast.info('Device disconnected')
toast.info('Device disconnected')
onchange(null)
}
})
@@ -47,13 +47,15 @@
<div class="grow">
<h1 class="font-semibold text-xl/8">Connect to a device</h1>
{#if device !== null}
<IconCheckCircle class="inline" /> Successfully conected to device. If you want to, you can connect to another device
instead.
{:else}
<IconPending class="inline" /> Not connected to any device yet. Plug in your device, and click the button to select
it.
{/if}
<div class="text-sm">
{#if device === null}
<IconPending class="inline" /> Not connected to any device yet. Plug in your device, and click on the button to select
it.
{:else}
<IconCheckCircle class="inline" /> Successfully conected to device. If you want to, you can connect to another device
instead.
{/if}
</div>
</div>
<ConnectButton onconnect={onchange} {device} />
+1 -1
View File
@@ -2,7 +2,7 @@
import { Button } from '$lib/components/ui/button'
import { toast } from 'svelte-sonner'
import IconUpload from '~icons/material-symbols/upload'
import IconUpload from '~icons/material-symbols/upload-2'
interface Props {
device: HIDDevice | null
+13 -10
View File
@@ -1,7 +1,8 @@
<script lang="ts">
import IconHelp from '~icons/material-symbols/help'
import IconPending from '~icons/material-symbols/pending'
import IconWarning from '~icons/material-symbols/warning'
import IconArrowUploadProgress from '~icons/material-symbols/arrow-upload-progress'
import IconWarning from '~icons/material-symbols/warning'
import WriteButton from './WriteButton.svelte'
@@ -19,15 +20,17 @@
<div class="grow">
<h1 class="font-semibold text-xl/8">Write pattern to device</h1>
{#if device === null}
<IconPending class="inline" /> Connect your device to start writing patterns onto it.
{:else if bitmap === null}
<IconPending class="inline" /> Select an image file in order to write it onto your device.
{:else if !inProgress}
<IconArrowUploadProgress class="inline" /> Write the pattern onto your device if you have finished editing the image.
{:else}
<IconWarning class="inline" /> Update in progress. Do not disconnect device.
{/if}
<div class="text-sm">
{#if device === null}
<IconHelp class="inline" /> To start writing patterns to your device, connect it first.
{:else if bitmap === null}
<IconPending class="inline" /> Select an image file in order to write it onto your device.
{:else if !inProgress}
<IconArrowUploadProgress class="inline" /> Write the pattern onto your device if you have finished editing the image.
{:else}
<IconWarning class="inline" /> Refresh in progress. Do not disconnect device.
{/if}
</div>
</div>
<WriteButton