summaryrefslogtreecommitdiffhomepage
path: root/packages/tauri/src
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2025-12-12 23:37:17 +0800
committerGitHub <[email protected]>2025-12-12 09:37:17 -0600
commit59d4041aa4221e4fbb2f347ee5b8e82eb82e434a (patch)
tree3c29957cd3bc966778261beb19e73bcfa2e631b8 /packages/tauri/src
parentfeb8c4f3c60e1ada28bd24abd09d534375a6bc08 (diff)
downloadopencode-59d4041aa4221e4fbb2f347ee5b8e82eb82e434a.tar.gz
opencode-59d4041aa4221e4fbb2f347ee5b8e82eb82e434a.zip
tauri: add basic custom titlebar (#5438)
Diffstat (limited to 'packages/tauri/src')
-rw-r--r--packages/tauri/src/index.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/tauri/src/index.tsx b/packages/tauri/src/index.tsx
index c72805fe6..84ba73c07 100644
--- a/packages/tauri/src/index.tsx
+++ b/packages/tauri/src/index.tsx
@@ -5,6 +5,7 @@ import { runUpdater } from "./updater"
import { onMount } from "solid-js"
import { open, save } from "@tauri-apps/plugin-dialog"
import { open as shellOpen } from "@tauri-apps/plugin-shell"
+import { type as ostype } from "@tauri-apps/plugin-os"
const root = document.getElementById("root")
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
@@ -54,6 +55,9 @@ render(() => {
return (
<PlatformProvider value={platform}>
+ {ostype() === "macos" && (
+ <div class="bg-background-base border-b border-border-weak-base h-8" data-tauri-drag-region />
+ )}
<App />
</PlatformProvider>
)