friends system (UI WIP)

This commit is contained in:
2025-12-14 01:34:17 +08:00
parent b34c55746a
commit b10b206b48
10 changed files with 279 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-power-icon lucide-power"
><path d="M12 2v10" /><path d="M18.4 6.6a9 9 0 1 1-12.77.04" /></svg
>

After

Width:  |  Height:  |  Size: 320 B

View File

@@ -2,14 +2,15 @@
import Friends from "./tabs/friends.svelte";
import Preferences from "./tabs/preferences.svelte";
import YourDolls from "./tabs/your-dolls.svelte";
import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow";
</script>
<div
class="p-2 h-full absolute inset-0 bg-base-100 border-base-200/50 border border-t-0 rounded-b-xl"
>
<div class="flex flex-col gap-2 h-full">
<div class="size-full">
<div class="tabs tabs-lift h-full">
<div class="size-full flex flex-col gap-2">
<div class="tabs tabs-lift h-full flex-1">
<input
type="radio"
name="app_menu_tabs"
@@ -41,6 +42,17 @@
<Preferences />
</div>
</div>
<div class="w-full flex flex-row justify-between">
<div></div>
<div class="flex flex-row gap-2">
<button
class="btn btn-sm btn-outline border-neutral-500/50"
onclick={async () => {
await getCurrentWebviewWindow().close();
}}><p class="px-4">Ok</p></button
>
</div>
</div>
</div>
</div>
</div>

View File

@@ -1,6 +1,7 @@
<script>
import { invoke } from "@tauri-apps/api/core";
import { appData } from "../../../events/app-data";
import Power from "../../../assets/icons/power.svelte";
</script>
<div class="size-full flex flex-col justify-between">
@@ -11,11 +12,15 @@
<div></div>
<div>
<button
class="btn btn-error btn-sm btn-soft"
class="btn btn-error btn-square btn-soft"
onclick={async () => {
await invoke("quit_app");
}}>Quit Friendolls</button
}}
>
<div class="scale-50">
<Power />
</div>
</button>
</div>
</div>
</div>