From 9151820843f12ea34db5e60d64795b2be1a2fb29 Mon Sep 17 00:00:00 2001 From: Youwes09 Date: Wed, 1 Apr 2026 11:09:40 -0500 Subject: [PATCH] Fix: TitleBar Issue (WIP) & Allow Sources in Content Settings --- src/App.svelte | 2 +- src/components/layout/TitleBar.svelte | 69 ++++++++++++++++++++------- src/components/pages/Discover.svelte | 5 +- src/components/pages/Search.svelte | 10 ++-- src/lib/util.ts | 23 +++++++++ 5 files changed, 84 insertions(+), 25 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index de9e061..da46795 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -339,7 +339,7 @@ { idle = false; resetIdle(); }} /> {/if} - {#if !store.activeChapter && !store.isFullscreen}{/if} + {#if !store.activeChapter}{/if}
{#if store.activeChapter}{:else}{/if}
diff --git a/src/components/layout/TitleBar.svelte b/src/components/layout/TitleBar.svelte index b7d3b35..12da2b6 100644 --- a/src/components/layout/TitleBar.svelte +++ b/src/components/layout/TitleBar.svelte @@ -3,8 +3,10 @@ import { getCurrentWindow } from "@tauri-apps/api/window"; import { platform } from "@tauri-apps/plugin-os"; - const win = getCurrentWindow(); - const isMac = platform() === "macos"; + const win = getCurrentWindow(); + const os = platform(); + const isMac = os === "macos"; + const isWindows = os === "windows"; let isFullscreen = $state(false); @@ -18,19 +20,39 @@ {#if !isFullscreen} -
- {#if isMac}
{/if} - Moku - {#if !isMac} -
- - + + +
+ {/if} +
+{:else if isWindows} + +
+
- {/if} - {/if}