From 446f31fe49f49d8a5ff0bc50cdea4850bed220e4 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Sun, 30 Aug 2026 02:13:01 +0800 Subject: [PATCH] minor adjustments to the control panel UI --- .../control-panel/activity-panel.svelte | 112 -------- .../control-panel/scene-panel.svelte | 248 +++++++++--------- src/routes/control-panel/+page.svelte | 11 +- 3 files changed, 123 insertions(+), 248 deletions(-) delete mode 100644 src/lib/components/control-panel/activity-panel.svelte diff --git a/src/lib/components/control-panel/activity-panel.svelte b/src/lib/components/control-panel/activity-panel.svelte deleted file mode 100644 index 2886b0a..0000000 --- a/src/lib/components/control-panel/activity-panel.svelte +++ /dev/null @@ -1,112 +0,0 @@ - - -
- {#if $liveMetadataListenerError} - {$liveMetadataListenerError} - {:else if userIds().length === 0} - Waiting for activity data. This usually appears after Wyd has started - monitoring. - {/if} - -
- {#each userIds() as userId (userId)} - {@const cursor = $liveMetadata.cursorPositions[userId]} - {@const app = $liveMetadata.foregroundApps.get(userId)} -
-
- {#if app?.ico} - - {:else} - - {/if} -
-
- {nameFor(userId)} - {#if userId === $liveMetadata.localId}Local{/if} -
-

- {compactId(userId)} -

-
-
- -
-
Foreground app
-
- {app?.local ?? app?.unlocal ?? "Not available"} -
-
Cursor
-
- {cursor - ? `${Math.round(cursor.raw.x)}, ${Math.round(cursor.raw.y)} px` - : "Not available"} -
-
Mapped
-
- {cursor - ? `${cursor.mapped.x.toFixed(3)}, ${cursor.mapped.y.toFixed(3)}` - : "Not available"} -
-
-
- {/each} -
-
diff --git a/src/lib/components/control-panel/scene-panel.svelte b/src/lib/components/control-panel/scene-panel.svelte index 20465b9..7493701 100644 --- a/src/lib/components/control-panel/scene-panel.svelte +++ b/src/lib/components/control-panel/scene-panel.svelte @@ -109,62 +109,57 @@ } -
+
{#if error || $sceneConfigurationListenerError || $profileListenerError} {error || $sceneConfigurationListenerError || $profileListenerError} {/if} -
- Puppets - -
-
-
- {#if $profile} -
+
+
+
+ {#if $profile} +
+
+
-
-
-
-

Scale

-

Opacity

-
-
-

{(puppetScale * 100).toFixed(0)}%

-

{(puppetOpacity * 100).toFixed(0)}%

-
+ class="flex flex-row size-full items-end justify-between text-[10px] text-primary p-1" + > +
+

Scale

+

Opacity

+
+
+

{(puppetScale * 100).toFixed(0)}%

+

{(puppetOpacity * 100).toFixed(0)}%

-
- -
- {:else} -
- {/if} -
+
+ +
+
+ {:else} +
+ {/if}
+
-
+
+
+ All puppets
- -
- -
- - - selectSkinFile(event.currentTarget.files?.[0] ?? null)} - /> -
-
+
+
+ + + selectSkinFile(event.currentTarget.files?.[0] ?? null)} + />
- -
- Movement -
- +
diff --git a/src/routes/control-panel/+page.svelte b/src/routes/control-panel/+page.svelte index bbc59dc..9b8f090 100644 --- a/src/routes/control-panel/+page.svelte +++ b/src/routes/control-panel/+page.svelte @@ -1,6 +1,5 @@