diff --git a/src/app.css b/src/app.css index 591fee1..3c723ff 100644 --- a/src/app.css +++ b/src/app.css @@ -67,7 +67,7 @@ --success: 0.4546 0.1348 141.88; --success-foreground: 0.9461 0 0; - --destructive: 0.3958 0.1331 25.72; + --destructive: 0.551 0.222 28.915; --destructive-foreground: 0.9461 0 0; } diff --git a/src/lib/components/Widget/EditorGame/EditorGame.svelte b/src/lib/components/Widget/EditorGame/EditorGame.svelte index d3a50c3..1c03a82 100644 --- a/src/lib/components/Widget/EditorGame/EditorGame.svelte +++ b/src/lib/components/Widget/EditorGame/EditorGame.svelte @@ -93,8 +93,8 @@ > diff --git a/src/lib/components/Widget/ecs-tree/scenes/entities/entity-tree-node.svelte b/src/lib/components/Widget/ecs-tree/scenes/entities/entity-tree-node.svelte index 1643716..9b90843 100644 --- a/src/lib/components/Widget/ecs-tree/scenes/entities/entity-tree-node.svelte +++ b/src/lib/components/Widget/ecs-tree/scenes/entities/entity-tree-node.svelte @@ -85,7 +85,7 @@ : 'text-neutral-300 hover:bg-neutral-800', hovered && !isDragging ? 'ring-2 ring-inset ring-primary' : '', isDragging ? 'opacity-40' : '', - 'flex w-full items-center gap-1.5 py-0.5 pr-2 transition-colors group', + 'flex w-full items-center gap-1.5 py-0.5 pr-2 transition-colors group hover:cursor-pointer', ]} style="padding-left:{pl}px" onclick={onSelect} @@ -114,7 +114,7 @@ > - + {$entity.name} {/if} - + {#each tree as node (node.kind === 'entity' ? node.id : node.path)} {#if node.kind === 'entity'} diff --git a/src/lib/components/Widget/ecs-tree/scenes/entities/folder-tree-node.svelte b/src/lib/components/Widget/ecs-tree/scenes/entities/folder-tree-node.svelte index 11d0547..7bc6ae3 100644 --- a/src/lib/components/Widget/ecs-tree/scenes/entities/folder-tree-node.svelte +++ b/src/lib/components/Widget/ecs-tree/scenes/entities/folder-tree-node.svelte @@ -108,7 +108,7 @@ - {node.name} + {node.name} -{$system.name} +{$system.name} diff --git a/src/lib/components/Widget/ecs-tree/widget.svelte b/src/lib/components/Widget/ecs-tree/widget.svelte index 22d26a6..4846683 100644 --- a/src/lib/components/Widget/ecs-tree/widget.svelte +++ b/src/lib/components/Widget/ecs-tree/widget.svelte @@ -17,7 +17,7 @@ > Scenes Components diff --git a/src/lib/components/ui/tabs/tabs-trigger.svelte b/src/lib/components/ui/tabs/tabs-trigger.svelte index eb385f6..2b380b4 100644 --- a/src/lib/components/ui/tabs/tabs-trigger.svelte +++ b/src/lib/components/ui/tabs/tabs-trigger.svelte @@ -13,7 +13,7 @@ bind:ref data-slot="tabs-trigger" class={cn( - "gap-1.5 border-b-2 border-transparent duration-300 px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg:not([class*='size-'])]:size-4 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", + "gap-1.5 border-b-2 border-transparent duration-300 px-1.5 py-0.5 text-sm font-medium hover:cursor-pointer has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg:not([class*='size-'])]:size-4 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", 'group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent', 'data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input data-[state=active]:border-primary dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground', 'after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100', diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte index 55dce67..4813156 100644 --- a/src/routes/dashboard/+page.svelte +++ b/src/routes/dashboard/+page.svelte @@ -3,6 +3,8 @@ import Logo from '$lib/assets/logo.png'; import TabBar from '$lib/components/Tabs/TabBar.svelte'; + import DefaultProjectCover from '$lib/assets/defaultProjectCover.png'; + import { tabsStore } from '$lib/components/Tabs/store'; import { tabRegistry } from '$lib/components/Tabs/registry'; @@ -13,6 +15,7 @@ import { page } from '$app/state'; import { runSafe } from '@utils-client/error'; import { FullPageProjectSpinner } from '$lib/components/project-loader'; + import { infoStore } from '$lib/client/info/info.store'; let tab = $derived($tabsStore.tabs.find((t) => t.id === $tabsStore.selectedTabId)); let Component = $derived(tab ? tabRegistry[tab.type]?.component : null); @@ -65,8 +68,8 @@ {#if loaded} - - + + @@ -74,28 +77,16 @@ - - - - + - - Jump Out + + {$infoStore?.name || 'untitled'} - - + {#key $tabsStore.selectedTabId} {#if Component && tab}