Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

release: v0.4.20 native titlebar theme fix

nash_su9712d43f6aa9
diff --git a/mcp-server/package-lock.json b/mcp-server/package-lock.json
index 09546f31..9d1c1276 100644
--- a/mcp-server/package-lock.json
+++ b/mcp-server/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "llm-wiki-mcp-server",
- "version": "0.4.19",
+ "version": "0.4.20",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "llm-wiki-mcp-server",
- "version": "0.4.19",
+ "version": "0.4.20",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0"
diff --git a/mcp-server/package.json b/mcp-server/package.json
index f8b309a3..00ce76ed 100644
--- a/mcp-server/package.json
+++ b/mcp-server/package.json
@@ -1,6 +1,6 @@
{
"name": "llm-wiki-mcp-server",
- "version": "0.4.19",
+ "version": "0.4.20",
"description": "MCP server for LLM Wiki local API",
"type": "module",
"main": "dist/src/index.js",
diff --git a/mcp-server/src/index.ts b/mcp-server/src/index.ts
index 2f1cf451..af57a7f0 100644
--- a/mcp-server/src/index.ts
+++ b/mcp-server/src/index.ts
@@ -9,7 +9,7 @@ import {
} from "@modelcontextprotocol/sdk/types.js"
import { LlmWikiApiClient, type ApiFileNode, type ApiGraphNode, type ApiSearchResult } from "./api-client.js"
-const VERSION = "0.4.19"
+const VERSION = "0.4.20"
const DEFAULT_PROJECT_ID = "current"
const MAX_TEXT_BYTES = 120_000
diff --git a/package-lock.json b/package-lock.json
index 7810025f..9e636560 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "llm-wiki",
- "version": "0.4.19",
+ "version": "0.4.20",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "llm-wiki",
- "version": "0.4.19",
+ "version": "0.4.20",
"dependencies": {
"@base-ui/react": "^1.3.0",
"@fontsource-variable/geist": "^5.2.8",
diff --git a/package.json b/package.json
index a676909a..568ae53d 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "llm-wiki",
"private": true,
- "version": "0.4.19",
+ "version": "0.4.20",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 2fb669b6..7f984ae0 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -4461,7 +4461,7 @@ checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
[[package]]
name = "llm-wiki"
-version = "0.4.19"
+version = "0.4.20"
dependencies = [
"arrow-array",
"arrow-schema",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index a9c67579..f438580d 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "llm-wiki"
-version = "0.4.19"
+version = "0.4.20"
description = "LLM Wiki - A personal knowledge base for LLM concepts"
authors = []
edition = "2021"
diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json
index 1289c5c9..d24c951c 100644
--- a/src-tauri/capabilities/default.json
+++ b/src-tauri/capabilities/default.json
@@ -5,6 +5,8 @@
"windows": ["main"],
"permissions": [
"core:default",
+ "core:window:allow-set-background-color",
+ "core:window:allow-set-theme",
"autostart:default",
"opener:default",
"dialog:default",
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 8c243de5..0299b53b 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "LLM Wiki",
- "version": "0.4.19",
+ "version": "0.4.20",
"identifier": "com.llmwiki.app",
"build": {
"beforeDevCommand": "npm run dev",
@@ -18,11 +18,7 @@
"resizable": true,
"fullscreen": false,
"hiddenTitle": true,
- "titleBarStyle": "Overlay",
- "trafficLightPosition": {
- "x": 16,
- "y": 16
- }
+ "titleBarStyle": "Transparent"
}
],
"security": {
diff --git a/src/App.tsx b/src/App.tsx
index 90f690c1..911e00d4 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -17,16 +17,6 @@ import { WelcomeScreen } from "@/components/project/welcome-screen"
import { CreateProjectDialog } from "@/components/project/create-project-dialog"
import type { WikiProject } from "@/types/wiki"
-function MacTitlebarDragRegion() {
- return (
- <div
- aria-hidden="true"
- className="macos-titlebar-drag-region"
- data-tauri-drag-region
- />
- )
-}
-
function App() {
const project = useWikiStore((s) => s.project)
const setProject = useWikiStore((s) => s.setProject)
@@ -479,19 +469,15 @@ function App() {
if (loading) {
return (
- <>
- <MacTitlebarDragRegion />
- <div className="flex h-full items-center justify-center bg-background text-muted-foreground">
- Loading...
- </div>
- </>
+ <div className="flex h-full items-center justify-center bg-background text-muted-foreground">
+ Loading...
+ </div>
)
}
if (!project) {
return (
<>
- <MacTitlebarDragRegion />
<WelcomeScreen
onCreateProject={() => setShowCreateDialog(true)}
onOpenProject={handleOpenProject}
@@ -508,7 +494,6 @@ function App() {
return (
<>
- <MacTitlebarDragRegion />
<AppLayout onSwitchProject={handleSwitchProject} />
<CreateProjectDialog
open={showCreateDialog}
diff --git a/src/index.css b/src/index.css
index 82eee37a..3787e14a 100644
--- a/src/index.css
+++ b/src/index.css
@@ -118,10 +118,6 @@
--sidebar-ring: oklch(0.556 0 0);
}
-.platform-macos {
- --window-titlebar-height: 30px;
-}
-
@layer base {
* {
@apply border-border outline-ring/50;
@@ -139,31 +135,11 @@
height: 100vh;
background: var(--background);
}
- .platform-macos #root {
- padding-top: var(--window-titlebar-height);
- }
html {
@apply font-sans;
}
}
-.macos-titlebar-drag-region {
- display: none;
-}
-
-.platform-macos .macos-titlebar-drag-region {
- display: block;
- position: fixed;
- z-index: 2147483647;
- top: 0;
- right: 0;
- left: 0;
- height: var(--window-titlebar-height);
- background: var(--background);
- -webkit-app-region: drag;
- user-select: none;
-}
-
/* Legend scrollbar - left side */
.legend-scroll {
scrollbar-width: thin;
diff --git a/src/lib/changelog.ts b/src/lib/changelog.ts
index dbe54167..5e5a62b6 100644
--- a/src/lib/changelog.ts
+++ b/src/lib/changelog.ts
@@ -25,6 +25,18 @@ export interface ChangelogEntry {
}
export const CHANGELOG: ChangelogEntry[] = [
+ {
+ version: "0.4.20",
+ date: "2026-06-04",
+ highlights: {
+ en: [
+ "Fixed the macOS titlebar so it keeps native window dragging while following light and dark mode.",
+ ],
+ zh: [
+ "修复 macOS 顶部标题栏:保留系统原生拖动,同时跟随亮色和暗色模式。",
+ ],
+ },
+ },
{
version: "0.4.19",
date: "2026-06-03",
diff --git a/src/lib/theme.ts b/src/lib/theme.ts
index eae9731c..8bfd718e 100644
--- a/src/lib/theme.ts
+++ b/src/lib/theme.ts
@@ -1,4 +1,5 @@
import { loadTheme } from "@/lib/project-store"
+import { getCurrentWindow, type Theme as NativeTheme } from "@tauri-apps/api/window"
export type AppTheme = "light" | "dark" | "system"
@@ -10,6 +11,22 @@ function systemPrefersDark(): boolean {
return window.matchMedia("(prefers-color-scheme: dark)").matches
}
+function isTauriRuntime(): boolean {
+ return "__TAURI_INTERNALS__" in window || "__TAURI__" in window
+}
+
+function syncNativeWindowTheme(resolved: NativeTheme): void {
+ if (!isTauriRuntime()) return
+ const win = getCurrentWindow()
+ const background = resolved === "dark" ? "#27282b" : "#ffffff"
+ void win.setTheme(resolved).catch((err) => {
+ console.warn("[theme] failed to sync native window theme:", err)
+ })
+ void win.setBackgroundColor(background).catch((err) => {
+ console.warn("[theme] failed to sync native window background:", err)
+ })
+}
+
export function applyTheme(theme: AppTheme): void {
activeTheme = theme
const root = document.documentElement
@@ -22,6 +39,7 @@ export function applyTheme(theme: AppTheme): void {
root.classList.remove("light", "dark")
root.classList.add(resolved)
root.dataset.theme = theme
+ syncNativeWindowTheme(resolved)
}
export function watchSystemTheme(): void {